[perl-Exception-Class-TryCatch] Clean up spec file and add perl default filter

Emmanuel Seyman eseyman at fedoraproject.org
Wed May 30 20:26:39 UTC 2012


commit d0ea06d104a79cdee8abacb39d2e2a4382869627
Author: Emmanuel Seyman <emmanuel.seyman at club-internet.fr>
Date:   Wed May 30 22:26:31 2012 +0200

    Clean up spec file and add perl default filter

 perl-Exception-Class-TryCatch.spec |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/perl-Exception-Class-TryCatch.spec b/perl-Exception-Class-TryCatch.spec
index e9a8828..950bf23 100644
--- a/perl-Exception-Class-TryCatch.spec
+++ b/perl-Exception-Class-TryCatch.spec
@@ -1,18 +1,19 @@
 Name:           perl-Exception-Class-TryCatch
 Version:        1.12
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Syntactic try/catch sugar for use with Exception::Class
 License:        ASL 2.0
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Exception-Class-TryCatch/
 Source0:        http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Exception-Class-TryCatch-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(Exception::Class) >= 1.2
 BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Test::More) >= 0.47
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
+
 %description
 Exception::Class::TryCatch provides syntactic sugar for use with
 Exception::Class using the familiar keywords try and catch. Its primary
@@ -30,8 +31,6 @@ various Exception::Class methods to process the exception.
 ./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 \;
 
@@ -40,16 +39,16 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README Todo
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Wed May 30 2012 Emmanuel Seyman <emmanuel.seyman at club-internet.fr> - 1.12-10
+- Clean up spec file
+- Add perl default filter
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.12-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list