pghmcfc pushed to perl-Modern-Perl (f21). "Tidy up for EPEL-7 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 25 15:03:29 UTC 2015


From 9990b91dae462f409c9e44c46c1746c0e84d22eb Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul at city-fan.org>
Date: Mon, 3 Feb 2014 13:12:10 +0000
Subject: Tidy up for EPEL-7

- Specify all dependencies
- Package upstream's LICENSE file
- Make %files list more explicit
- Clean up for modern rpmbuild (deps can't be satisfied on EL-6)
- Don't use macros for commands

diff --git a/perl-Modern-Perl.spec b/perl-Modern-Perl.spec
index b8291f3..9d6fb18 100644
--- a/perl-Modern-Perl.spec
+++ b/perl-Modern-Perl.spec
@@ -1,17 +1,23 @@
 Name:           perl-Modern-Perl
 Version:        1.20121103
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Enable all of the features of Modern Perl with one command
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Modern-Perl/
 Source0:        http://www.cpan.org/authors/id/C/CH/CHROMATIC/Modern-Perl-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl >= 0:5.10
-BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(Test::Simple) >= 0.8
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl >= 4:5.10.0
+BuildRequires:  perl(autodie) >= 2.10
+BuildRequires:  perl(feature)
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(Module::Build) > 0.36
+BuildRequires:  perl(mro)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More) >= 0.98
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Modern Perl often relies on the presence of several core and CPAN pragmas
@@ -21,30 +27,29 @@ and modules.  Wouldn't it be nice to use them all with a single command?
 %setup -q -n Modern-Perl-%{version}
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}
 
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
-%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes LICENSE README
+%{perl_vendorlib}/Modern/
+%{_mandir}/man3/Modern::Perl.3pm*
 
 %changelog
+* Mon Feb  3 2014 Paul Howarth <paul at city-fan.org> - 1.20121103-2
+- Specify all dependencies
+- Package upstream's LICENSE file
+- Make %%files list more explicit
+- Clean up for modern rpmbuild (deps can't be satisfied on EL-6)
+- Don't use macros for commands
+
 * Mon Oct 28 2013 Conrad Meyer <cemeyer at uw.edu> - 1.20121103-1
 - Bump to latest version because 1.03 tarball disappeared from CPAN
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Modern-Perl.git/commit/?h=f21&id=9990b91dae462f409c9e44c46c1746c0e84d22eb


More information about the scm-commits mailing list