Package init
This commit is contained in:
commit
f1a7762eb1
BIN
DB_File-1.842.tar.gz
Normal file
BIN
DB_File-1.842.tar.gz
Normal file
Binary file not shown.
55
perl-DB_File.spec
Normal file
55
perl-DB_File.spec
Normal file
@ -0,0 +1,55 @@
|
||||
Name: perl-DB_File
|
||||
Version: 1.842
|
||||
Release: 2
|
||||
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 findutils gcc libdb-devel perl-devel perl-generators perl-interpreter perl(Config) perl(ExtUtils::Constant) perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(strict) perl(Carp) perl(Exporter) perl(Fcntl) perl(File::Spec) perl(Tie::Hash) perl(warnings) perl(XSLoader)
|
||||
BuildRequires: perl(Symbol) perl(Test::More) perl(threads) perl(Test::Pod)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Fcntl) 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.
|
||||
|
||||
%package help
|
||||
Summary: Doc files for %{name}
|
||||
Buildarch: noarch
|
||||
|
||||
%description help
|
||||
The %{name}-help package contains doc files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n DB_File-%{version}
|
||||
find -type f -exec chmod -x {} +
|
||||
perl -MConfig -pi -e 's|^#!.*perl|$Config{startperl}|' dbinfo
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find '%{buildroot}' -type f -name '*.bs' -exec rm -f {} \;
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes dbinfo README
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/DB_File*
|
||||
|
||||
%files help
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Thu Sep 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.842-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user