|
|
|
@ -1,3 +1,10 @@
|
|
|
|
|
# Enable LZMA and XZ support via pure-Perl implementation
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
%bcond_with perl_Archive_Extract_enables_perl_xz
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without perl_Archive_Extract_enables_perl_xz
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: perl-Archive-Extract
|
|
|
|
|
# Epoch to compete with core module from perl.spec
|
|
|
|
|
Epoch: 1
|
|
|
|
@ -111,6 +118,7 @@ Requires: xz-lzma-compat
|
|
|
|
|
%description lzma-unlzma
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%package lzma-IO-Uncompress-UnLzma
|
|
|
|
|
Summary: Lzma decompressor for %{name} via IO::Uncompress::UnLzma
|
|
|
|
|
Provides: %{name}-lzma
|
|
|
|
@ -118,7 +126,9 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: perl(IO::Uncompress::UnLzma)
|
|
|
|
|
%description lzma-IO-Uncompress-UnLzma
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
# Compress::unLZMA not yet packaged
|
|
|
|
|
#%%package lzma-Compress-unLZMA
|
|
|
|
|
#Summary: Lzma decompressor for %%{name} via Compress::unLZMA
|
|
|
|
@ -127,6 +137,7 @@ Requires: perl(IO::Uncompress::UnLzma)
|
|
|
|
|
#Requires: perl(Compress::unLZMA)
|
|
|
|
|
#%%description lzma-Compress-unLZMA
|
|
|
|
|
#%%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# tar: tar || Archive::Tar
|
|
|
|
|
%package tar-tar
|
|
|
|
@ -202,6 +213,7 @@ Requires: xz
|
|
|
|
|
%description txz-tar-unxz
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%package txz-Archive-Tar-IO-Uncompress-UnXz
|
|
|
|
|
Summary: Xzed-tar decompressor for %{name} via Archive::Tar and IO::Uncompress::UnXz
|
|
|
|
|
Provides: %{name}-txz
|
|
|
|
@ -210,6 +222,7 @@ Requires: perl(Archive::Tar)
|
|
|
|
|
Requires: perl(IO::Uncompress::UnXz)
|
|
|
|
|
%description txz-Archive-Tar-IO-Uncompress-UnXz
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Z: uncompress || Compress::Zlib
|
|
|
|
|
%package Z-uncompress
|
|
|
|
@ -254,6 +267,7 @@ Requires: xz
|
|
|
|
|
%description xz-unxz
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%package xz-IO-Uncompress-UnXz
|
|
|
|
|
Summary: Xz decompressor for %{name} via IO::Uncompress::UnXz
|
|
|
|
|
Provides: %{name}-xz
|
|
|
|
@ -261,6 +275,7 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
|
Requires: perl(IO::Uncompress::UnXz)
|
|
|
|
|
%description xz-IO-Uncompress-UnXz
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Archive-Extract-%{version}
|
|
|
|
@ -287,8 +302,12 @@ make test
|
|
|
|
|
%files gz-gzip
|
|
|
|
|
%files gz-Compress-Zlib
|
|
|
|
|
%files lzma-unlzma
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%files lzma-IO-Uncompress-UnLzma
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
#%%files lzma-Compress-unLZMA
|
|
|
|
|
%endif
|
|
|
|
|
%files tar-tar
|
|
|
|
|
%files tar-Archive-Tar
|
|
|
|
|
%files tbz-tar-bunzip2
|
|
|
|
@ -297,13 +316,17 @@ make test
|
|
|
|
|
%files tgz-Archive-Tar-Compress-Zlib
|
|
|
|
|
%files tgz-Archive-Tar-IO-Zlib
|
|
|
|
|
%files txz-tar-unxz
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%files txz-Archive-Tar-IO-Uncompress-UnXz
|
|
|
|
|
%endif
|
|
|
|
|
%files Z-uncompress
|
|
|
|
|
%files Z-Compress-Zlib
|
|
|
|
|
%files zip-unzip
|
|
|
|
|
%files zip-Archive-Zip
|
|
|
|
|
%files xz-unxz
|
|
|
|
|
%if %{with perl_Archive_Extract_enables_perl_xz}
|
|
|
|
|
%files xz-IO-Uncompress-UnXz
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Sep 06 2018 Petr Pisar <ppisar@redhat.com> - 1:0.80-8
|
|
|
|
|