Compare commits

...

1 Commits

Author SHA1 Message Date
0b2f1937f8 import UBI perl-URI-5.27-3.el10 2025-05-14 18:01:17 +00:00
4 changed files with 180 additions and 16 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/URI-1.76.tar.gz
URI-5.27.tar.gz

View File

@ -1 +0,0 @@
d75380f8b1ad792d230216d8712fd37533ebedf0 SOURCES/URI-1.76.tar.gz

View File

@ -1,21 +1,29 @@
# Utilize Business::ISBN that needs gd library
# Support isbn URN via Business::ISBN that needs gd library
%if 0%{?rhel}
%bcond_with perl_URI_enables_Business_ISBN
%bcond_with perl_URI_enables_Regexp_IPv6
%else
%bcond_without perl_URI_enables_Business_ISBN
%bcond_without perl_URI_enables_Regexp_IPv6
%endif
Name: perl-URI
Version: 1.76
Release: 5%{?dist}
Version: 5.27
Release: 3%{?dist}
Summary: A Perl module implementing URI parsing and manipulation
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/URI
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/URI-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/URI/URI-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Module Runtime
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Cwd)
@ -32,16 +40,18 @@ 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::Fatal)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Needs)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(Test::Warnings)
# Optional Tests
# Geo::Point not (yet) available in Fedora
#BuildRequires: perl(Geo::Point)
# Dependencies
Requires: perl(Cwd)
Requires: perl(Data::Dumper)
Requires: perl(Encode)
@ -54,9 +64,13 @@ Requires: perl(utf8)
# 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)
BuildRequires: perl(Business::ISBN) >= 3.005
%endif
Suggests: perl(Business::ISBN)
Suggests: perl(Business::ISBN) >= 3.005
%endif
%if %{with perl_URI_enables_Regexp_IPv6}
BuildRequires: perl(Regexp::IPv6) >= 0.03
Suggests: perl(Regexp::IPv6) >= 0.03
%endif
%description
@ -64,24 +78,55 @@ 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
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
perl Makefile.PL INSTALLDIRS=perl NO_PACKLIST=true NO_PERLLOCAL=true
make %{?_smp_mflags}
%{make_build}
%install
make install DESTDIR=%{buildroot}
%{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}
%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 uri-test
%doc Changes CONTRIBUTING.md README uri-test
%{perl_privlib}/URI.pm
%{perl_privlib}/URI/
%{_mandir}/man3/URI.3*
@ -92,11 +137,130 @@ make test
%{_mandir}/man3/URI::URL.3*
%{_mandir}/man3/URI::WithBase.3*
%{_mandir}/man3/URI::_punycode.3*
%{_mandir}/man3/URI::icap.3*
%{_mandir}/man3/URI::icaps.3*
%{_mandir}/man3/URI::data.3*
%{_mandir}/man3/URI::file.3*
%{_mandir}/man3/URI::geo.3*
%{_mandir}/man3/URI::ldap.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 5.27-3
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 5.27-2
- Bump release for June 2024 mass rebuild
* Fri Feb 9 2024 Paul Howarth <paul@city-fan.org> - 5.27-1
- 5.27 bump (rhbz#2263535)
* Sat Feb 3 2024 Paul Howarth <paul@city-fan.org> - 5.26-1
- 5.26 bump (rhbz#2262451)
* Sun Jan 28 2024 Paul Howarth <paul@city-fan.org> - 5.25-1
- 5.25 bump (rhbz#2260642)
* Fri Jan 26 2024 Jitka Plesnikova <jplesnik@redhat.com> - 5.24-1
- 5.24 bump (rhbz#2260409)
* Thu Jan 25 2024 Paul Howarth <paul@city-fan.org> - 5.22-1
- 5.22 bump (rhbz#2260363)
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.21-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Aug 24 2023 Jitka Plesnikova <jplesnik@redhat.com> - 5.21-1
- 5.21 bump (rhbz#2233885)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon May 1 2023 Paul Howarth <paul@city-fan.org> - 5.19-1
- 5.19 bump
* Sat Apr 29 2023 Paul Howarth <paul@city-fan.org> - 5.18-1
- 5.18 bump
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Nov 3 2022 Paul Howarth <paul@city-fan.org> - 5.17-1
- 5.17 bump
* Wed Oct 12 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.16-1
- 5.16 bump
* Tue Oct 11 2022 Paul Howarth <paul@city-fan.org> - 5.15-1
- 5.15 bump
* Tue Oct 11 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.14-1
- 5.14 bump
* Fri Oct 07 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.13-1
- 5.13 bump
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jul 11 2022 Paul Howarth <paul@city-fan.org> - 5.12-1
- 5.12 bump
* Tue Jul 5 2022 Paul Howarth <paul@city-fan.org> - 5.11-1
- 5.11 bump
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.10-3
- Perl 5.36 re-rebuild of bootstrapped packages
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 5.10-2
- Perl 5.36 rebuild
* Tue Oct 26 2021 Paul Howarth <paul@city-fan.org> - 5.10-1
- 5.10 bump
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.09-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.09-3
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.09-2
- Perl 5.34 rebuild
* 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (URI-5.27.tar.gz) = 5d4cdaf2baed2b15af827093e139ee22c7f87b979b5998462500b13d68966bd94be3841e9b0c4f64ef2df9ca5e258933c21f67870a671242330f296c7bef45b8