[perl-File-Which] Specify all dependencies

Petr Šabata psabata at fedoraproject.org
Wed Oct 24 08:11:52 UTC 2012


commit d8720eb9f53fef7f9f45ae3372da0e62f6f6f8ee
Author: Petr Šabata <contyk at redhat.com>
Date:   Wed Oct 24 10:05:07 2012 +0200

    Specify all dependencies

 perl-File-Which.spec |   36 ++++++++++++++++--------------------
 1 files changed, 16 insertions(+), 20 deletions(-)
---
diff --git a/perl-File-Which.spec b/perl-File-Which.spec
index 4b9db4e..34b058d 100644
--- a/perl-File-Which.spec
+++ b/perl-File-Which.spec
@@ -1,20 +1,21 @@
 Name:           perl-File-Which
 Version:        1.09
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Portable implementation of the 'which' utility
-
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/File-Which/
 Source0:        http://www.cpan.org/authors/id/A/AD/ADAMK/File-Which-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 %if !%{defined perl_bootstrap}
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Script)
 %endif
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 File::Which is a portable implementation (in Perl) of 'which', and can
@@ -23,35 +24,25 @@ installed somewhere in your PATH, or just check for its existence. It
 includes the command-line utility 'pwhich' which has the same function
 as 'which'.
 
-
 %prep
 %setup -q -n File-Which-%{version}
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 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 -depth -type d -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w %{buildroot}/*
 
 %check
 %if !%{defined perl_bootstrap}
 make test
 %endif
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{_bindir}/pwhich
 %{perl_vendorlib}/File/
@@ -60,6 +51,11 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct 24 2012 Petr Šabata <contyk at redhat.com> - 1.09-11
+- Specify all dependencies
+- Modernize spec
+- Drop command macros
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.09-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list