perl-DB_File/perl-DB_File.spec

Name: perl-DB_File
Summary: Perl5 access to Berkeley DB version 1.x
Version: 1.827
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/DB_File/
Description: perl-DB_File is a Perl module providing access to Berkeley DB version 1.x.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build was not successful.

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>

### EL3 ships with perl-DB_File-1.806-101.EL3
%{?el3:# Tag: rfx}
### EL2 ships with perl-DB_File-1.75-37.1.99ent
%{?el2:# Tag: rfx}

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

%define real_name DB_File

Summary: Perl5 access to Berkeley DB version 1.x
Name: perl-DB_File
Version: 1.827
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/DB_File/

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

BuildRequires: perl
BuildRequires: db4-devel
Requires: db4

%description
perl-DB_File is a Perl module providing access to Berkeley DB version 1.x.

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

%{__perl} -pi.orig -e "s|INSTALLDIRS => \'perl\'|INSTALDIRS => \'vendor\'|" Makefile.PL

%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
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/DB_File.3pm*
%{perl_vendorarch}/auto/DB_File/
%{perl_vendorarch}/DB_File.pm

%changelog
* Mon Dec 17 2012 David Hrbáč <david@hrbac.cz> - 1.827-1
- new upstream release

* Wed Apr 25 2012 David Hrbáč <david@hrbac.cz> - 1.826-1
- new upstream release

* Mon Mar 14 2011 David Hrbáč <david@hrbac.cz> - 1.822-1
- new upstream release

* Wed Mar 02 2011 David Hrbáč <david@hrbac.cz> - 1.821-1
- new upstream release

* Tue Jul  7 2009 Christoph Maser <cmr@financial.com> - 1.820-1
- Updated to version 1.820.

* Mon May 05 2008 Dag Wieers <dag@wieers.com> - 1.817-1
- Updated to release 1.817.

* Fri Nov 09 2007 Dag Wieers <dag@wieers.com> - 1.816-1
- Updated to release 1.816.

* Sun Oct 07 2007 Dag Wieers <dag@wieers.com> - 1.815-1
- Initial package. (using DAR)