[perl-Algorithm-Annotate] Spec cleanup
Petr Šabata
psabata at fedoraproject.org
Wed Jan 11 10:00:01 UTC 2012
commit 3876cfb13c2ccbfacfb8b4490536c329c1c3129d
Author: Petr Šabata <contyk at redhat.com>
Date: Wed Jan 11 10:56:30 2012 +0100
Spec cleanup
perl-Algorithm-Annotate.spec | 17 ++++-------------
1 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/perl-Algorithm-Annotate.spec b/perl-Algorithm-Annotate.spec
index 9b80500..e754f81 100644
--- a/perl-Algorithm-Annotate.spec
+++ b/perl-Algorithm-Annotate.spec
@@ -6,7 +6,6 @@ License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Algorithm-Annotate/
Source0: http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Annotate-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
@@ -25,23 +24,15 @@ simlar to cvs annotate.
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 -type d -depth -exec rmdir {} 2>/dev/null \;
-
-chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null \;
+chmod -R u+rwX,go+rX,go-w %{buildroot}/*
%check
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%{perl_vendorlib}/*
%{_mandir}/man3/*
More information about the perl-devel
mailing list