# Run optional test %if ! (0%{?rhel}) %bcond_without perl_DB_File_enables_optional_test %else %bcond_with perl_DB_File_enables_optional_test %endif Name: perl-DB_File Version: 1.842 Release: 1%{?dist} Vendor: bww bitwise works GmbH Summary: Perl5 access to Berkeley DB version 1.x License: GPL+ or Artistic URL: https://metacpan.org/release/DB_File Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc #BuildRequires: libdb-devel BuildRequires: perl-devel BuildRequires: perl-generators #BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::Constant) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63 # File::Copy not needed if ExtUtils::Constant is available BuildRequires: perl(strict) # Run-time: BuildRequires: perl(Carp) # DynaLoader not needed if XSLoader is available BuildRequires: perl(Exporter) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Spec) BuildRequires: perl(Tie::Hash) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(Symbol) BuildRequires: perl(Test::More) BuildRequires: perl(threads) %if %{with perl_DB_File_enables_optional_test} && !%{defined perl_bootstrap} # Optional tests: # Data::Dumper not useful BuildRequires: perl(Test::Pod) >= 1.00 %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Fcntl) Requires: perl(XSLoader) %{?perl_default_filter} %description DB_File is a module which allows Perl programs to make use of the facilities provided by Berkeley DB version 1.x (if you have a newer version of DB, you will be limited to functionality provided by interface of version 1.x). The interface defined here mirrors the Berkeley DB interface closely. %prep %setup -q -n DB_File-%{version} find -type f -exec chmod -x {} + perl -MConfig -i -e 's|^#!.*perl|$Config{startperl}|' dbinfo %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} make manifypods %install make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* %check #make test %files %doc Changes dbinfo README %{perl_vendorarch}/auto/* %{perl_vendorarch}/DB_File* %{_mandir}/man3/* %changelog * Fri Sep 28 2018 Elbert Pol 1.842-1 - First OS/2 rpm release