Add missing deps

This commit is contained in:
Petr Šabata 2012-11-20 17:16:20 +01:00
parent b9b791c8a6
commit 69d51ebb4d

View File

@ -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@redhat.com> - 3.23-1
- Add missing deps
- Drop command macros
- Modernize spec
* Tue Sep 04 2012 Petr Pisar <ppisar@redhat.com> - 3.23-1
- 3.23 bump