[perl-Modern-Perl/epel7] Tidy up for EPEL-7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 9990b91dae462f409c9e44c46c1746c0e84d22eb
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Mon Feb 3 13:12:10 2014 +0000

    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

 perl-Modern-Perl.spec |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)
---
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@xxxxxxxxxxxx> - 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@xxxxxx> - 1.20121103-1
 - Bump to latest version because 1.03 tarball disappeared from CPAN
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux