diff --git a/Compress-LZ4-0.25.tar.gz b/Compress-LZ4-0.25.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f4b22f77c901be31ce4aa6e2234fa41d608a784e Binary files /dev/null and b/Compress-LZ4-0.25.tar.gz differ diff --git a/perl-Compress-LZ4.spec b/perl-Compress-LZ4.spec new file mode 100644 index 0000000000000000000000000000000000000000..aac54aedd1d7c8c0cdef573c7cd02cf1f504e749 --- /dev/null +++ b/perl-Compress-LZ4.spec @@ -0,0 +1,69 @@ +%global _empty_manifest_terminate_build 0 +%global desc The Compress::LZ4 module provides an interface to the LZ4 (de)compressor. + +Name: perl-Compress-LZ4 +Version: 0.25 +Release: 2 +Summary: Perl interface to the LZ4 (de)compressor +License: Perl License +Group: Development/Libraries +URL: http://search.cpan.org/dist/Compress-LZ4/ +Source0: http://www.cpan.org/authors/id/G/GR/GRAY/Compress-LZ4-%{version}.tar.gz +BuildRequires: perl-generators +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) >= 0.82 +BuildRequires: perl(XSLoader) +Requires: perl(Exporter) >= 5.57 +Requires: perl(XSLoader) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +%{desc} + +%package help +Summary : Perl interface to the LZ4 (de)compressor +Provides: perl-Compress-LZ4-doc +%description help +%{desc} + +%prep +%setup -q -n Compress-LZ4-%{version} + +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%doc Changes META.json README ex +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Compress* +%{_mandir}/* + +%changelog +* Fri Jul 16 2021 Perl_Bot 0.25-1 +- Specfile autogenerated by Perl_Bot +* Fri Jul 17 Lin_vy 0.25-2 +- Modify the License's value. +- Adjusted the %description. +- Optimized part of the code. +- Added the help manual in the spec file. +- Added the ex