Compare commits

...

1 Commits

Author SHA1 Message Date
790726f7f6 import UBI perl-Archive-Tar-3.02-512.el10 2025-05-14 15:56:31 +00:00
5 changed files with 150 additions and 14 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/Archive-Tar-2.32.tar.gz
Archive-Tar-3.02.tar.gz

View File

@ -1 +0,0 @@
370775a9c464825dfb1f4c54e8617c9e65c94905 SOURCES/Archive-Tar-2.32.tar.gz

View File

@ -15,7 +15,7 @@ diff --git a/Makefile.PL b/Makefile.PL
index fe093bd..b9cd6ea 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -105,7 +105,6 @@ sub _scripts {
@@ -118,7 +118,6 @@ sub _scripts {
###############################################################
WARNING

View File

@ -6,10 +6,10 @@
%endif
Name: perl-Archive-Tar
Version: 2.32
Release: 440%{?dist}
Version: 3.02
Release: 512%{?dist}
Summary: A module for Perl manipulation of .tar files
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Archive-Tar
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Tar-%{version}.tar.gz
# Remove annoying sleep after warnings in the build script
@ -17,6 +17,7 @@ Patch0: Archive-Tar-2.02-Do-not-sleep-in-Makefile.PL.patch
BuildArch: noarch
# Most of the BRS are needed only for tests, compression support at run-time
# is optional soft dependency.
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
@ -46,10 +47,14 @@ BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Optional run-time:
BuildRequires: perl(IO::Compress::Bzip2) >= 2.015
%if !%{defined perl_bootstrap}
BuildRequires: perl(IO::Compress::Xz)
%endif
# IO::String not used if perl supports useperlio which is true
# Use Compress::Zlib's version for IO::Uncompress::Bunzip2
BuildRequires: perl(IO::Uncompress::Bunzip2) >= 2.015
%if !%{defined perl_bootstrap}
BuildRequires: perl(IO::Uncompress::UnXz)
BuildRequires: perl(Text::Diff)
%endif
# Tests:
@ -64,14 +69,17 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Test::Pod) >= 0.95
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(IO::Zlib) >= 1.01
# Optional run-time:
Requires: perl(IO::Compress::Bzip2) >= 2.015
%if !%{defined perl_bootstrap}
Requires: perl(IO::Compress::Xz)
%endif
# IO::String not used if perl supports useperlio which is true
# Use Compress::Zlib's version for IO::Uncompress::Bunzip2
Requires: perl(IO::Uncompress::Bunzip2) >= 2.015
%if !%{defined perl_bootstrap}
Requires: perl(IO::Uncompress::UnXz)
Requires: perl(Text::Diff)
%endif
@ -85,30 +93,158 @@ while also allowing for the creation of tar file objects for custom
manipulation. If you have the IO::Zlib module installed, Archive::Tar
will also support compressed or gzipped tar files.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl(ExtUtils::MakeMaker)
Requires: perl(IPC::Cmd)
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Archive-Tar-%{version}
%patch0 -p1
%patch -P0 -p1
# Help generators to recognize Perl scripts
for F in t/*.t; 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=vendor NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
%{make_install}
%{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
rm %{buildroot}%{_libexecdir}/%{name}/t/99_pod.t
mkdir -p %{buildroot}%{_libexecdir}/%{name}/bin
for F in ptar ptardiff ptargrep; do
ln -s %{_bindir}/"$F" %{buildroot}%{_libexecdir}/%{name}/bin
done
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# Some tests write into temporary files/directories. The easiest solution
# is to copy the tests into a writable directory and execute them from there.
DIR=$(mktemp -d)
pushd "$DIR"
cp -a %{_libexecdir}/%{name}/* ./
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -rf "$DIR"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%check
make test
%files
%doc CHANGES README
%{_bindir}/*
%{_bindir}/ptar*
%{perl_vendorlib}/Archive/
%{_mandir}/man3/*.3*
%{_mandir}/man1/*.1*
%{_mandir}/man3/Archive::Tar*.3*
%{_mandir}/man1/ptar*.1*
%files tests
%{_libexecdir}/%{name}
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.02-512
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Aug 09 2024 Jitka Plesnikova <jplesnik@redhat.com> - 3.02-511
- Perl 5.40 re-rebuild of bootstrapped packages
* Thu Jul 18 2024 Jitka Plesnikova <jplesnik@redhat.com> - 3.02-510
- Increase release to favour standalone package
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.02-7
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.02-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.02-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.02-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jul 12 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.02-3
- Perl 5.38 re-rebuild of bootstrapped packages
* Tue Jul 11 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.02-2
- Perl 5.38 rebuild
* Thu Apr 13 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.02-1
- 3.02 bump
* Mon Mar 27 2023 Jitka Plesnikova <jplesnik@redhat.com> - 3.00-1
- 3.00 bump
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.40-491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.40-490
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 03 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.40-489
- Perl 5.36 re-rebuild of bootstrapped packages
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 2.40-488
- Increase release to favour standalone package
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.40-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Aug 02 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.40-1
- 2.40 bump
- Package tests
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-479
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 24 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-478
- Perl 5.34 re-rebuild of bootstrapped packages
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-477
- Increase release to favour standalone package
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.38-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.38-2
- Perl 5.32 re-rebuild of bootstrapped packages
* Thu Jun 25 2020 Petr Pisar <ppisar@redhat.com> - 2.38-1
- 2.38 bump
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.36-456
- Increase release to favour standalone package
* Fri Feb 14 2020 Petr Pisar <ppisar@redhat.com> - 2.36-2
- Do not require non-core IO::Compress::Xz and IO::Uncompress::UnXz modules on
bootstrapping
* Mon Feb 03 2020 Jitka Plesnikova <jplesnik@redhat.com> - 2.36-1
- 2.36 bump
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-441
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.32-440
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (Archive-Tar-3.02.tar.gz) = 6681fb563f285692e84b8c8cb723013cc72b4532c016362c14277e004220450080dc66c8ce90a2a96ed7f4748047afc9d54d913e28215b047a7d18a8db55c53e