From 4d427e14bdaa7f36d8d231f651422f7044e99a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Tue, 2 Aug 2011 15:13:34 +0200 Subject: [PATCH] filter *.so library incorectly provided by package clean spec file --- perl-Bit-Vector.spec | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/perl-Bit-Vector.spec b/perl-Bit-Vector.spec index 4f4fc1c..25f4127 100644 --- a/perl-Bit-Vector.spec +++ b/perl-Bit-Vector.spec @@ -1,6 +1,6 @@ Name: perl-Bit-Vector Version: 7.1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Efficient bit vector, set of integers and "big int" math library Group: Development/Libraries @@ -8,12 +8,13 @@ Group: Development/Libraries License: (GPLv2+ or Artistic) and LGPLv2+ URL: http://search.cpan.org/dist/Bit-Vector/ 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(Carp::Clan) >= 5.4 BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%{?perl_default_filter} + %description Bit::Vector is an efficient C library which allows you to handle bit vectors, sets (of integers), "big integer arithmetic" and boolean @@ -31,22 +32,11 @@ 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 %{__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 {} ';' @@ -56,12 +46,7 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' %check make test -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Artistic.txt GNU_GPL.txt GNU_LGPL.txt %doc CHANGES.txt CREDITS.txt README.txt examples/ %{perl_vendorarch}/Bit/ @@ -70,6 +55,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Aug 2 2011 Marcela Mašláňová - 7.1-7 +- filter *.so library incorectly provided by package +- clean spec file + * Wed Jun 29 2011 Marcela Mašláňová - 7.1-6 - Perl mass rebuild