|
|
|
|
@ -1,18 +1,17 @@
|
|
|
|
|
Name: perl-Font-TTF
|
|
|
|
|
Version: 1.06
|
|
|
|
|
Release: 27%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Perl library for modifying TTF font files
|
|
|
|
|
# other files: Artistic 2.0
|
|
|
|
|
## not in binary packages
|
|
|
|
|
# t/testfont.*: OFL
|
|
|
|
|
License: Artistic-2.0
|
|
|
|
|
URL: https://metacpan.org/release/Font-TTF
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: Artistic 2.0
|
|
|
|
|
URL: http://search.cpan.org/dist/Font-TTF/
|
|
|
|
|
Source0: http://cpan.org/authors/id/B/BH/BHALLISSY/Font-TTF-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(Getopt::Std)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
@ -27,12 +26,15 @@ BuildRequires: perl(IO::String)
|
|
|
|
|
BuildRequires: perl(Symbol)
|
|
|
|
|
BuildRequires: perl(utf8)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
# XML::Parser::Expat not used at tests
|
|
|
|
|
# Unused BuildRequires: perl(XML::Parser::Expat)
|
|
|
|
|
# Tests only
|
|
|
|
|
BuildRequires: perl(File::Compare)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Simple)
|
|
|
|
|
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Perl module for TrueType font hacking. Supports reading, processing and writing
|
|
|
|
|
of the following tables: GDEF, GPOS, GSUB, LTSH, OS/2, PCLT, bsln, cmap, cvt,
|
|
|
|
|
@ -43,36 +45,8 @@ types.
|
|
|
|
|
In short, you can do almost anything with a standard TrueType font with this
|
|
|
|
|
module.
|
|
|
|
|
|
|
|
|
|
%package XMLparse
|
|
|
|
|
Summary: XML Font parser
|
|
|
|
|
Conflicts: perl-Font-TTF < 1.06-6
|
|
|
|
|
|
|
|
|
|
%description XMLparse
|
|
|
|
|
This Perl module contains the support routines for parsing XML and generating
|
|
|
|
|
the TrueType font structures as a result.
|
|
|
|
|
|
|
|
|
|
The module has been separated from the rest of the perl-Font-TTF package in
|
|
|
|
|
order to reduce the dependency that this would bring, of the whole package on
|
|
|
|
|
XML::Parser. This way, people without the XML::Parser can still use the rest
|
|
|
|
|
of the package.
|
|
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
|
Summary: Tests for %{name}
|
|
|
|
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Requires: perl(Compress::Zlib)
|
|
|
|
|
Requires: perl-Test-Harness
|
|
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
|
Tests from %{name}. Execute them
|
|
|
|
|
with "%{_libexecdir}/%{name}/test".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Font-TTF-%{version}
|
|
|
|
|
# Help generators to recognize Perl scripts
|
|
|
|
|
for F in t/*.t; do
|
|
|
|
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
|
|
|
|
chmod +x "$F"
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
@ -80,16 +54,8 @@ make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
# Install tests
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
|
|
rm -f %{buildroot}%{_libexecdir}/%{name}/t/changes.t
|
|
|
|
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
|
EOF
|
|
|
|
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
@ -102,94 +68,13 @@ make test
|
|
|
|
|
%{perl_vendorlib}/ttfmod.pl
|
|
|
|
|
%{perl_vendorlib}/Font/TTF.pm
|
|
|
|
|
%{perl_vendorlib}/Font/TTF/*
|
|
|
|
|
%exclude %{perl_vendorlib}/Font/TTF/XMLparse.pm
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
%exclude %{_mandir}/man3/Font::TTF::XMLparse.3pm.*
|
|
|
|
|
# We really don't want to use this perl package in a Win32 env
|
|
|
|
|
# or poke in the windows registry to resolve fonts
|
|
|
|
|
# (upstream makefile needs to get smarter)
|
|
|
|
|
%exclude %{perl_vendorlib}/Font/TTF/Win32.pm
|
|
|
|
|
%exclude %{_mandir}/man3/Font::TTF::Win32.3pm.*
|
|
|
|
|
|
|
|
|
|
%files XMLparse
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc CONTRIBUTORS Changes
|
|
|
|
|
%dir %{perl_vendorlib}/Font
|
|
|
|
|
%dir %{perl_vendorlib}/Font/TTF
|
|
|
|
|
%{perl_vendorlib}/Font/TTF/XMLparse.pm
|
|
|
|
|
%{_mandir}/man3/Font::TTF::XMLparse.3pm.*
|
|
|
|
|
|
|
|
|
|
%files tests
|
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.06-27
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
* Tue Jul 16 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.06-26
|
|
|
|
|
- Package tests
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.06-25
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-23
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-21
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-20
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-19
|
|
|
|
|
- Perl 5.36 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-16
|
|
|
|
|
- Perl 5.34 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-13
|
|
|
|
|
- Perl 5.32 rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-10
|
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.06-7
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|
* Wed May 02 2018 Petr Pisar <ppisar@redhat.com> - 1.06-6
|
|
|
|
|
- Move Font::TTF::XMLparse into perl-Font-TTF-XMLparse subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.06-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|