commit 3f4c1c5c532d1e64449f36e0624c5003c015d4f1
Author: Iain Arnell <[email protected]>
Date:   Mon Jan 3 17:52:51 2011 +0100

    update spec for modern rpmbuild

 perl-List-MoreUtils.spec |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/perl-List-MoreUtils.spec b/perl-List-MoreUtils.spec
index 619e520..2ccf267 100644
--- a/perl-List-MoreUtils.spec
+++ b/perl-List-MoreUtils.spec
@@ -7,12 +7,13 @@ Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/List-MoreUtils/
 Source0:        
http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/List-MoreUtils-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  perl(Test::Pod)
 BuildRequires:  perl(Test::Pod::Coverage)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
+%{?perl_default_filter}
+
 %description
 List::MoreUtils provides some trivial but commonly needed functionality
 on lists which is not going to go into List::Util.
@@ -28,7 +29,6 @@ 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 -type f -name '*.bs' -empty -exec rm -f {} ';'
@@ -40,10 +40,6 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 make test
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
 %defattr(-,root,root,-)
 %doc Changes README LICENSE
@@ -55,6 +51,8 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Mon Jan 03 2011 Iain Arnell <[email protected]> 0.30-1
 - update to latest upstream version
+- clean up spec for modern rpmbuild
+- use perl_default_filter
 
 * Mon Dec 20 2010 Marcela Maslanova <[email protected]> - 0.22-12
 - 661697 rebuild for fixing problems with vendorach/lib
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to