Initial checkin: perl-Compress-Raw-Zlib
This commit is contained in:
parent
66b185210a
commit
a7f40e05e8
@ -0,0 +1 @@
|
||||
Compress-Raw-Zlib-2.004.tar.gz
|
61
perl-Compress-Raw-Zlib.spec
Normal file
61
perl-Compress-Raw-Zlib.spec
Normal file
@ -0,0 +1,61 @@
|
||||
Name: perl-Compress-Raw-Zlib
|
||||
Version: 2.004
|
||||
Release: 1%{?dist}
|
||||
Summary: Low-Level Interface to the zlib compression library
|
||||
|
||||
Group: Development/Libraries
|
||||
License: Artistic or GPL
|
||||
URL: http://search.cpan.org/dist/Compress-Raw-Zlib/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Zlib-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: perl, perl(ExtUtils::MakeMaker), zlib-devel, perl(Test::Pod)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module provides a Perl interface to the zlib compression library.
|
||||
It is used by IO::Compress::Zlib.
|
||||
|
||||
%prep
|
||||
%setup -q -n Compress-Raw-Zlib-%{version}
|
||||
|
||||
|
||||
%build
|
||||
BUILD_ZLIB=False
|
||||
OLD_ZLIB=False
|
||||
ZLIB_LIB=%{_libdir}
|
||||
ZLIB_INCLUDE=%{_includedir}
|
||||
export BUILD_ZLIB OLD_ZLIB ZLIB_LIB ZLIB_INCLUDE
|
||||
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
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' -a -size 0 -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc
|
||||
%{perl_vendorarch}/auto/Compress
|
||||
%{perl_vendorarch}/Compress
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 05 2007 Robin Norwood <rnorwood@redhat.com> - 2.004-1
|
||||
- Initial build from CPAN
|
Loading…
Reference in New Issue
Block a user