Modernize spec file

epel9
Petr Písař 12 years ago
parent 0ba64a6363
commit 2c1ace5338

@ -7,7 +7,6 @@ Group: Development/Libraries
License: GPLv2
URL: http://search.cpan.org/dist/String-Format/
Source0: http://www.cpan.org/authors/id/D/DA/DARREN/String-Format-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
@ -16,7 +15,7 @@ BuildRequires: perl(base)
BuildRequires: perl(Exporter)
# Tests:
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
String::Format lets you define arbitrary printf-like format sequences
@ -30,15 +29,13 @@ formatted in a particular way.
%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
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 -empty -exec rmdir {} ';'
chmod -R u+w $RPM_BUILD_ROOT/*
@ -46,13 +43,8 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes
%doc Changes COPYING
%{perl_vendorlib}/String/
%{_mandir}/man3/*.3pm*

Loading…
Cancel
Save