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