From cb15ed708c6b12dfa8f7d1fad70ca0f627a8d202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 15 Dec 2017 14:13:30 +0100 Subject: [PATCH] Specify all dependencies --- perl-Tie-IxHash.spec | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/perl-Tie-IxHash.spec b/perl-Tie-IxHash.spec index 4b4192e..c2d25aa 100644 --- a/perl-Tie-IxHash.spec +++ b/perl-Tie-IxHash.spec @@ -3,22 +3,33 @@ Name: perl-Tie-IxHash Version: 1.23 -Release: 11%{?dist} +Release: 12%{?dist} Summary: Ordered associative arrays for Perl Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Tie-IxHash/ Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Tie-IxHash-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +BuildRequires: make BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More) +BuildRequires: perl-interpreter +BuildRequires: sed +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: +BuildRequires: perl(:VERSION) >= 5.5 +BuildRequires: perl(integer) +BuildRequires: perl(strict) +BuildRequires: perl(Tie::Hash) +BuildRequires: perl(vars) +# Tests: +BuildRequires: perl(Test::More) %if %{with perl_Tie_IxHash_enables_optional_test} && !%{defined perl_bootstrap} -BuildRequires: perl(Test::Pod) +# Optional tests: +BuildRequires: perl(Test::Pod) >= 1.14 %endif -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This Perl module implements Perl hashes that preserve the order in @@ -36,15 +47,12 @@ sed -i -e 's/\r$//' Changes README %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null +make pure_install DESTDIR=$RPM_BUILD_ROOT chmod -R u+w $RPM_BUILD_ROOT/* @@ -52,18 +60,17 @@ chmod -R u+w $RPM_BUILD_ROOT/* make test -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/Tie/ %{_mandir}/man3/*.3pm* %changelog +* Fri Dec 15 2017 Petr Pisar - 1.23-12 +- Specify all dependencies +- Modernize spec file + * Thu Jul 27 2017 Fedora Release Engineering - 1.23-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild