From 914481d717d086b1fe2cb035b707ad1f57f04fe3 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 16 Dec 2024 23:26:45 +0300 Subject: [PATCH] import perl-Font-TTF-1.06-27.el10 --- .gitignore | 9 +-- .perl-Font-TTF.metadata | 1 + .../perl-Font-TTF.spec | 59 +++++++++++++++++-- sources | 1 - 4 files changed, 57 insertions(+), 13 deletions(-) create mode 100644 .perl-Font-TTF.metadata rename perl-Font-TTF.spec => SPECS/perl-Font-TTF.spec (82%) delete mode 100644 sources diff --git a/.gitignore b/.gitignore index 5a489cb..3763416 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1 @@ -Font-TTF-0.45.tar.gz -/Font-TTF-0.48.tar.gz -/Font-TTF-1.00.tar.gz -/Font-TTF-1.01.tar.gz -/Font-TTF-1.02.tar.gz -/Font-TTF-1.04.tar.gz -/Font-TTF-1.05.tar.gz -/Font-TTF-1.06.tar.gz +SOURCES/Font-TTF-1.06.tar.gz diff --git a/.perl-Font-TTF.metadata b/.perl-Font-TTF.metadata new file mode 100644 index 0000000..5527f10 --- /dev/null +++ b/.perl-Font-TTF.metadata @@ -0,0 +1 @@ +c2c1475e569d1fd30fdb43efe8ad25f63a974508 SOURCES/Font-TTF-1.06.tar.gz diff --git a/perl-Font-TTF.spec b/SPECS/perl-Font-TTF.spec similarity index 82% rename from perl-Font-TTF.spec rename to SPECS/perl-Font-TTF.spec index 72a88d4..bb0577d 100644 --- a/perl-Font-TTF.spec +++ b/SPECS/perl-Font-TTF.spec @@ -1,11 +1,11 @@ Name: perl-Font-TTF Version: 1.06 -Release: 19%{?dist} +Release: 27%{?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 +License: Artistic-2.0 URL: https://metacpan.org/release/Font-TTF Source0: http://cpan.org/authors/id/B/BH/BHALLISSY/Font-TTF-%{version}.tar.gz BuildArch: noarch @@ -32,7 +32,6 @@ BuildRequires: perl(vars) BuildRequires: perl(File::Compare) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Simple) -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description Perl module for TrueType font hacking. Supports reading, processing and writing @@ -46,7 +45,6 @@ module. %package XMLparse Summary: XML Font parser -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) Conflicts: perl-Font-TTF < 1.06-6 %description XMLparse @@ -58,9 +56,23 @@ 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 @@ -69,6 +81,15 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} %{_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 @@ -98,8 +119,38 @@ make test %{perl_vendorlib}/Font/TTF/XMLparse.pm %{_mandir}/man3/Font::TTF::XMLparse.3pm.* +%files tests +%{_libexecdir}/%{name} %changelog +* Mon Dec 16 2024 Arkady L. Shane - 1.06-27 +- Rebuilt for MSVSphere 10 + +* Tue Oct 29 2024 Troy Dawson - 1.06-27 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Tue Jul 16 2024 Michal Josef Špaček - 1.06-26 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.06-25 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.06-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.06-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.06-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 1.06-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.06-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon May 30 2022 Jitka Plesnikova - 1.06-19 - Perl 5.36 rebuild diff --git a/sources b/sources deleted file mode 100644 index 033ba8c..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -241b59310ad4450e6e050d5e790f1b21 Font-TTF-1.06.tar.gz