[ack/el5] fix el5 build

cheeselee cheeselee at fedoraproject.org
Wed Jan 25 09:44:50 UTC 2012


commit 9376a54791054154c5d42dc8f7349fb6095463a1
Author: Robin Lee <cheeselee at fedoraproject.org>
Date:   Wed Jan 25 17:44:35 2012 +0800

    fix el5 build

 ack.spec |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ack.spec b/ack.spec
index cc1082a..a88c3af 100644
--- a/ack.spec
+++ b/ack.spec
@@ -6,6 +6,7 @@ License:        Artistic 2.0
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/ack/
 Source0:        http://www.cpan.org/modules/by-module/App/ack-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Basename)
@@ -28,6 +29,8 @@ Ack is designed as a replacement for grep.
 make
 
 %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 {} \;
@@ -41,7 +44,11 @@ cp -p etc/ack.bash_completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d
 %check
 make test
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %files
+%defattr(-,root,root,-)
 %doc ack-help.txt ack-help-types.txt Changes README.markdown
 %{perl_vendorlib}/*
 %{_bindir}/ack


More information about the scm-commits mailing list