commit b43910a277151fc4eaaccf337767fd7da675d2ff
Author: Iain Arnell <iarn...@gmail.com>
Date:   Sat Jun 23 08:56:19 2012 -0600

    clean up spec for modern rpmbuild

 perl-String-Diff.spec |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/perl-String-Diff.spec b/perl-String-Diff.spec
index add74c4..25feaa0 100644
--- a/perl-String-Diff.spec
+++ b/perl-String-Diff.spec
@@ -6,7 +6,6 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/String-Diff/
 Source0:        
http://www.cpan.org/authors/id/Y/YA/YAPPO/String-Diff-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(inc::Module::Install)
 BuildRequires:  perl(Module::Install::TestBase)
@@ -34,23 +33,16 @@ general diff is done, the difference in the line is 
searchable.
 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 -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/*
@@ -59,6 +51,7 @@ rm -rf $RPM_BUILD_ROOT
 * Sat Jun 23 2012 Iain Arnell <iarn...@gmail.com> 0.05-1
 - update to latest upstream version
 - don't remove inc/
+- clean up spec for modern rpmbuild
 
 * Tue Jun 12 2012 Petr Pisar <ppi...@redhat.com> - 0.04-10
 - Perl 5.16 rebuild
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to