Accepting request 607435 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/607435 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Business-ISSN?expand=0&rev=4
This commit is contained in:
commit
281e35a55d
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f15b192c0f547bb2967811072b3d343b94bc5ea58d02704c19122f7ae0a9d6b5
|
||||
size 4348
|
3
Business-ISSN-1.003.tar.gz
Normal file
3
Business-ISSN-1.003.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1272456c19937a24bc5f9a0db9dc447043591137719ee4dc955a63be544b99d1
|
||||
size 10204
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@ -0,0 +1,28 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 12 05:04:28 UTC 2018 - coolo@suse.com
|
||||
|
||||
- updated to 1.003
|
||||
see /usr/share/doc/packages/perl-Business-ISSN/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 3 09:37:25 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Business-ISSN
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,44 +17,76 @@
|
||||
|
||||
|
||||
Name: perl-Business-ISSN
|
||||
Version: 0.91
|
||||
Version: 1.003
|
||||
Release: 0
|
||||
%define cpan_name Business-ISSN
|
||||
Summary: Perl extension for International Standard Serial Numbers
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
License: Artistic-2.0
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Business-ISSN/
|
||||
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
* new($issn)
|
||||
|
||||
The constructor accepts a scalar representing the ISSN.
|
||||
The constructor accepts a scalar representing the ISSN.
|
||||
|
||||
The string representing the ISSN may contain characters other than
|
||||
[0-9xX], although these will be removed in the internal representation.
|
||||
The resulting string must look like an ISSN - the first seven characters
|
||||
must be digits and the eighth character must be a digit, 'x', or 'X'.
|
||||
The string representing the ISSN may contain characters other than [0-9xX],
|
||||
although these will be removed in the internal representation. The
|
||||
resulting string must look like an ISSN - the first seven characters must
|
||||
be digits and the eighth character must be a digit, 'x', or 'X'.
|
||||
|
||||
The string passed as the ISSN need not be a valid ISSN as long as it
|
||||
superficially looks like one. This allows one to use the 'fix_checksum'
|
||||
method.
|
||||
The string passed as the ISSN need not be a valid ISSN as long as it
|
||||
superficially looks like one. This allows one to use the 'fix_checksum'
|
||||
method.
|
||||
|
||||
One should check the validity of the ISSN with 'is_valid()' rather than
|
||||
relying on the return value of the constructor.
|
||||
One should check the validity of the ISSN with 'is_valid()' rather than
|
||||
relying on the return value of the constructor.
|
||||
|
||||
If all one wants to do is check the validity of an ISSN, one can skip the
|
||||
object-oriented interface and use the c<is_valid_checksum()> function
|
||||
which is exportable on demand.
|
||||
If all one wants to do is check the validity of an ISSN, one can skip the
|
||||
object-oriented interface and use the c<is_valid_checksum()> function which
|
||||
is exportable on demand.
|
||||
|
||||
If the constructor decides it can't create an object, it returns undef. It
|
||||
may do this if the string passed as the ISSN can't be munged to the
|
||||
internal format.
|
||||
|
||||
* $obj->checksum
|
||||
|
||||
Return the ISSN checksum.
|
||||
|
||||
* $obj->as_string
|
||||
|
||||
Return the ISSN as a string.
|
||||
|
||||
A terminating 'x' is changed to 'X'.
|
||||
|
||||
* $obj->is_valid
|
||||
|
||||
Returns 1 if the checksum is valid.
|
||||
|
||||
Returns 0 if the ISSN does not pass the checksum test. The constructor
|
||||
accepts invalid ISSN's so that they might be fixed with 'fix_checksum'.
|
||||
|
||||
* $obj->fix_checksum
|
||||
|
||||
Replace the eighth character with the checksum the corresponds to the
|
||||
previous seven digits. This does not guarantee that the ISSN corresponds to
|
||||
the product one thinks it does, or that the ISSN corresponds to any product
|
||||
at all. It only produces a string that passes the checksum routine. If the
|
||||
ISSN passed to the constructor was invalid, the error might have been in
|
||||
any of the other nine positions.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@ -70,6 +102,7 @@ find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes examples LICENSE README
|
||||
%doc Changes examples
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user