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