acb1f02
Name:           perl-DB_File
cfa3a22
Version:        1.835
a7d9c18
Release:        1%{?dist}
acb1f02
Summary:        Perl5 access to Berkeley DB version 1.x
acb1f02
License:        GPL+ or Artistic
acb1f02
Group:          Development/Libraries
acb1f02
URL:            http://search.cpan.org/dist/DB_File/
acb1f02
Source0:        http://www.cpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
7587e2d
# Destroy DB_File objects only from original thread context, bug #1107732,
7587e2d
# CPAN RT#96357
a7d9c18
Patch0:         DB_File-1.833-Destroy-DB_File-objects-only-from-original-thread-co.patch
acb1f02
BuildRequires:  libdb-devel
acb1f02
BuildRequires:  perl
acb1f02
BuildRequires:  perl(Config)
acb1f02
BuildRequires:  perl(ExtUtils::Constant)
acb1f02
BuildRequires:  perl(ExtUtils::MakeMaker) >= 5.16
acb1f02
# File::Copy not needed if ExtUtils::Constant is available
acb1f02
BuildRequires:  perl(strict)
acb1f02
# Run-time:
acb1f02
BuildRequires:  perl(Carp)
acb1f02
# DynaLoader not needed if XSLoader is available
acb1f02
BuildRequires:  perl(Exporter)
acb1f02
BuildRequires:  perl(Fcntl)
acb1f02
BuildRequires:  perl(File::Spec)
acb1f02
BuildRequires:  perl(Tie::Hash)
acb1f02
BuildRequires:  perl(warnings)
acb1f02
BuildRequires:  perl(XSLoader)
acb1f02
# Tests:
acb1f02
BuildRequires:  perl(Symbol)
b4c94a8
BuildRequires:  perl(Test::More)
7587e2d
BuildRequires:  perl(threads)
acb1f02
%if !%{defined perl_bootstrap}
acb1f02
# Optional tests:
fd2548b
# Data::Dumper not useful
acb1f02
BuildRequires:  perl(Test::Pod) >= 1.00
acb1f02
%endif
acb1f02
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
acb1f02
Requires:       perl(Fcntl)
acb1f02
Requires:       perl(XSLoader)
acb1f02
acb1f02
%{?perl_default_filter}
acb1f02
acb1f02
%description
acb1f02
DB_File is a module which allows Perl programs to make use of the facilities
acb1f02
provided by Berkeley DB version 1.x (if you have a newer version of DB, you
acb1f02
will be limited to functionality provided by interface of version 1.x). The
acb1f02
interface defined here mirrors the Berkeley DB interface closely.
acb1f02
acb1f02
%prep
acb1f02
%setup -q -n DB_File-%{version}
7587e2d
%patch0 -p1
acb1f02
find -type f -exec chmod -x {} +
acb1f02
%fix_shbang_line dbinfo
acb1f02
acb1f02
%build
acb1f02
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
acb1f02
make %{?_smp_mflags}
acb1f02
acb1f02
%install
acb1f02
make pure_install DESTDIR=$RPM_BUILD_ROOT
acb1f02
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
acb1f02
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
acb1f02
%{_fixperms} $RPM_BUILD_ROOT/*
acb1f02
acb1f02
%check
acb1f02
make test
acb1f02
acb1f02
%files
acb1f02
%doc Changes dbinfo README
acb1f02
%{perl_vendorarch}/auto/*
acb1f02
%{perl_vendorarch}/DB_File*
acb1f02
%{_mandir}/man3/*
acb1f02
acb1f02
%changelog
cfa3a22
* Fri Jan 02 2015 Petr Pisar <ppisar@redhat.com> - 1.835-1
cfa3a22
- 1.835 bump
cfa3a22
9ba2bdb
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 1.834-1
9ba2bdb
- 1.834 bump
9ba2bdb
a7d9c18
* Wed Dec 10 2014 Petr Pisar <ppisar@redhat.com> - 1.833-1
a7d9c18
- 1.833 bump
a7d9c18
785aa90
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.831-6
785aa90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
785aa90
b4c94a8
* Fri Aug 08 2014 Petr Pisar <ppisar@redhat.com> - 1.831-5
b4c94a8
- Build-require Test::More always because of the new thread tests
b4c94a8
51e7504
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.831-4
51e7504
- Initialize db_DESTROY return variable (bug #1107732)
51e7504
7587e2d
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.831-3
7587e2d
- Destroy DB_File objects only from original thread context (bug #1107732)
7587e2d
e09d631
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.831-2
e09d631
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e09d631
3bad681
* Tue Nov 19 2013 Petr Pisar <ppisar@redhat.com> - 1.831-1
3bad681
- 1.831 bump
3bad681
fd2548b
* Mon Nov 04 2013 Petr Pisar <ppisar@redhat.com> - 1.830-1
fd2548b
- 1.830 bump
fd2548b
af00460
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.829-4
af00460
- Perl 5.18 re-rebuild of bootstrapped packages
af00460
95c8834
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.829-3
95c8834
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
95c8834
2d7a84e
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.829-2
2d7a84e
- Perl 5.18 rebuild
2d7a84e
baaefff
* Wed Jul 10 2013 Petr Pisar <ppisar@redhat.com> - 1.829-1
baaefff
- 1.829 bump
baaefff
ed9bee0
* Thu May 09 2013 Petr Pisar <ppisar@redhat.com> - 1.828-1
ed9bee0
- 1.828 bump
ed9bee0
acb1f02
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> 1.827-1
acb1f02
- Specfile autogenerated by cpanspec 1.78.