diff --git a/Font-AFM-1.20.tar.gz b/Font-AFM-1.20.tar.gz new file mode 100644 index 0000000..5881b7b Binary files /dev/null and b/Font-AFM-1.20.tar.gz differ diff --git a/perl-Font-AFM.spec b/perl-Font-AFM.spec new file mode 100644 index 0000000..1129a39 --- /dev/null +++ b/perl-Font-AFM.spec @@ -0,0 +1,45 @@ +Name: perl-Font-AFM +Version: 1.20 +Release: 1 +Summary: Perl interface to Adobe Font Metrics files +License: (GPL+ or Artistic) and Copyright only +URL: https://metacpan.org/release/Font-AFM +Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/Font-AFM-%{version}.tar.gz + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildArch: noarch + +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: urw-base35-fonts + +%description +Interface to Adobe Font Metrics files + +%prep +%setup -q -n Font-AFM-%{version} +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} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test METRICS=%{_fontbasedir}/urw-base35 + +%files +%doc Changes README +%{perl_vendorlib}/Font +%{_mandir}/man3/Font* + +%changelog +* Mon May 30 2022 misaka00251 - 1.20-1 +- Init package (Thanks to fedora team)