Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914323).

- Modernize spec.
epel9
Ralf Corsépius 12 years ago
parent 8a5027e160
commit 5786284bec

@ -1,13 +1,13 @@
Name: perl-UNIVERSAL-moniker
Version: 0.08
Release: 19%{?dist}
Release: 20%{?dist}
Summary: Real world naming for classes
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/UNIVERSAL-moniker/
Source0: http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/UNIVERSAL-moniker-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More), perl(Lingua::EN::Inflect)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -21,16 +21,11 @@ guess at what they would be called in the real world.
%prep
%setup -q -n UNIVERSAL-moniker-%{version}
# Filter bogus provide for perl(UNIVERSAL) (prior to rpm 4.9)
%global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(UNIVERSAL)$/d'"
%define __perl_provides %{provfilt}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
%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 -type d -depth -exec rmdir {} 2>/dev/null ';'
@ -39,9 +34,6 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
@ -50,6 +42,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Feb 26 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.08-20
- Add BR: perl(ExtUtils::MakeMaker) (Fix FTBFS #914323).
- Modernize spec.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save