From a7f40e05e89863f14c4db0417960624f220a59f4 Mon Sep 17 00:00:00 2001 From: Robin Norwood Date: Mon, 11 Jun 2007 20:39:10 +0000 Subject: [PATCH] Initial checkin: perl-Compress-Raw-Zlib --- .cvsignore | 1 + perl-Compress-Raw-Zlib.spec | 61 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Compress-Raw-Zlib.spec diff --git a/.cvsignore b/.cvsignore index e69de29..efa339c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Compress-Raw-Zlib-2.004.tar.gz diff --git a/perl-Compress-Raw-Zlib.spec b/perl-Compress-Raw-Zlib.spec new file mode 100644 index 0000000..e680770 --- /dev/null +++ b/perl-Compress-Raw-Zlib.spec @@ -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 - 2.004-1 +- Initial build from CPAN diff --git a/sources b/sources index e69de29..d191bd2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e5b78784b4e3ec857793cc3fa4e51346 Compress-Raw-Zlib-2.004.tar.gz