[perl-Probe-Perl] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Mon Oct 29 11:54:14 UTC 2012


commit 5558f2db2ecd5e50e850bb3f15b8fac2bea32a92
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Oct 29 12:53:08 2012 +0100

    Modernize spec file

 perl-Probe-Perl.spec |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/perl-Probe-Perl.spec b/perl-Probe-Perl.spec
index 561d722..1e2e594 100644
--- a/perl-Probe-Perl.spec
+++ b/perl-Probe-Perl.spec
@@ -6,7 +6,6 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Probe-Perl/
 Source0:        http://www.cpan.org/authors/id/K/KW/KWILLIAMS/Probe-Perl-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(Module::Build)
 # Run-time:
@@ -29,21 +28,13 @@ Module::Build project, but has been externalized here for general use.
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*



More information about the perl-devel mailing list