|
|
|
@ -1,24 +1,23 @@
|
|
|
|
|
# Support isbn URN via Business::ISBN that needs gd library
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with perl_URI_enables_Business_ISBN
|
|
|
|
|
%else
|
|
|
|
|
# Utilize Business::ISBN that needs gd library
|
|
|
|
|
%bcond_without perl_URI_enables_Business_ISBN
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-URI
|
|
|
|
|
Version: 5.09
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 1.71
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: A Perl module implementing URI parsing and manipulation
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/URI
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/URI/URI-%{version}.tar.gz
|
|
|
|
|
URL: http://search.cpan.org/dist/URI/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/URI-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Module Build
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
# Module Runtime
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
@ -33,17 +32,14 @@ BuildRequires: perl(overload)
|
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Test Suite
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
|
BuildRequires: perl(Storable)
|
|
|
|
|
BuildRequires: perl(Test)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
|
BuildRequires: perl(Test::Needs)
|
|
|
|
|
# Runtime
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Cwd)
|
|
|
|
@ -51,16 +47,15 @@ Requires: perl(Data::Dumper)
|
|
|
|
|
Requires: perl(Encode)
|
|
|
|
|
Requires: perl(MIME::Base64) >= 2
|
|
|
|
|
Requires: perl(Net::Domain)
|
|
|
|
|
Requires: perl(utf8)
|
|
|
|
|
|
|
|
|
|
# Optional Functionality
|
|
|
|
|
%if %{with perl_URI_enables_Business_ISBN}
|
|
|
|
|
# Business::ISBN pulls in gd and X libraries for barcode support, hence this soft dependency (#1380152)
|
|
|
|
|
# Business::ISBN → Test::Pod → Pod::Simple → HTML::Entities (HTML::Parser) → URI
|
|
|
|
|
%if 0%{!?perl_bootstrap:1}
|
|
|
|
|
BuildRequires: perl(Business::ISBN) >= 3.005
|
|
|
|
|
BuildRequires: perl(Business::ISBN)
|
|
|
|
|
%endif
|
|
|
|
|
Suggests: perl(Business::ISBN) >= 3.005
|
|
|
|
|
Suggests: perl(Business::ISBN)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -68,59 +63,24 @@ This module implements the URI class. Objects of this class represent
|
|
|
|
|
"Uniform Resource Identifier references" as specified in RFC 2396 (and
|
|
|
|
|
updated by RFC 2732).
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
%if %{with perl_URI_enables_Business_ISBN}
|
|
|
|
|
Requires: perl(Business::ISBN) >= 3.005
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n URI-%{version}
|
|
|
|
|
chmod -c 644 uri-test
|
|
|
|
|
|
|
|
|
|
for F in t/*.t t/*.pl; do
|
|
|
|
|
if head -1 "$F" | grep -q -e '^#!.*perl\b' ; then
|
|
|
|
|
perl -MConfig -pi -e 's|^#!.*perl\b|$Config{startperl}|' "$F"
|
|
|
|
|
else
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
|
|
|
|
|
fi
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=true NO_PERLLOCAL=true
|
|
|
|
|
%{make_build}
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=true
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{make_install}
|
|
|
|
|
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
perl -i -pe 's{(urls.sto)}{/tmp/$1}' %{buildroot}%{_libexecdir}/%{name}/t/storable.t
|
|
|
|
|
perl -i -pe 's{(urls.sto)}{/tmp/$1}' %{buildroot}%{_libexecdir}/%{name}/t/storable-test.pl
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes CONTRIBUTING.md README uri-test
|
|
|
|
|
%doc Changes README uri-test
|
|
|
|
|
%{perl_privlib}/URI.pm
|
|
|
|
|
%{perl_privlib}/URI/
|
|
|
|
|
%{_mandir}/man3/URI.3*
|
|
|
|
@ -135,92 +95,9 @@ make test
|
|
|
|
|
%{_mandir}/man3/URI::file.3*
|
|
|
|
|
%{_mandir}/man3/URI::ldap.3*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.09-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.09-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Mar 03 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.09-1
|
|
|
|
|
- 5.09 bump
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Sun Feb 28 2021 Paul Howarth <paul@city-fan.org> - 5.08-1
|
|
|
|
|
- 5.08 bump
|
|
|
|
|
|
|
|
|
|
* Sun Jan 31 2021 Paul Howarth <paul@city-fan.org> - 5.07-1
|
|
|
|
|
- 5.07 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.06-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 15 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.06-1
|
|
|
|
|
- 5.06 bump
|
|
|
|
|
|
|
|
|
|
* Wed Oct 21 2020 Paul Howarth <paul@city-fan.org> - 5.05-1
|
|
|
|
|
- 5.05 bump
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Petr Pisar <ppisar@redhat.com> - 1.76-9
|
|
|
|
|
- Modernize a spec file
|
|
|
|
|
|
|
|
|
|
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.76-8
|
|
|
|
|
- Perl 5.32 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.76-7
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.76-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.76-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.76-4
|
|
|
|
|
- Perl 5.30 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.76-3
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.76-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 10 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.76-1
|
|
|
|
|
- 1.76 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.75-1
|
|
|
|
|
- 1.75 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.74-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jun 30 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.74-3
|
|
|
|
|
- Perl 5.28 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.74-2
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 23 2018 Paul Howarth <paul@city-fan.org> - 1.74-1
|
|
|
|
|
- 1.74 bump
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.73-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 09 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.73-1
|
|
|
|
|
- 1.73 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Paul Howarth <paul@city-fan.org> - 1.72-1
|
|
|
|
|
- 1.72 bump
|
|
|
|
|
|
|
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.71-8
|
|
|
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
|
|
|
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.71-7
|
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
* Mon Dec 11 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.71-6
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.71-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|