source: spec/trunk/SPECS/perl-DB_File.spec

Last change on this file was 1499, checked in by tellie, 7 years ago

spec: perl-DB_File: Release version 1.842-1.

File size: 2.5 KB
Line 
1# Run optional test
2%if ! (0%{?rhel})
3%bcond_without perl_DB_File_enables_optional_test
4%else
5%bcond_with perl_DB_File_enables_optional_test
6%endif
7
8Name: perl-DB_File
9Version: 1.842
10Release: 1%{?dist}
11Vendor: bww bitwise works GmbH
12Summary: Perl5 access to Berkeley DB version 1.x
13License: GPL+ or Artistic
14URL: https://metacpan.org/release/DB_File
15Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
16BuildRequires: coreutils
17BuildRequires: findutils
18BuildRequires: gcc
19#BuildRequires: libdb-devel
20BuildRequires: perl-devel
21BuildRequires: perl-generators
22#BuildRequires: perl-interpreter
23BuildRequires: perl(Config)
24BuildRequires: perl(ExtUtils::Constant)
25BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
26# File::Copy not needed if ExtUtils::Constant is available
27BuildRequires: perl(strict)
28# Run-time:
29BuildRequires: perl(Carp)
30# DynaLoader not needed if XSLoader is available
31BuildRequires: perl(Exporter)
32BuildRequires: perl(Fcntl)
33BuildRequires: perl(File::Spec)
34BuildRequires: perl(Tie::Hash)
35BuildRequires: perl(warnings)
36BuildRequires: perl(XSLoader)
37# Tests:
38BuildRequires: perl(Symbol)
39BuildRequires: perl(Test::More)
40BuildRequires: perl(threads)
41%if %{with perl_DB_File_enables_optional_test} && !%{defined perl_bootstrap}
42# Optional tests:
43# Data::Dumper not useful
44BuildRequires: perl(Test::Pod) >= 1.00
45%endif
46Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
47Requires: perl(Fcntl)
48Requires: perl(XSLoader)
49
50%{?perl_default_filter}
51
52%description
53DB_File is a module which allows Perl programs to make use of the facilities
54provided by Berkeley DB version 1.x (if you have a newer version of DB, you
55will be limited to functionality provided by interface of version 1.x). The
56interface defined here mirrors the Berkeley DB interface closely.
57
58%prep
59%setup -q -n DB_File-%{version}
60find -type f -exec chmod -x {} +
61perl -MConfig -i -e 's|^#!.*perl|$Config{startperl}|' dbinfo
62
63%build
64perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
65make %{?_smp_mflags}
66make manifypods
67
68%install
69make pure_install DESTDIR=$RPM_BUILD_ROOT
70find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
71%{_fixperms} $RPM_BUILD_ROOT/*
72
73%check
74#make test
75
76%files
77%doc Changes dbinfo README
78%{perl_vendorarch}/auto/*
79%{perl_vendorarch}/DB_File*
80%{_mandir}/man3/*
81
82%changelog
83* Fri Sep 28 2018 Elbert Pol <elbert.pol@gmail.com> 1.842-1
84- First OS/2 rpm release
Note: See TracBrowser for help on using the repository browser.