perl-Bit-Vector/perl-Bit-Vector.spec

Name: perl-Bit-Vector
Summary: Efficient bit vector, set of integers and "big int" math library
Version: 7.4
Release: 1
License: Artistic/GPL/LGPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Bit-Vector/
Description: Efficient bit vector, set of integers and "big int" math library.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Steffen Beyer <sb$engelschall,com>

### EL6 ships with perl-Bit-Vector-7.1-2.el6
%{?el6:# Tag: rfx}
### EL5 ships with perl-Bit-Vector-6.4-2.2.2.1
%{?el5:# Tag: rfx}
### EL4 ships with perl-Bit-Vector-6.3-3
%{?el4:# Tag: rfx}

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Bit-Vector

Summary: Efficient bit vector, set of integers and "big int" math library
Name: perl-Bit-Vector
Version: 7.4
Release: 1%{?dist}
License: Artistic/GPL/LGPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Bit-Vector/

Source: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Bit-Vector-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Carp::Clan) >= 5.3
#BuildRequires: perl(Storable) >= 2.21
BuildRequires: perl(Storable)
Requires: perl(Carp::Clan) >= 5.3
#Requires: perl(Storable) >= 2.21
Requires: perl(Storable)

%filter_from_requires /^perl*/d
%filter_setup


%description
Efficient bit vector, set of integers and "big int" math library.

%prep
%setup -n %{real_name}-%{version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Artistic.txt CHANGES.txt CREDITS.txt GNU_GPL.txt GNU_LGPL.txt INSTALL.txt MANIFEST README.txt examples/
%doc %{_mandir}/man3/*.3pm*
%dir %{perl_vendorarch}/auto/Bit/
%{perl_vendorarch}/auto/Bit/Vector/
%dir %{perl_vendorarch}/Bit/
%{perl_vendorarch}/Bit/Vector.pm
%{perl_vendorarch}/Bit/Vector.pod
%{perl_vendorarch}/Bit/Vector/

%changelog
* Mon Jul 04 2016 Dries Verachtert <dries.verachtert@dries.eu> - 7.4-1
- Updated to release 7.4.

* Thu Jan  7 2010 Christoph Maser <cmr@financial.com> - 7.1-1
- Updated to version 7.1.

* Sun Jun 04 2006 Dag Wieers <dag@wieers.com> - 6.4-2
- Fixed a problem on FC2 and FC3.

* Mon May 29 2006 Dag Wieers <dag@wieers.com> - 6.4-1
- Initial package. (using DAR)