[perl-Locale-Codes/f17] Add missing deps

Petr Pisar ppisar at fedoraproject.org
Wed Dec 5 12:46:13 UTC 2012


commit b0a6327a5e66b8dcab22b0fe446be2bbe8686ac8
Author: Petr Šabata <contyk at redhat.com>
Date:   Tue Nov 20 17:16:20 2012 +0100

    Add missing deps

 perl-Locale-Codes.spec |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/perl-Locale-Codes.spec b/perl-Locale-Codes.spec
index 3d39b54..a7f6c17 100644
--- a/perl-Locale-Codes.spec
+++ b/perl-Locale-Codes.spec
@@ -7,13 +7,14 @@ Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Locale-Codes/
 Source0:        http://www.cpan.org/authors/id/S/SB/SBECK/Locale-Codes-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-# Tests
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Tests
 BuildRequires:  perl(Storable)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 # Inject not detected module version
 %{?filter_setup:
@@ -31,14 +32,13 @@ including languages, countries, currency, etc.
 chmod -x examples/*
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-make pure_install DESTDIR=$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 \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
@@ -49,6 +49,11 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Nov 20 2012 Petr Šabata <contyk at redhat.com> - 3.23-1
+- Add missing deps
+- Drop command macros
+- Modernize spec
+
 * Tue Sep 04 2012 Petr Pisar <ppisar at redhat.com> - 3.23-1
 - 3.23 bump
 


More information about the scm-commits mailing list