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 |
|
---|
8 | Name: perl-DB_File
|
---|
9 | Version: 1.842
|
---|
10 | Release: 1%{?dist}
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 | Summary: Perl5 access to Berkeley DB version 1.x
|
---|
13 | License: GPL+ or Artistic
|
---|
14 | URL: https://metacpan.org/release/DB_File
|
---|
15 | Source0: https://cpan.metacpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
|
---|
16 | BuildRequires: coreutils
|
---|
17 | BuildRequires: findutils
|
---|
18 | BuildRequires: gcc
|
---|
19 | #BuildRequires: libdb-devel
|
---|
20 | BuildRequires: perl-devel
|
---|
21 | BuildRequires: perl-generators
|
---|
22 | #BuildRequires: perl-interpreter
|
---|
23 | BuildRequires: perl(Config)
|
---|
24 | BuildRequires: perl(ExtUtils::Constant)
|
---|
25 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
26 | # File::Copy not needed if ExtUtils::Constant is available
|
---|
27 | BuildRequires: perl(strict)
|
---|
28 | # Run-time:
|
---|
29 | BuildRequires: perl(Carp)
|
---|
30 | # DynaLoader not needed if XSLoader is available
|
---|
31 | BuildRequires: perl(Exporter)
|
---|
32 | BuildRequires: perl(Fcntl)
|
---|
33 | BuildRequires: perl(File::Spec)
|
---|
34 | BuildRequires: perl(Tie::Hash)
|
---|
35 | BuildRequires: perl(warnings)
|
---|
36 | BuildRequires: perl(XSLoader)
|
---|
37 | # Tests:
|
---|
38 | BuildRequires: perl(Symbol)
|
---|
39 | BuildRequires: perl(Test::More)
|
---|
40 | BuildRequires: perl(threads)
|
---|
41 | %if %{with perl_DB_File_enables_optional_test} && !%{defined perl_bootstrap}
|
---|
42 | # Optional tests:
|
---|
43 | # Data::Dumper not useful
|
---|
44 | BuildRequires: perl(Test::Pod) >= 1.00
|
---|
45 | %endif
|
---|
46 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
47 | Requires: perl(Fcntl)
|
---|
48 | Requires: perl(XSLoader)
|
---|
49 |
|
---|
50 | %{?perl_default_filter}
|
---|
51 |
|
---|
52 | %description
|
---|
53 | DB_File is a module which allows Perl programs to make use of the facilities
|
---|
54 | provided by Berkeley DB version 1.x (if you have a newer version of DB, you
|
---|
55 | will be limited to functionality provided by interface of version 1.x). The
|
---|
56 | interface defined here mirrors the Berkeley DB interface closely.
|
---|
57 |
|
---|
58 | %prep
|
---|
59 | %setup -q -n DB_File-%{version}
|
---|
60 | find -type f -exec chmod -x {} +
|
---|
61 | perl -MConfig -i -e 's|^#!.*perl|$Config{startperl}|' dbinfo
|
---|
62 |
|
---|
63 | %build
|
---|
64 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
---|
65 | make %{?_smp_mflags}
|
---|
66 | make manifypods
|
---|
67 |
|
---|
68 | %install
|
---|
69 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
70 | find $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
|
---|