c62932
# Run optional test
c62932
%if ! (0%{?rhel})
c62932
%bcond_without perl_DB_File_enables_optional_test
c62932
%else
c62932
%bcond_with perl_DB_File_enables_optional_test
c62932
%endif
c62932
c62932
Name:           perl-DB_File
c62932
Version:        1.842
c62932
Release:        2%{?dist}
c62932
Summary:        Perl5 access to Berkeley DB version 1.x
c62932
License:        GPL+ or Artistic
c62932
URL:            https://metacpan.org/release/DB_File
c62932
Source0:        https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
c62932
BuildRequires:  coreutils
c62932
BuildRequires:  findutils
c62932
BuildRequires:  gcc
c62932
BuildRequires:  libdb-devel
c62932
BuildRequires:  perl-devel
c62932
BuildRequires:  perl-generators
c62932
BuildRequires:  perl-interpreter
c62932
BuildRequires:  perl(Config)
c62932
BuildRequires:  perl(ExtUtils::Constant)
c62932
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
c62932
# File::Copy not needed if ExtUtils::Constant is available
c62932
BuildRequires:  perl(strict)
c62932
# Run-time:
c62932
BuildRequires:  perl(Carp)
c62932
# DynaLoader not needed if XSLoader is available
c62932
BuildRequires:  perl(Exporter)
c62932
BuildRequires:  perl(Fcntl)
c62932
BuildRequires:  perl(File::Spec)
c62932
BuildRequires:  perl(Tie::Hash)
c62932
BuildRequires:  perl(warnings)
c62932
BuildRequires:  perl(XSLoader)
c62932
# Tests:
c62932
BuildRequires:  perl(Symbol)
c62932
BuildRequires:  perl(Test::More)
c62932
BuildRequires:  perl(threads)
c62932
%if %{with perl_DB_File_enables_optional_test} && !%{defined perl_bootstrap}
c62932
# Optional tests:
c62932
# Data::Dumper not useful
c62932
BuildRequires:  perl(Test::Pod) >= 1.00
c62932
%endif
c62932
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c62932
Requires:       perl(Fcntl)
c62932
Requires:       perl(XSLoader)
c62932
c62932
%{?perl_default_filter}
c62932
c62932
%description
c62932
DB_File is a module which allows Perl programs to make use of the facilities
c62932
provided by Berkeley DB version 1.x (if you have a newer version of DB, you
c62932
will be limited to functionality provided by interface of version 1.x). The
c62932
interface defined here mirrors the Berkeley DB interface closely.
c62932
c62932
%prep
c62932
%setup -q -n DB_File-%{version}
c62932
find -type f -exec chmod -x {} +
c62932
perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' dbinfo
c62932
c62932
%build
c62932
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
c62932
make %{?_smp_mflags}
c62932
c62932
%install
c62932
make pure_install DESTDIR=$RPM_BUILD_ROOT
c62932
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
c62932
%{_fixperms} $RPM_BUILD_ROOT/*
c62932
c62932
%check
c62932
make test
c62932
c62932
%files
c62932
%doc Changes dbinfo README
c62932
%{perl_vendorarch}/auto/*
c62932
%{perl_vendorarch}/DB_File*
c62932
%{_mandir}/man3/*
c62932
c62932
%changelog
c62932
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.842-2
c62932
- Rebuild with enable hardening (bug #1636329)
c62932
c62932
* Mon Jul 16 2018 Petr Pisar <ppisar@redhat.com> - 1.842-1
c62932
- 1.842 bump
c62932
c62932
* Tue Apr 03 2018 Petr Pisar <ppisar@redhat.com> - 1.841-1
c62932
- 1.841 bump
c62932
c62932
* Mon Feb 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.840-398
c62932
- Add build-require gcc
c62932
c62932
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.840-397
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c62932
c62932
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.840-396
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
c62932
c62932
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.840-395
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c62932
c62932
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.840-394
c62932
- Perl 5.26 re-rebuild of bootstrapped packages
c62932
c62932
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.840-393
c62932
- Perl 5.26 rebuild
c62932
c62932
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.840-2
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c62932
c62932
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 1.840-1
c62932
- 1.840 bump
c62932
c62932
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.838-2
c62932
- Perl 5.24 re-rebuild of bootstrapped packages
c62932
c62932
* Mon May 16 2016 Petr Pisar <ppisar@redhat.com> - 1.838-1
c62932
- 1.838 bump
c62932
c62932
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.835-365
c62932
- Increase release to favour standalone package
c62932
c62932
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.835-348
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c62932
c62932
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.835-347
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c62932
c62932
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.835-346
c62932
- Perl 5.22 re-rebuild of bootstrapped packages
c62932
c62932
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.835-345
c62932
- Increase release to favour standalone package
c62932
c62932
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.835-2
c62932
- Perl 5.22 rebuild
c62932
c62932
* Fri Jan 02 2015 Petr Pisar <ppisar@redhat.com> - 1.835-1
c62932
- 1.835 bump
c62932
c62932
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 1.834-1
c62932
- 1.834 bump
c62932
c62932
* Wed Dec 10 2014 Petr Pisar <ppisar@redhat.com> - 1.833-1
c62932
- 1.833 bump
c62932
c62932
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.831-311
c62932
- Perl 5.20 re-rebuild of bootstrapped packages
c62932
c62932
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.831-310
c62932
- Increase release to favour standalone package
c62932
c62932
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.831-7
c62932
- Perl 5.20 rebuild
c62932
c62932
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.831-6
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c62932
c62932
* Fri Aug 08 2014 Petr Pisar <ppisar@redhat.com> - 1.831-5
c62932
- Build-require Test::More always because of the new thread tests
c62932
c62932
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.831-4
c62932
- Initialize db_DESTROY return variable (bug #1107732)
c62932
c62932
* Thu Aug 07 2014 Petr Pisar <ppisar@redhat.com> - 1.831-3
c62932
- Destroy DB_File objects only from original thread context (bug #1107732)
c62932
c62932
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.831-2
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c62932
c62932
* Tue Nov 19 2013 Petr Pisar <ppisar@redhat.com> - 1.831-1
c62932
- 1.831 bump
c62932
c62932
* Mon Nov 04 2013 Petr Pisar <ppisar@redhat.com> - 1.830-1
c62932
- 1.830 bump
c62932
c62932
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.829-4
c62932
- Perl 5.18 re-rebuild of bootstrapped packages
c62932
c62932
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.829-3
c62932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c62932
c62932
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.829-2
c62932
- Perl 5.18 rebuild
c62932
c62932
* Wed Jul 10 2013 Petr Pisar <ppisar@redhat.com> - 1.829-1
c62932
- 1.829 bump
c62932
c62932
* Thu May 09 2013 Petr Pisar <ppisar@redhat.com> - 1.828-1
c62932
- 1.828 bump
c62932
c62932
* Thu Mar 21 2013 Petr Pisar <ppisar@redhat.com> 1.827-1
c62932
- Specfile autogenerated by cpanspec 1.78.