Modernize spec.

This commit is contained in:
Ralf Corsépius 2016-01-26 14:46:31 +01:00
parent 74ad48a716
commit eaa649f49c

View File

@ -1,6 +1,6 @@
Name: perl-Font-AFM
Version: 1.20
Release: 19%{?dist}
Release: 20%{?dist}
Summary: Perl interface to Adobe Font Metrics files
Group: Development/Libraries
@ -8,9 +8,7 @@ License: (GPL+ or Artistic) and Copyright only
URL: http://search.cpan.org/dist/Font-AFM/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/Font-AFM-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
@ -27,31 +25,28 @@ Interface to Adobe Font Metrics files
sed -i -e 's,Helvetica,phvr,g' t/afm.t
%build
perl Makefile.PL INSTALLDIRS=vendor
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test METRICS=%{_datadir}/a2ps/afm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/Font
%{_mandir}/man3/Font*
%changelog
* Tue Jan 26 2016 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.20-20
- Modernize spec.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.20-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild