commit 609f3bda5aaec2a98209f1cbd3d0b44ad0e7af92
Author: Petr Písař <ppi...@redhat.com>
Date:   Fri Oct 26 13:39:08 2012 +0200

    Modernize spec file

 perl-Module-Starter.spec |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)
---
diff --git a/perl-Module-Starter.spec b/perl-Module-Starter.spec
index 62b701c..01d60ab 100644
--- a/perl-Module-Starter.spec
+++ b/perl-Module-Starter.spec
@@ -3,12 +3,11 @@ Epoch:          1
 Version:        1.60
 Release:        1%{?dist}
 Summary:        A simple starter kit for any module
-
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Module-Starter
 Source0:        
http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Module-Starter-%{version}.tar.gz
-
+BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 # Run-time:
 BuildRequires:  perl(Carp)
@@ -24,18 +23,13 @@ BuildRequires:  perl(Test::More)
 # Optional tests:
 BuildRequires:  perl(Test::Pod::Coverage)
 BuildRequires:  perl(Test::Pod)
-
-BuildArch: noarch
 Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires:  perl(Cwd)
 Requires:  perl(ExtUtils::Command)
 Requires:  perl(File::Spec)
 Requires:  perl(parent)
 
-%{?filter_setup:
-%filter_requires_in %{perl_vendorlib}/Module/Starter/Simple.pm
-}
-%?perl_default_filter
+%{?perl_default_filter}
 %global __requires_exclude_from 
%{?__requires_exclude_from:%__requires_exclude_from|}%{perl_vendorlib}/Module/Starter/Simple\\.pm
 
 %description
@@ -53,23 +47,18 @@ perl-Module-Starter-PBP for the aformentioned templates.)
 %prep
 %setup -q -n Module-Starter-%{version}
 
-
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
 %{_fixperms} %{buildroot}/*
 
-
 %check
 make test
 
-
 %files
 %doc Changes README
 %{perl_vendorlib}/*
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to