[perl-MooseX-Types-Path-Class] clean up spec for modern rpmbuild

Iain Arnell iarnell at fedoraproject.org
Fri Mar 30 14:55:19 UTC 2012


commit 983016efbc335d1f0238e914f2302f3861611ba9
Author: Iain Arnell <iarnell at gmail.com>
Date:   Fri Mar 30 08:33:36 2012 -0600

    clean up spec for modern rpmbuild

 perl-MooseX-Types-Path-Class.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/perl-MooseX-Types-Path-Class.spec b/perl-MooseX-Types-Path-Class.spec
index c913fc3..0954bb8 100644
--- a/perl-MooseX-Types-Path-Class.spec
+++ b/perl-MooseX-Types-Path-Class.spec
@@ -6,7 +6,6 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/T/TH/THEPLER/MooseX-Types-Path-Class-%{version}.tar.gz 
 URL:            http://search.cpan.org/dist/MooseX-Types-Path-Class
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 BuildArch:      noarch
 
@@ -44,8 +43,6 @@ for both Path::Class::Dir and Path::Class::File.
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
@@ -55,11 +52,7 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 %check
 make test
 
-%clean
-rm -rf %{buildroot} 
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README 
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
@@ -67,6 +60,7 @@ rm -rf %{buildroot}
 %changelog
 * Fri Mar 30 2012 Iain Arnell <iarnell at gmail.com> 0.06-1
 - update to latest upstream version
+- clean up spec for modern rpmbuild
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.05-12
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild


More information about the scm-commits mailing list