[perl-String-Diff] clean up spec for modern rpmbuild
Iain Arnell
iarnell at fedoraproject.org
Sat Jun 23 15:16:37 UTC 2012
commit b43910a277151fc4eaaccf337767fd7da675d2ff
Author: Iain Arnell <iarnell at 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 <iarnell at 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 <ppisar at redhat.com> - 0.04-10
- Perl 5.16 rebuild
More information about the perl-devel
mailing list