Christian Wittmer 2010-11-24 21:38:01 +00:00 committed by Git OBS Bridge
parent 57829a77e7
commit 7d9e03ce8f
2 changed files with 52 additions and 25 deletions

View File

@ -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

View File

@ -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 <sb@engelschall.com>
%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