rpms/perl-Compress-Zlib/EL-4 .cvsignore, 1.9, 1.10 perl-Compress-Zlib.spec, 1.28, 1.29 sources, 1.9, 1.10
Steven Pritchard (steve)
fedora-extras-commits at redhat.com
Fri Dec 21 15:00:43 UTC 2007
Author: steve
Update of /cvs/pkgs/rpms/perl-Compress-Zlib/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15612
Modified Files:
.cvsignore perl-Compress-Zlib.spec sources
Log Message:
Fork RHEL 5 spec for EPEL 4.
Update License tag.
Shorten Summary.
Canonicalize Source0 URL.
Use better BuildRoot.
Drop explicit BR perl.
BR ExtUtils::MakeMaker.
Add standard perl(:MODULE_COMPAT_...) dependency.
Use more standard install, build, etc.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Compress-Zlib/EL-4/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 2 Dec 2006 17:37:10 -0000 1.9
+++ .cvsignore 21 Dec 2007 15:00:09 -0000 1.10
@@ -1 +1 @@
-Compress-Zlib-2.001.tar.gz
+Compress-Zlib-1.42.tar.gz
Index: perl-Compress-Zlib.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Compress-Zlib/EL-4/perl-Compress-Zlib.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- perl-Compress-Zlib.spec 2 Dec 2006 17:37:10 -0000 1.28
+++ perl-Compress-Zlib.spec 21 Dec 2007 15:00:09 -0000 1.29
@@ -1,17 +1,15 @@
-
-%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
-%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
-
-Name: perl-Compress-Zlib
-Version: 2.001
-Release: 1%{?dist}
-Summary: A module providing Perl interfaces to the zlib compression library.
-License: GPL or Artistic
-Group: Development/Libraries
-URL: http://search.cpan.org/dist/Compress-Zlib/
-Source: ftp://cpan.org/pub/CPAN/authors/id/P/PM/PMQS/Compress-Zlib-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-root
-BuildRequires: perl >= 0:5.00503, zlib-devel
+Name: perl-Compress-Zlib
+Version: 1.42
+Release: 0.1%{?dist}
+Summary: Interface to zlib compression library
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Compress-Zlib/
+Source: http://www.cpan.org/authors/id/P/PM/PMQS/Compress-Zlib-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: zlib-devel
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The Compress::Zlib module provides a Perl interface to the zlib
@@ -30,33 +28,47 @@
OLD_ZLIB=False
ZLIB_LIB=%{_libdir}
ZLIB_INCLUDE=%{_includedir}
+
export BUILD_ZLIB OLD_ZLIB ZLIB_LIB ZLIB_INCLUDE
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
+
+%{__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' -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
-%install
-rm -rf $RPM_BUILD_ROOT
-%makeinstall
-
-rm -rf %{buildroot}%{perl_archlib} \
- %{buildroot}%{perl_vendorarch}/auto/*{,/*{,/*}}/{.packlist,*.bs}
-
%files
-%defattr(-, root, root, 0755)
-%doc ANNOUNCE README
-%doc %{_mandir}/man?/*
-%{perl_vendorarch}/Compress/
-%{perl_vendorarch}/auto/Compress/
+%defattr(-,root,root,-)
+%doc ANNOUNCE Changes README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Compress*
+%{_mandir}/man3/*
%changelog
-* Sat Dec 02 2006 Robin Norwood <rnorwood at redhat.com - 2.001-1
-- New version: 2.001
+* Thu Dec 20 2007 Steven Pritchard <steve at kspei.com> 1.42-0.1
+- Fork RHEL 5 spec for EPEL 4.
+- Update License tag.
+- Shorten Summary.
+- Canonicalize Source0 URL.
+- Use better BuildRoot.
+- Drop explicit BR perl.
+- BR ExtUtils::MakeMaker.
+- Add standard perl(:MODULE_COMPAT_...) dependency.
+- Use more standard install, build, etc.
* Mon Jul 17 2006 Jason Vas Dias <jvdias at redhat.com> - 1.42-1
- Upgrade to 1.42
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Compress-Zlib/EL-4/sources,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- sources 2 Dec 2006 17:37:10 -0000 1.9
+++ sources 21 Dec 2007 15:00:09 -0000 1.10
@@ -1 +1 @@
-73816b5839a5e502efe3ee7951168ac1 Compress-Zlib-2.001.tar.gz
+1ab76bfd6731d80f6abbd1643c90cabd Compress-Zlib-1.42.tar.gz
More information about the fedora-extras-commits
mailing list