Specify all dependencies; Modernize spec file

epel9
Jitka Plesnikova 7 years ago
parent 88413addd4
commit f1903fb73e

@ -1,6 +1,6 @@
Name: perl-Hash-Merge
Version: 0.300
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Merges arbitrary deep hashes into a single hash
Group: Development/Libraries
License: GPL+ or Artistic
@ -8,10 +8,26 @@ URL: http://search.cpan.org/dist/Hash-Merge/
Source0: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/Hash-Merge-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(Test::More), perl(Clone), perl(ExtUtils::MakeMaker), perl(Clone::Choose)
BuildRequires: perl(Test::CPAN::Changes), perl(Test::CheckManifest), perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage), perl(Test::Pod::Spelling::CommonMistakes)
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Clone)
BuildRequires: perl(Clone::Choose) >= 0.008
BuildRequires: perl(Exporter)
BuildRequires: perl(Scalar::Util)
# Tests
BuildRequires: perl(Test::More)
# Optional tests
BuildRequires: perl(Clone::PP)
BuildRequires: perl(Storable)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# required but not detected automatically
Requires: perl(Clone)
@ -25,14 +41,11 @@ Requires: perl(Clone)
%setup -q -n Hash-Merge-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -x %{buildroot}%{perl_vendorlib}/Hash/Merge.pm
%{_fixperms} %{buildroot}/*
@ -40,13 +53,15 @@ chmod -x %{buildroot}%{perl_vendorlib}/Hash/Merge.pm
make test
%files
%defattr(-,root,root,-)
%doc Changes README.md
%{perl_vendorlib}/Hash/
%{_mandir}/man3/*.3*
%changelog
* Tue Apr 17 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.300-2
- Specify all dependencies; Modernize spec file
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 0.300-1
- update to 0.300

Loading…
Cancel
Save