Package init
This commit is contained in:
commit
748315595b
BIN
Compress-Raw-Zlib-2.081.tar.gz
Normal file
BIN
Compress-Raw-Zlib-2.081.tar.gz
Normal file
Binary file not shown.
60
perl-Compress-Raw-Zlib.spec
Normal file
60
perl-Compress-Raw-Zlib.spec
Normal file
@ -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<shenyangyang4@huawei.com> - 2.081-6
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:restart
|
||||
- DESC:modify license
|
||||
|
||||
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.081-5
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user