[perl-Want] Add %{?perl_default_filter}. Modernize spec.

corsepiu corsepiu at fedoraproject.org
Sun Jan 22 06:51:54 UTC 2012


commit 96163614de62e61a90226be2e12b619863021135
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Sun Jan 22 07:51:48 2012 +0100

    Add %{?perl_default_filter}.
    Modernize spec.

 perl-Want.spec |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/perl-Want.spec b/perl-Want.spec
index 6120a17..39eeec3 100644
--- a/perl-Want.spec
+++ b/perl-Want.spec
@@ -1,6 +1,6 @@
 Name: 		perl-Want
 Version: 	0.18
-Release: 	10%{?dist}
+Release: 	11%{?dist}
 Summary: 	Perl module implementing a generalisation of wantarray
 License: 	GPL+ or Artistic
 Group: 		Development/Libraries
@@ -12,6 +12,8 @@ Requires:  	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(Test::More)
 
+%{?perl_default_filter}
+
 %description
 This module generalises the mechanism of the wantarray
 function, allowing a function to determine in some detail
@@ -25,7 +27,6 @@ how its return value is going to be immediately used.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
@@ -33,9 +34,6 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
 chmod -R u+w $RPM_BUILD_ROOT/*
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %check
 make test
 
@@ -47,6 +45,10 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Sun Jan 22 2012 Ralf Corsépius <corsepiu at fedoraproject.org> - 0.18.11
+- Add %%{?perl_default_filter}.
+- Modernize spec.
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.18-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list