!1 Init package
From: @misaka00251 Reviewed-by: @wangyangdahai Signed-off-by: @wangyangdahai
This commit is contained in:
commit
f545dadc0f
BIN
MLDBM-2.05.tar.gz
Normal file
BIN
MLDBM-2.05.tar.gz
Normal file
Binary file not shown.
65
perl-MLDBM.spec
Normal file
65
perl-MLDBM.spec
Normal file
@ -0,0 +1,65 @@
|
||||
Name: perl-MLDBM
|
||||
Version: 2.05
|
||||
Release: 1
|
||||
Summary: Store multi-level hash structure in single level tied hash
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/MLDBM
|
||||
Source0: https://cpan.metacpan.org/authors/id/C/CH/CHORNY/MLDBM-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: sed
|
||||
# Module Runtime
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Data::Dumper) >= 2.08
|
||||
BuildRequires: perl(FreezeThaw)
|
||||
BuildRequires: perl(Storable)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Tie::Hash)
|
||||
BuildRequires: perl(vars)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Optional Tests
|
||||
BuildRequires: perl(DB_File)
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module can serve as a transparent interface to any TIEHASH package that is
|
||||
required to store arbitrary perl data, including nested references. Thus, this
|
||||
module can be used for storing references and other arbitrary data within DBM
|
||||
databases.
|
||||
|
||||
%prep
|
||||
%setup -q -n MLDBM-%{version}
|
||||
|
||||
# Fix line endings for documentation
|
||||
sed -i -e 's/\r$//' README Changes
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/MLDBM/
|
||||
%{perl_vendorlib}/MLDBM.pm
|
||||
%{_mandir}/man3/MLDBM.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 2.05-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user