Skip to content

Commit b4512ac

Browse files
authored
Upgrade: perl-Business-ISBN version to 3.009 (microsoft#11447)
1 parent 9f71d16 commit b4512ac

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"perl-Business-ISBN-3.005.tar.gz": "6530fbae40c56376db4e6686c34af8da3db5c4baad0d104047b1ef3e24fe2e2a"
3+
"perl-Business-ISBN-3.009.tar.gz": "d2ec1970454af1b2c099dd34caa7a348ca6fd323bb7ddbfad55389bd7f96789b"
44
}
55
}

SPECS-EXTENDED/perl-Business-ISBN/perl-Business-ISBN.spec

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
Vendor: Microsoft Corporation
22
Distribution: Azure Linux
33
Name: perl-Business-ISBN
4-
%global cpan_version 3.005
4+
%global cpan_version 3.009
55
Version: %(echo '%{cpan_version}' | tr '_' '.'})
6-
Release: 3%{?dist}
6+
Release: 1%{?dist}
77
Summary: Perl module to work with International Standard Book Numbers
88

99
License: Artistic 2.0
1010
URL: https://metacpan.org/release/Business-ISBN
11-
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISBN-%{cpan_version}.tar.gz#/perl-Business-ISBN-%{cpan_version}.tar.gz
11+
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/Business-ISBN-%{cpan_version}.tar.gz#/perl-Business-ISBN-%{cpan_version}.tar.gz
1212
BuildArch: noarch
1313
BuildRequires: coreutils
1414
BuildRequires: findutils
1515
BuildRequires: make
1616
BuildRequires: perl-interpreter
1717
BuildRequires: perl-generators
18+
BuildRequires: perl(Config)
1819
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
1920
BuildRequires: perl(File::Spec)
2021
BuildRequires: perl(File::Spec::Functions)
@@ -23,7 +24,7 @@ BuildRequires: perl(warnings)
2324
# Test::Manifest 1.21 is optional
2425
# Run-time:
2526
BuildRequires: perl(base)
26-
BuildRequires: perl(Business::ISBN::Data) >= 20191107
27+
BuildRequires: perl(Business::ISBN::Data) >= 20230322.001
2728
BuildRequires: perl(Carp)
2829
BuildRequires: perl(Data::Dumper)
2930
BuildRequires: perl(Exporter)
@@ -43,27 +44,65 @@ Requires: perl(GD::Barcode::EAN13)
4344
This modules handles International Standard Book Numbers, including
4445
ISBN-10 and ISBN-13.
4546

47+
For exporting ISBN into a bar code, with png_barcode(), you need to install
48+
GD::Barcode::EAN13 Perl module.
49+
50+
%package tests
51+
Summary: Tests for %{name}
52+
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
53+
Requires: perl-Test-Harness
54+
55+
%description tests
56+
Tests from %{name}. Execute them
57+
with "%{_libexecdir}/%{name}/test".
58+
4659
%prep
4760
%setup -q -n Business-ISBN-%{cpan_version}
4861

62+
# Help generators to recognize Perl scripts
63+
for F in `find t -name *.t`; do
64+
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
65+
chmod +x "$F"
66+
done
67+
4968
%build
5069
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
5170
%{make_build}
5271

5372
%install
5473
%{make_install}
55-
%{_fixperms} -c $RPM_BUILD_ROOT/*
74+
%{_fixperms} -c %{buildroot}/*
75+
76+
# Install tests
77+
mkdir -p %{buildroot}%{_libexecdir}/%{name}
78+
cp -a t %{buildroot}%{_libexecdir}/%{name}
79+
# Remove release tests
80+
rm %{buildroot}%{_libexecdir}/%{name}/t/pod*
81+
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
82+
#!/bin/sh
83+
cd %{_libexecdir}/%{name} && exec prove -I . -r -j "$(getconf _NPROCESSORS_ONLN)"
84+
EOF
85+
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
5686

5787
%check
88+
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
5889
make test
5990

91+
6092
%files
6193
%license LICENSE
6294
%doc Changes README.pod
63-
%{perl_vendorlib}/*
64-
%{_mandir}/man3/*.3*
95+
%{perl_vendorlib}/Business*
96+
%{_mandir}/man3/Business::ISBN*.3*
97+
98+
%files tests
99+
%{_libexecdir}/%{name}
65100

66101
%changelog
102+
* Fri Dec 13 2024 Jyoti Kanase <[email protected]> - 3.009-1
103+
- Update to 3.009
104+
- License Verified.
105+
67106
* Fri Oct 15 2021 Pawel Winogrodzki <[email protected]> - 3.005-3
68107
- Initial CBL-Mariner import from Fedora 32 (license: MIT).
69108

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16333,8 +16333,8 @@
1633316333
"type": "other",
1633416334
"other": {
1633516335
"name": "perl-Business-ISBN",
16336-
"version": "3.005",
16337-
"downloadUrl": "https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISBN-3.005.tar.gz"
16336+
"version": "3.009",
16337+
"downloadUrl": "https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/Business-ISBN-3.009.tar.gz"
1633816338
}
1633916339
}
1634016340
},

0 commit comments

Comments
 (0)