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