Modernize spec.

Convert license to SPDX.
Update sources to sha512.
This commit is contained in:
Ralf Corsépius 2022-11-28 16:47:57 +01:00
parent 241e626700
commit f318a20bea
2 changed files with 13 additions and 8 deletions

View File

@ -1,9 +1,9 @@
Name: perl-Font-AFM
Version: 1.20
Release: 41%{?dist}
Release: 42%{?dist}
Summary: Perl interface to Adobe Font Metrics files
License: (GPL+ or Artistic) and Copyright only
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Font-AFM
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Font-AFM-%{version}.tar.gz
@ -11,7 +11,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: make
BuildRequires: %{__make}
BuildRequires: perl-generators
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
@ -31,17 +31,17 @@ sed -i -e 's,Helvetica,NimbusSans-Bold,g' t/afm.t
sed -i -e 's,4279,4558,g' t/afm.t
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
chmod -R u+w $RPM_BUILD_ROOT/*
%check
make test METRICS=%{_fontbasedir}/urw-base35
%{__make} test METRICS=%{_fontbasedir}/urw-base35
%files
@ -50,6 +50,11 @@ make test METRICS=%{_fontbasedir}/urw-base35
%{_mandir}/man3/Font*
%changelog
* Mon Nov 28 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.20-42
- Modernize spec.
- Convert license to SPDX.
- Update sources to sha512.
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.20-41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
b14ecf4dc4edbd63940aa354eb13c499 Font-AFM-1.20.tar.gz
SHA512 (Font-AFM-1.20.tar.gz) = 1fc74f0dbbed52937d512465a021148e93b2e0698189a6fc17eb1aa8951c934b0060a0256883118dc2a3a9086025468e0a851706306876568466bf4638fdb618