commit 9df3e25231e178a6489bd881b045030971113da8 Author: Petr Šabata <contyk@xxxxxxxxxx> Date: Wed Jan 11 11:03:31 2012 +0100 Spec cleanup perl-Data-Hierarchy.spec | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) --- diff --git a/perl-Data-Hierarchy.spec b/perl-Data-Hierarchy.spec index 0d11ba3..a9f51ae 100644 --- a/perl-Data-Hierarchy.spec +++ b/perl-Data-Hierarchy.spec @@ -6,7 +6,6 @@ License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Data-Hierarchy/ Source0: http://www.cpan.org/modules/by-module/Data/Data-Hierarchy-%{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 @@ data attached to a hierarchical environment (like filesystem). 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,-) %doc CHANGES README %{perl_vendorlib}/* %{_mandir}/man3/* -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel