!1 Init package
From: @misaka00251 Reviewed-by: @geasscore Signed-off-by: @geasscore
This commit is contained in:
commit
015b381dcd
BIN
Font-AFM-1.20.tar.gz
Normal file
BIN
Font-AFM-1.20.tar.gz
Normal file
Binary file not shown.
45
perl-Font-AFM.spec
Normal file
45
perl-Font-AFM.spec
Normal file
@ -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 <misaka00251@misakanet.cn> - 1.20-1
|
||||||
|
- Init package (Thanks to fedora team)
|
||||||
Loading…
x
Reference in New Issue
Block a user