[perl-File-Which] Specify all dependencies

2015-01-14 Thread Petr Pisar
commit 98512bb983c0a188364f14763b8d77488a82ef42
Author: Petr Písař ppi...@redhat.com
Date:   Thu Jan 15 08:14:27 2015 +0100

Specify all dependencies

 perl-File-Which.spec |   21 +
 1 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/perl-File-Which.spec b/perl-File-Which.spec
index 30b77bc..6b1a741 100644
--- a/perl-File-Which.spec
+++ b/perl-File-Which.spec
@@ -1,21 +1,31 @@
 Name:   perl-File-Which
 Version:1.09
-Release:18%{?dist}
+Release:19%{?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
 BuildArch:  noarch
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+# Run-time:
 %if !%{defined perl_bootstrap}
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Exporter)
-BuildRequires:  perl(File::Spec)
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Script)
+BuildRequires:  perl(File::Spec) = 0.60
+BuildRequires:  perl(Getopt::Std)
+BuildRequires:  perl(vars)
+# Tests:
+BuildRequires:  perl(Test::More) = 0.80
+BuildRequires:  perl(Test::Script) = 1.05
 %endif
 Requires:   perl(:MODULE_COMPAT_%(eval `perl -V:version`; echo $version))
+Requires:   perl(File::Spec) = 0.60
+
+# Remove under-specified dependencies
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$
 
 %description
 File::Which is a portable implementation (in Perl) of 'which', and can
@@ -51,6 +61,9 @@ make test
 
 
 %changelog
+* Thu Jan 15 2015 Petr Pisar ppi...@redhat.com - 1.09-19
+- Specify all dependencies
+
 * Sun Sep 07 2014 Jitka Plesnikova jples...@redhat.com - 1.09-18
 - Perl 5.20 re-rebuild of bootstrapped packages
 
--
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

[perl-File-Which] Specify all dependencies

2012-10-24 Thread Petr Šabata
commit d8720eb9f53fef7f9f45ae3372da0e62f6f6f8ee
Author: Petr Šabata con...@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 con...@redhat.com - 1.09-11
+- Specify all dependencies
+- Modernize spec
+- Drop command macros
+
 * Fri Jul 20 2012 Fedora Release Engineering rel-...@lists.fedoraproject.org 
- 1.09-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
--
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