Resolves: rhbz#226241 - apply patch from package review.

This commit is contained in:
Robin Norwood 2007-07-03 17:00:35 +00:00
parent 04f2dcd7ee
commit ee57ebd705

View File

@ -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 <jkeating@redhat.com> - sh: line 0: fg: no job control
* Sat Jun 30 2007 Steven Pritchard <steve@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@redhat.com> - 6.4-2.2.2.1
- rebuild
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 6.4-2.2.2