perl-BerkeleyDB/perl-BerkeleyDB.spec

Name: perl-BerkeleyDB
Summary: Perl extension for Berkeley DB version 2, 3 or 4
Version: 0.55
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/BerkeleyDB/
Description: Perl extension for Berkeley DB version 2, 3 or 4.

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: Paul Marquess <pmqs$cpan,org>


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

%define real_name BerkeleyDB

Summary: Perl extension for Berkeley DB version 2, 3 or 4
Name: perl-BerkeleyDB
Version: 0.55
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/BerkeleyDB/

Source: http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: perl >= 0:5.00503
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl >= 0:5.00503
%{!?dtag:BuildRequires: libdb-devel}
%{?el5:BuildRequires: db4-devel}
%{?fc6:BuildRequires: db4-devel}
%{?fc5:BuildRequires: db4-devel}
%{?fc4:BuildRequires: db4-devel}
%{?el4:BuildRequires: db4-devel}
%{?fc3:BuildRequires: db4-devel}
%{?fc2:BuildRequires: db4-devel}

%description
Perl extension for Berkeley DB version 2, 3 or 4.

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

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

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

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

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

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README Todo
%doc %{_mandir}/man3/BerkeleyDB.3pm*
%{perl_vendorarch}/auto/BerkeleyDB/
%{perl_vendorarch}/BerkeleyDB/
%{perl_vendorarch}/BerkeleyDB.pm
%{perl_vendorarch}/BerkeleyDB.pod
%{perl_vendorarch}/mkconsts.pl
%{perl_vendorarch}/scan.pl

%changelog
* Fri Nov 27 2015 Dries Verachtert <dries.verachtert@dries.eu> - 0.55-1
- Updated to release 0.55.

* Fri Sep 10 2010 David Hrbáč <david@hrbac.cz> - 0.43-1
- new upstream version

* Sat Feb  6 2010 Christoph Maser <cmr@financial.com> - 0.41-1
- Updated to version 0.41.

* Fri Jan  8 2010 Christoph Maser <cmr@financial.com> - 0.40-1
- Updated to version 0.40.

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

* Tue Oct 07 2008 Dag Wieers <dag@wieers.com> - 0.36-1
- Updated to release 0.36.

* Sat May 03 2008 Dag Wieers <dag@wieers.com> - 0.34-1
- Updated to release 0.34.

* Wed Jan 23 2008 Dag Wieers <dag@wieers.com> - 0.33-1
- Updated to release 0.33.

* Tue Nov 06 2007 Dag Wieers <dag@wieers.com> - 0.32-1
- Updated to release 0.32.

* Mon Nov  6 2006 Matthias Saou <http://freshrpms.net/> 0.31-1
- Update to 0.31.

* Mon Sep 18 2006 Dries Verachtert <dries@ulyssis.org> - 0.30-1
- Updated to release 0.30.

* Sat Nov  5 2005 Dries Verachtert <dries@ulyssis.org> - 0.27-1
- Updated to release 0.27.

* Tue Mar 29 2005 Dag Wieers <dag@wieers.com> - 0.26-2
- Cosmetic changes.

* Wed Oct 20 2004 Dries Verachtert <dries@ulyssis.org> 0.26-0
- Update to release 0.26.

* Tue Mar 02 2004 Dag Wieers <dag@wieers.com> - 0.25-0
- Initial package. (using DAR)