commit 748315595bbef4952c0f5d78383787e643f2f00f Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:11:45 2019 -0400 Package init diff --git a/Compress-Raw-Zlib-2.081.tar.gz b/Compress-Raw-Zlib-2.081.tar.gz new file mode 100644 index 0000000..cd72a86 Binary files /dev/null and b/Compress-Raw-Zlib-2.081.tar.gz differ diff --git a/perl-Compress-Raw-Zlib.spec b/perl-Compress-Raw-Zlib.spec new file mode 100644 index 0000000..6981a49 --- /dev/null +++ b/perl-Compress-Raw-Zlib.spec @@ -0,0 +1,60 @@ +Name: perl-Compress-Raw-Zlib +Version: 2.081 +Release: 6 +Summary: Provides a Perl interface to the zlib compression library +# source code in tarball have different license +# not used +# zlib-src: zlib +# Others: GPL+ or Artistic +License: (GPL or Artistic) and zlib +URL: https://metacpan.org/release/Compress-Raw-Zlib +Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/Compress-Raw-Zlib-%{version}.tar.gz + +BuildRequires: gcc gdb perl(ExtUtils::MakeMaker) perl-interpreter perl-generators zlib-devel +#for test +BuildRequires: perl(Test::Pod) >= 1.00 +Requires: perl(XSLoader) perl(:MODULE_COMPAT_%(perl -V:version | cut -d"'" -f 2)) + +%description +This module provides a Perl interface to the zlib compression library. + +%package_help + +%prep +%autosetup -n Compress-Raw-Zlib-%{version} -p1 + +%build +#change config as introduce in README +BUILD_ZLIB=False +ZLIB_INCLUDE=%{_includedir} +ZLIB_LIB=%{_libdir} +OLD_ZLIB=False +export BUILD_ZLIB ZLIB_INCLUDE ZLIB_LIB OLD_ZLIB +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 +%make_build + +%install +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot} + +%check +make test TEST_VERBOSE=1 COMPRESS_ZLIB_RUN_ALL=1 + +%files +%doc README +%{perl_vendorarch}/*/*/*.pm +%{perl_vendorarch}/*/*/*/*/*.so + +%files help +%doc Changes +%{_mandir}/man3/* + +%changelog +* Thu Sep 5 2019 shenyangyang - 2.081-6 +- Type:enhancement +- ID:NA +- SUG:restart +- DESC:modify license + +* Thu Aug 29 2019 openEuler Buildteam - 2.081-5 +- Package init