From ee57ebd705541b8ea2debf689b8faec59e43d8c1 Mon Sep 17 00:00:00 2001 From: Robin Norwood Date: Tue, 3 Jul 2007 17:00:35 +0000 Subject: [PATCH] Resolves: rhbz#226241 - apply patch from package review. --- perl-Bit-Vector.spec | 47 ++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/perl-Bit-Vector.spec b/perl-Bit-Vector.spec index 36fa704..e03c0b0 100644 --- a/perl-Bit-Vector.spec +++ b/perl-Bit-Vector.spec @@ -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 @@ chmod 644 examples/*.pl %{__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 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Wed Jul 12 2006 Jesse Keating - sh: line 0: fg: no job control +* Sat Jun 30 2007 Steven Pritchard 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 - 6.4-2.2.2.1 - rebuild * Fri Feb 10 2006 Jesse Keating - 6.4-2.2.2