From e9c979cc18ae2ff27989d2bf4f6012c50238add7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com> Date: Mon, 29 Feb 2016 16:54:55 +0100 Subject: Package cleanup
--- perl-Module-Pluggable-Ordered.spec | 41 +++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/perl-Module-Pluggable-Ordered.spec b/perl-Module-Pluggable-Ordered.spec index 24459db..ce9ad1e 100644 --- a/perl-Module-Pluggable-Ordered.spec +++ b/perl-Module-Pluggable-Ordered.spec @@ -1,18 +1,30 @@ Name: perl-Module-Pluggable-Ordered Version: 1.5 -Release: 19%{?dist} +Release: 20%{?dist} Summary: Call module plugins in a specified order License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Pluggable-Ordered/ Source0: http://www.cpan.org/authors/id/A/AP/APEIRON/Module-Pluggable-Ordered-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Runtime BuildRequires: perl(Module::Pluggable) >= 1.9 +BuildRequires: perl(strict) +BuildRequires: perl(UNIVERSAL::require) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +# Tests only +BuildRequires: perl(lib) BuildRequires: perl(Test::More) BuildRequires: perl(UNIVERSAL::require) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Requires: perl(Module::Pluggable) >= 1.9 +Requires: perl(warnings) + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Module::Pluggable\\)$ %description This module behaves exactly the same as Module::Pluggable, supporting @@ -25,32 +37,25 @@ Let's say we call it like so: %setup -q -n Module-Pluggable-Ordered-%{version} %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 \; - -%{_fixperms} $RPM_BUILD_ROOT/* +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Mon Feb 29 2016 Petr Ĺ abata <con...@redhat.com> - 1.5-20 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 1.5-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Module-Pluggable-Ordered.git/commit/?h=master&id=e9c979cc18ae2ff27989d2bf4f6012c50238add7 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org