diff --git a/Compress-Bzip2-2.28.tar.gz b/Compress-Bzip2-2.28.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0022b70d49b2de6cec4ec2173afedd5ebe186524 Binary files /dev/null and b/Compress-Bzip2-2.28.tar.gz differ diff --git a/perl-Compress-Bzip2.spec b/perl-Compress-Bzip2.spec new file mode 100644 index 0000000000000000000000000000000000000000..65806a4d29a2c3780645c16928525210f6e40135 --- /dev/null +++ b/perl-Compress-Bzip2.spec @@ -0,0 +1,92 @@ +%define anolis_release 1 +%bcond_without perl_Compress_Bzip2_enables_optional_test + +Name: perl-Compress-Bzip2 +Version: 2.28 +Epoch: 1 +Release: %{anolis_release}%{?dist} +Summary: Interface to Bzip2 compression library +# bzlib-src/win-tst-dlltest.c (unbundled): Public Domain +# bzlib-src/LICENSE (unbundled): BSD +# bzlib-src/manual.ps (unbundled): GPL+ with exception and OFL +# other files: GPL+ or Artistic +License: GPL+ or Artistic +URL: https://metacpan.org/release/Compress-Bzip2 +Source0: https://cpan.metacpan.org/authors/id/R/RU/RURBAN/Compress-Bzip2-%{version}.tar.gz +BuildRequires: bzip2-devel >= 1.0.5 +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(Config) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +# VMS::Filespec not needed +# Run-time: +BuildRequires: perl(AutoLoader) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) >= 1.04 +BuildRequires: perl(Exporter) +BuildRequires: perl(Fcntl) +BuildRequires: perl(Getopt::Std) +BuildRequires: perl(warnings) +BuildRequires: perl(XSLoader) +# Tests: +BuildRequires: perl(Cwd) +# Memory::Usage not used +BuildRequires: perl(Test::More) +# Test::Kwalitee not used +# Optional tests: +%if !%{defined perl_bootstrap} && %{with perl_Compress_Bzip2_enables_optional_test} +BuildRequires: perl(Test::LeakTrace) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(constant) >= 1.04 + +%{?perl_default_filter} +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(constant\\)$ + +%description +The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression +library. A relevant subset of the functionality provided by Bzip2 is available +in Compress::Bzip2. Compress::Bzip2 is not well integrated into PerlIO, use +the preferred IO::Compress::Bzip2 instead. + +%prep +%setup -q -n Compress-Bzip2-%{version} +# Remove bundled bzip2 library +find bzlib-src -mindepth 1 -type f \! -name 'sample*' -delete +perl -i -ne 'print $_ unless m{^bzlib-src/}' MANIFEST +find bzlib-src -type f >>MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 \ + OPTIMIZE="$RPM_OPT_FLAGS" +%make_build + +%install +%make_install +find %{buildroot} -type f -name '*.bs' -empty -delete +%{_fixperms} %{buildroot} + +%check +make test + +%files +%license COPYING +%doc ANNOUNCE Changes NEWS README.md +%{perl_vendorarch}/Compress/ +%{perl_vendorarch}/auto/Compress/ +%{_mandir}/man3/*.3pm* + +%changelog +* Wed Apr 20 2022 Chunmei Xu - 1:2.28-1 +- init from upstream