[perl-IO-All] clean up spec for modern rpmbuild

Iain Arnell iarnell at fedoraproject.org
Fri Sep 7 15:06:16 UTC 2012


commit 3c48c56a4ed1c4585cbd66e78c59ab8e45e872f5
Author: Iain Arnell <iarnell at gmail.com>
Date:   Fri Sep 7 09:03:44 2012 -0600

    clean up spec for modern rpmbuild

 perl-IO-All.spec |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/perl-IO-All.spec b/perl-IO-All.spec
index 8e7469a..f9a937a 100644
--- a/perl-IO-All.spec
+++ b/perl-IO-All.spec
@@ -6,7 +6,6 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/IO-All/
 Source0:        http://www.cpan.org/authors/id/I/IN/INGY/IO-All-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::ReadBackwards)
@@ -15,6 +14,8 @@ BuildRequires:  perl(MLDBM)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 The IO::All object is a proxy for IO::File, IO::Dir, IO::Socket,
 IO::String, Tie::File, File::Spec, File::Path and File::ReadBackwards; as
@@ -33,23 +34,16 @@ find -type f -perm +100 -name '*.pm' -exec chmod a-x {} \;
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$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/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
@@ -57,6 +51,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Fri Sep 07 2012 Iain Arnell <iarnell at gmail.com> 0.46-1
 - update to latest upstream version
+- clean up spec for modern rpmbuild
 
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.41-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list