rpms/perl-Bit-Vector/devel perl-Bit-Vector.spec,1.20,1.21

Robin Norwood (rnorwood) fedora-extras-commits at redhat.com
Tue Jul 3 17:01:11 UTC 2007


Author: rnorwood

Update of /cvs/pkgs/rpms/perl-Bit-Vector/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11948

Modified Files:
	perl-Bit-Vector.spec 
Log Message:
Resolves: rhbz#226241 - apply patch from package review.


Index: perl-Bit-Vector.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Bit-Vector/devel/perl-Bit-Vector.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- perl-Bit-Vector.spec	12 Jul 2006 07:43:05 -0000	1.20
+++ perl-Bit-Vector.spec	3 Jul 2007 17:00:35 -0000	1.21
@@ -1,18 +1,17 @@
 Name:           perl-Bit-Vector
 Version:        6.4
-Release: 	2.2.2.1
-Summary:        A module for high-performance Perl manipulation of bit vectors
+Release:        3%{?dist}
+Summary:        Efficient bit vector, set of integers and "big int" math library
 
 Group:          Development/Libraries
 License:        GPL or Artistic
 URL:            http://search.cpan.org/dist/Bit-Vector/
-Source0: http://www.cpan.org/authors/id/S/ST/STBEY/Bit-Vector-%{version}.tar.gz
+Source0:        http://www.cpan.org/authors/id/S/ST/STBEY/Bit-Vector-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  perl >= 1:5.6.1
-BuildRequires:  perl-Carp-Clan >= 5.3
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires:       perl-Carp-Clan >= 5.3
+BuildRequires:  perl(Carp::Clan) >= 5.3
+BuildRequires:  perl(ExtUtils::MakeMaker)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 Bit::Vector is an efficient C library which allows you to handle bit
@@ -31,19 +30,29 @@
 %{__perl} -pi -e 's|^#!perl\b|#!%{__perl}|' \
     examples/{benchmk{2,3},primes,SetObject}.pl
 
+# Filter unwanted Provides:
+cat << \EOF > %{name}-prov
+#!/bin/sh
+%{__perl_provides} $* |\
+  sed -e '/perl(Bit::Vector)/d'
+EOF
+
+%define __perl_provides %{_builddir}/Bit-Vector-%{version}/%{name}-prov
+chmod +x %{__perl_provides}
+
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
+%{__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 -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} $RPM_BUILD_ROOT/*
 
-%check || :
+%check
 make test
 
 %clean
@@ -60,7 +69,19 @@
 
 
 %changelog
-* Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - sh: line 0: fg: no job control
+* Sat Jun 30 2007 Steven Pritchard <steve at kspei.com> 6.4-3
+- Fix find option order.
+- Use fixperms macro instead of our own chmod incantation.
+- Remove check macro cruft.
+- Improve Summary.
+- Remove redundant perl build dependency.
+- BR ExtUtils::MakeMaker.
+- Set OPTIMIZE when we run Makefile.PL, not make.
+- BR perl(Carp::Clan) instead of perl-Carp-Clan.
+- Remove redundant Carp::Clan dependency.
+- Filter unversioned Provides: perl(Bit::Vector)
+
+* Wed Jul 12 2006 Jesse Keating <jkeating at redhat.com> - 6.4-2.2.2.1
 - rebuild
 
 * Fri Feb 10 2006 Jesse Keating <jkeating at redhat.com> - 6.4-2.2.2




More information about the scm-commits mailing list