- updated to 1.8.0 (1.008)
see /usr/share/doc/packages/perl-Business-ISSN/Changes 1.008 2025-01-27T13:08:21Z * refresh distro and move to BRIANDFOY 1.007 2025-01-03T23:31:57Z * refresh distro and move to BRIANDFOY 1.006 2024-02-10T21:59:55Z * refresh distro, update email addresses, move to BRIANDFOY OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Business-ISSN?expand=0&rev=9
This commit is contained in:
commit
501cdde69f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
BIN
Business-ISSN-1.005.tar.gz
(Stored with Git LFS)
Normal file
BIN
Business-ISSN-1.005.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
3
Business-ISSN-1.008.tar.gz
Normal file
3
Business-ISSN-1.008.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b16b3a1b0e53cd45ed3328906d33ad4d59a13b57abf341424553aecf3e443aac
|
||||||
|
size 12332
|
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
|
42
perl-Business-ISSN.changes
Normal file
42
perl-Business-ISSN.changes
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 28 05:30:39 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.8.0 (1.008)
|
||||||
|
see /usr/share/doc/packages/perl-Business-ISSN/Changes
|
||||||
|
|
||||||
|
1.008 2025-01-27T13:08:21Z
|
||||||
|
* refresh distro and move to BRIANDFOY
|
||||||
|
|
||||||
|
1.007 2025-01-03T23:31:57Z
|
||||||
|
* refresh distro and move to BRIANDFOY
|
||||||
|
|
||||||
|
1.006 2024-02-10T21:59:55Z
|
||||||
|
* refresh distro, update email addresses, move to BRIANDFOY
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Feb 19 03:06:07 UTC 2022 - Tina Müller <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.005
|
||||||
|
see /usr/share/doc/packages/perl-Business-ISSN/Changes
|
||||||
|
|
||||||
|
1.005 2022-02-18T02:19:46Z
|
||||||
|
* Refresh distro, fix license issue
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 21 03:09:24 UTC 2020 - <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 1.004
|
||||||
|
see /usr/share/doc/packages/perl-Business-ISSN/Changes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
|
||||||
|
- initial package 0.91
|
||||||
|
* created by cpanspec 1.78.06
|
||||||
|
|
111
perl-Business-ISSN.spec
Normal file
111
perl-Business-ISSN.spec
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
#
|
||||||
|
# spec file for package perl-Business-ISSN
|
||||||
|
#
|
||||||
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cpan_name Business-ISSN
|
||||||
|
Name: perl-Business-ISSN
|
||||||
|
Version: 1.8.0
|
||||||
|
Release: 0
|
||||||
|
# 1.008 -> normalize -> 1.8.0
|
||||||
|
%define cpan_version 1.008
|
||||||
|
License: Artistic-2.0
|
||||||
|
Summary: Perl extension for International Standard Serial Numbers
|
||||||
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
|
||||||
|
BuildRequires: perl(Test::More) >= 1
|
||||||
|
Provides: perl(Business::ISSN) = %{version}
|
||||||
|
%undefine __perllib_provides
|
||||||
|
%{perl_requires}
|
||||||
|
|
||||||
|
%description
|
||||||
|
* new($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 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.
|
||||||
|
|
||||||
|
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
|
||||||
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||||
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%perl_make_install
|
||||||
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
|
%files -f %{name}.files
|
||||||
|
%doc Changes CITATION.cff examples SECURITY.md
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user