perl-Bit-Vector/perl-Bit-Vector.spec
Jesse Keating 85af23caef gcc bump
2005-12-17 02:09:11 +00:00

97 lines
2.8 KiB
RPMSpec

Name: perl-Bit-Vector
Version: 6.4
Release: 2.1.1
Summary: A module for high-performance Perl manipulation of bit vectors
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
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
%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.
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.
%prep
%setup -q -n Bit-Vector-%{version}
chmod 644 examples/*.pl
%{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' examples/benchmk1.pl
%{__perl} -pi -e 's|^#!perl\b|#!%{__perl}|' \
examples/{benchmk{2,3},primes,SetObject}.pl
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%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/*
%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/
%{perl_vendorarch}/auto/Bit/
%{_mandir}/man3/*.3*
%changelog
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcc
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt for new gcj
* Sat Apr 2 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 6.4-1
- Update to 6.4.
- Bring up to date with current Fedora.Extras perl spec template.
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 6.3-1
- update to 6.3
* Wed Jul 16 2003 Elliot Lee <sopwith@redhat.com>
- Rebuild, remove unpackaged files
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
- rebuilt
* Thu Aug 15 2002 Chip Turner <cturner@redhat.com>
- file list fix for Clan stuff
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Wed Jan 30 2002 cturner@redhat.com
- Specfile autogenerated