Modernize spec file

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

@ -7,7 +7,6 @@ Group: Development/Libraries
License: GPLv2 License: GPLv2
URL: http://search.cpan.org/dist/String-Format/ URL: http://search.cpan.org/dist/String-Format/
Source0: http://www.cpan.org/authors/id/D/DA/DARREN/String-Format-%{version}.tar.gz 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 BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
@ -16,7 +15,7 @@ BuildRequires: perl(base)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
# Tests: # Tests:
BuildRequires: perl(Test::More) 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 %description
String::Format lets you define arbitrary printf-like format sequences String::Format lets you define arbitrary printf-like format sequences
@ -30,15 +29,13 @@ formatted in a particular way.
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$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 f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
@ -46,13 +43,8 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %doc Changes COPYING
%doc Changes
%{perl_vendorlib}/String/ %{perl_vendorlib}/String/
%{_mandir}/man3/*.3pm* %{_mandir}/man3/*.3pm*

Loading…
Cancel
Save