|
|
c57e53 |
Name: perl-DB_File
|
|
|
c57e53 |
Version: 1.830
|
|
|
f88075 |
Release: 6%{?dist}
|
|
|
c57e53 |
Summary: Perl5 access to Berkeley DB version 1.x
|
|
|
c57e53 |
License: GPL+ or Artistic
|
|
|
c57e53 |
Group: Development/Libraries
|
|
|
c57e53 |
URL: http://search.cpan.org/dist/DB_File/
|
|
|
c57e53 |
Source0: http://www.cpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
|
|
|
f88075 |
# Destroy DB_File objects only from original thread context, bug #1107728,
|
|
|
f88075 |
# CPAN RT#96357
|
|
|
f88075 |
Patch0: DB_File-1.831-Destroy-DB_File-objects-only-from-original-thread-co.patch
|
|
|
c57e53 |
BuildRequires: libdb-devel
|
|
|
c57e53 |
BuildRequires: perl
|
|
|
c57e53 |
BuildRequires: perl(Config)
|
|
|
c57e53 |
BuildRequires: perl(ExtUtils::Constant)
|
|
|
c57e53 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 5.16
|
|
|
c57e53 |
# File::Copy not needed if ExtUtils::Constant is available
|
|
|
c57e53 |
BuildRequires: perl(strict)
|
|
|
c57e53 |
# Run-time:
|
|
|
c57e53 |
BuildRequires: perl(Carp)
|
|
|
c57e53 |
# DynaLoader not needed if XSLoader is available
|
|
|
c57e53 |
BuildRequires: perl(Exporter)
|
|
|
c57e53 |
BuildRequires: perl(Fcntl)
|
|
|
c57e53 |
BuildRequires: perl(File::Spec)
|
|
|
c57e53 |
BuildRequires: perl(Tie::Hash)
|
|
|
c57e53 |
BuildRequires: perl(warnings)
|
|
|
c57e53 |
BuildRequires: perl(XSLoader)
|
|
|
c57e53 |
# Tests:
|
|
|
c57e53 |
BuildRequires: perl(Symbol)
|
|
|
f88075 |
BuildRequires: perl(Test::More)
|
|
|
f88075 |
BuildRequires: perl(threads)
|
|
|
c57e53 |
%if !%{defined perl_bootstrap}
|
|
|
c57e53 |
# Optional tests:
|
|
|
c57e53 |
# Data::Dumper not useful
|
|
|
c57e53 |
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
c57e53 |
%endif
|
|
|
c57e53 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
c57e53 |
Requires: perl(Fcntl)
|
|
|
c57e53 |
Requires: perl(XSLoader)
|
|
|
c57e53 |
|
|
|
c57e53 |
%{?perl_default_filter}
|
|
|
c57e53 |
|
|
|
c57e53 |
%description
|
|
|
c57e53 |
DB_File is a module which allows Perl programs to make use of the facilities
|
|
|
c57e53 |
provided by Berkeley DB version 1.x (if you have a newer version of DB, you
|
|
|
c57e53 |
will be limited to functionality provided by interface of version 1.x). The
|
|
|
c57e53 |
interface defined here mirrors the Berkeley DB interface closely.
|
|
|
c57e53 |
|
|
|
c57e53 |
%prep
|
|
|
c57e53 |
%setup -q -n DB_File-%{version}
|
|
|
f88075 |
%patch0 -p1
|
|
|
c57e53 |
find -type f -exec chmod -x {} +
|
|
|
c57e53 |
%fix_shbang_line dbinfo
|
|
|
c57e53 |
|
|
|
c57e53 |
%build
|
|
|
c57e53 |
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
c57e53 |
make %{?_smp_mflags}
|
|
|
c57e53 |
|
|
|
c57e53 |
%install
|
|
|
c57e53 |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
c57e53 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
c57e53 |
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
c57e53 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
c57e53 |
|
|
|
c57e53 |
%check
|
|
|
c57e53 |
make test
|
|
|
c57e53 |
|
|
|
c57e53 |
%files
|
|
|
c57e53 |
%doc Changes dbinfo README
|
|
|
c57e53 |
%{perl_vendorarch}/auto/*
|
|
|
c57e53 |
%{perl_vendorarch}/DB_File*
|
|
|
c57e53 |
%{_mandir}/man3/*
|
|
|
c57e53 |
|
|
|
c57e53 |
%changelog
|
|
|
f88075 |
* Fri Aug 08 2014 Petr Pisar <ppisar@redhat.com> - 1.830-6
|
|
|
f88075 |
- Build-require Test::More always because of the new thread tests
|
|
|
f88075 |
|
|
|
f88075 |
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.830-5
|
|
|
f88075 |
- Initialize db_DESTROY return variable (bug #1107728)
|
|
|
f88075 |
|
|
|
f88075 |
* Fri Jun 13 2014 Petr Pisar <ppisar@redhat.com> - 1.830-4
|
|
|
f88075 |
- Destroy DB_File objects only from original thread context (bug #1107728)
|
|
|
f88075 |
|
|
|
8b72ab |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.830-3
|
|
|
8b72ab |
- Mass rebuild 2014-01-24
|
|
|
8b72ab |
|
|
|
8b72ab |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.830-2
|
|
|
8b72ab |
- Mass rebuild 2013-12-27
|
|
|
8b72ab |
|
|
|
c57e53 |
* Mon Nov 04 2013 Petr Pisar <ppisar@redhat.com> - 1.830-1
|
|
|
c57e53 |
- 1.830 bump (bug #1026266)
|
|
|
c57e53 |
|
|
|
c57e53 |
* Thu May 09 2013 Petr Pisar <ppisar@redhat.com> - 1.828-1
|
|
|
c57e53 |
- 1.828 bump
|
|
|
c57e53 |
|
|
|
c57e53 |
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> 1.827-1
|
|
|
c57e53 |
- Specfile autogenerated by cpanspec 1.78.
|