From 7d9e03ce8fc1c245487abc0b4bfd7a34ec8f5a68e1d3b667c20e55f63bfe8f08 Mon Sep 17 00:00:00 2001 From: Christian Wittmer Date: Wed, 24 Nov 2010 21:38:01 +0000 Subject: [PATCH] cpanspec, fix deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Bit-Vector?expand=0&rev=8 --- perl-Bit-Vector.changes | 6 ++++ perl-Bit-Vector.spec | 71 ++++++++++++++++++++++++++--------------- 2 files changed, 52 insertions(+), 25 deletions(-) diff --git a/perl-Bit-Vector.changes b/perl-Bit-Vector.changes index af635cf..68e47d7 100644 --- a/perl-Bit-Vector.changes +++ b/perl-Bit-Vector.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 24 21:36:24 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 + o fix deps + ------------------------------------------------------------------- Wed Jan 13 16:36:27 CET 2010 - anicka@suse.cz diff --git a/perl-Bit-Vector.spec b/perl-Bit-Vector.spec index 5c3507b..31bc4e2 100644 --- a/perl-Bit-Vector.spec +++ b/perl-Bit-Vector.spec @@ -17,58 +17,79 @@ # norootforbuild - Name: perl-Bit-Vector -BuildRequires: perl-Carp-Clan +%define cpan_name Bit-Vector +Summary: Bit::Vector Perl module Version: 7.1 Release: 1 -Requires: perl = %{perl_version} -Requires: perl-Carp-Clan -AutoReqProv: on +License: GPL+ or Artistic Group: Development/Libraries/Perl -License: Artistic License .. -Url: http://cpan.org/modules/by-module/Bit/ -Summary: Efficient bit vector, set of integers and "big int" math library -Source: Bit-Vector-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Bit-Vector/ +#Source: http://www.cpan.org/authors/id/S/ST/STBEY/Bit-Vector-7.1.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 Patch: Bit-Vector-%{version}.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(Carp::Clan) >= 5.3 +BuildRequires: perl(Storable) >= 2.21 +Requires: perl = %{perl_version} +Requires: perl(Carp::Clan) >= 5.3 +Requires: perl(Storable) >= 2.21 %description -Bit::Vector is an efficient C library which allows you to handle bit -vectors, sets (of integers), "big integer arithmetic" and boolean -matrices, all of arbitrary sizes +Bit::Vector is an efficient C library which allows you to handle +bit vectors, sets (of integers), "big integer arithmetic" and +boolean matrices, all of arbitrary sizes. +The library is efficient (in terms of algorithmical complexity) +and therefore fast (in terms of execution speed) for instance +through the widespread use of divide-and-conquer algorithms. +The package also includes an object-oriented Perl module for +accessing the C library from Perl, and optionally features +overloaded operators for maximum ease of use. + +The C library can nevertheless be used stand-alone, without Perl. Authors: -------- Steffen Beyer %prep -%setup -n Bit-Vector-%{version} -q +%setup -q -n %{cpan_name}-%{version} %patch %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install %perl_make_install +### since 11.4 perl_process_packlist +### removes .packlist, perllocal.pod files +%if 0%{?suse_version} > 1130 %perl_process_packlist -for i in `ls *.txt`; do mv $i `basename $i .txt`; done +%else +# do not perl_process_packlist +# remove .packlist file +%{__rm} -f $RPM_BUILD_ROOT%perl_vendorarch/auto/Bit/Vector/.packlist +# remove perllocal.pod file +%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod +%endif +%perl_gen_filelist %clean -rm -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT -%files -%defattr(-,root,root) -%doc Artistic CHANGES CREDITS GNU_GPL GNU_LGPL README examples -%doc %{_mandir}/man?/* -%{perl_vendorarch}/Bit -%{perl_vendorarch}/auto/Bit -/var/adm/perl-modules/%{name} +%files -f %{name}.files +%defattr(-,root,root,-) +%doc Artistic.txt CREDITS.txt GNU_GPL.txt GNU_LGPL.txt +%doc CHANGES.txt README.txt examples %changelog