From bae374763cebc5ca92c7cd1b4a4d1ba6e1e3a777 Mon Sep 17 00:00:00 2001 From: Autumn Nash Date: Tue, 18 Aug 2026 18:10:54 +0000 Subject: [PATCH] feat: add perl-LaTeX-ToUnicode component Split out of #18372 so it can be built and tagged first -- perl-BibTeX-Parser has a real BuildRequires on perl(LaTeX::ToUnicode) >= 0.11, which the scratch-build gate can't resolve against an untagged sibling package in the same PR. Imported from Fedora, needed transitively for perl-BibTeX-Parser as part of the repoclosure fix tracked in #18865. --- base/comps/components.toml | 1 + locks/perl-LaTeX-ToUnicode.lock | 6 + ...e-0.53-Do-not-add-bogus-paths-to-INC.patch | 52 +++++ .../perl-LaTeX-ToUnicode.spec | 186 ++++++++++++++++++ specs/p/perl-LaTeX-ToUnicode/sources | 1 + 5 files changed, 246 insertions(+) create mode 100644 locks/perl-LaTeX-ToUnicode.lock create mode 100644 specs/p/perl-LaTeX-ToUnicode/LaTeX-ToUnicode-0.53-Do-not-add-bogus-paths-to-INC.patch create mode 100644 specs/p/perl-LaTeX-ToUnicode/perl-LaTeX-ToUnicode.spec create mode 100644 specs/p/perl-LaTeX-ToUnicode/sources diff --git a/base/comps/components.toml b/base/comps/components.toml index 791f4bdb42a..db3b9485c58 100644 --- a/base/comps/components.toml +++ b/base/comps/components.toml @@ -2648,6 +2648,7 @@ overlay-files = ["overlays/*.overlay.toml"] [components.perl-LDAP] [components.perl-LWP-MediaTypes] [components.perl-LWP-Protocol-https] +[components.perl-LaTeX-ToUnicode] [components.perl-Lexical-SealRequireHints] [components.perl-Lexical-Var] [components.perl-Lingua-EN-Inflect] diff --git a/locks/perl-LaTeX-ToUnicode.lock b/locks/perl-LaTeX-ToUnicode.lock new file mode 100644 index 00000000000..f4a32e83faa --- /dev/null +++ b/locks/perl-LaTeX-ToUnicode.lock @@ -0,0 +1,6 @@ +# Managed by azldev component update. Do not edit manually. +version = 1 +import-commit = '1487e70f23c839edfa89d41e33e10a9d98b3ccac' +upstream-commit = '1487e70f23c839edfa89d41e33e10a9d98b3ccac' +input-fingerprint = 'sha256:944b0c46bc1cf01706a2bc32b6905be0d25c61ce0d93e745392596f65552f5cf' +resolution-input-hash = 'sha256:466421704711c4fd3c71f0b2ed715a0e61d49e3e26f3a2637fee755795849c8e' diff --git a/specs/p/perl-LaTeX-ToUnicode/LaTeX-ToUnicode-0.53-Do-not-add-bogus-paths-to-INC.patch b/specs/p/perl-LaTeX-ToUnicode/LaTeX-ToUnicode-0.53-Do-not-add-bogus-paths-to-INC.patch new file mode 100644 index 00000000000..f9bc3c53b14 --- /dev/null +++ b/specs/p/perl-LaTeX-ToUnicode/LaTeX-ToUnicode-0.53-Do-not-add-bogus-paths-to-INC.patch @@ -0,0 +1,52 @@ +From be2102b3834ffa3a4aa49f9a9bf825aafad571df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 21 Aug 2023 17:11:01 +0200 +Subject: [PATCH] Do not add bogus paths to INC +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We install LaTeX::Unicode into a standard Perl path, and thus don't +need exploring Texlive root (otherwise a useless dependency on +kpsewhich), and /*/lib. + +Signed-off-by: Petr Písař +--- + script/ltx2unitxt | 19 ------------------- + 1 file changed, 19 deletions(-) + +diff --git a/script/ltx2unitxt b/script/ltx2unitxt +index 661ea40..5afc0d2 100755 +--- a/script/ltx2unitxt ++++ b/script/ltx2unitxt +@@ -9,27 +9,8 @@ + use strict; + use warnings; + +-use Cwd; +-use File::Basename; + use File::Spec; + +-BEGIN { +- # find files relative to our installed location within TeX Live +- chomp(my $TLMaster = `kpsewhich -var-value=SELFAUTOPARENT`); # TL root +- if (length($TLMaster)) { +- unshift @INC, "$TLMaster/texmf-dist/scripts/bibtexperllibs"; +- } +- # find development bibtexperllibs in sibling checkout to this script, +- # even if $0 is a symlink. Irrelevant when using from an installation. +- my $real0 = Cwd::abs_path($0); +- my $scriptdir = File::Basename::dirname($real0); +- my $dev_btxperllibs = Cwd::abs_path("$scriptdir/../.."); +- +- # we need the lib/ subdirectories inside ... +- unshift (@INC, glob ("$dev_btxperllibs/*/lib")) if -d $dev_btxperllibs; +- +-} +- + use LaTeX::ToUnicode; + + our %opts; +-- +2.41.0 + diff --git a/specs/p/perl-LaTeX-ToUnicode/perl-LaTeX-ToUnicode.spec b/specs/p/perl-LaTeX-ToUnicode/perl-LaTeX-ToUnicode.spec new file mode 100644 index 00000000000..8750926724a --- /dev/null +++ b/specs/p/perl-LaTeX-ToUnicode/perl-LaTeX-ToUnicode.spec @@ -0,0 +1,186 @@ +# This spec file has been modified by azldev to include build configuration overlays. +# Do not edit manually; changes may be overwritten. + +Name: perl-LaTeX-ToUnicode +Version: 1.93 +Release: 2%{?dist} +Summary: Convert LaTeX commands to Unicode +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/LaTeX-ToUnicode +Source0: https://cpan.metacpan.org/authors/id/B/BO/BORISV/LaTeX-ToUnicode-%{version}.tar.gz +# Remove an unhelpful dependency on texlive-kpathsea, +# not suitable for an upstream +Patch0: LaTeX-ToUnicode-0.53-Do-not-add-bogus-paths-to-INC.patch +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) +# File::Spec not used at tests +# Getopt::Long not used at tests +BuildRequires: perl(utf8) +# Tests: +BuildRequires: perl(Test::More) + +%description +This Perl module provides a method to convert LaTeX-style markups for accents +etc. into their Unicode equivalents. It translates commands for special +characters or accents into their Unicode equivalents and removes +formatting commands. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%autosetup -p1 -n LaTeX-ToUnicode-%{version} +# Remove always skipped tests +for F in t/release-pod-coverage.t t/release-pod-syntax.t t/release-synopsis.t; do + rm "$F" + perl -i -ne 'print $_ unless m{\A\Q'"$F"'\E}' MANIFEST +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +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 +export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') +make test + +%files +%license LICENSE +%doc Changes README +%dir %{perl_vendorlib}/LaTeX +%{perl_vendorlib}/LaTeX/ToUnicode +%{perl_vendorlib}/LaTeX/ToUnicode.pm +%{_bindir}/ltx2unitxt +%{_mandir}/man3/LaTeX::ToUnicode.* +%{_mandir}/man3/LaTeX::ToUnicode::* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Mon Sep 01 2025 Petr Pisar - 1.93-1 +- 1.93 bump + +* Fri Jul 25 2025 Fedora Release Engineering - 1.92-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Jul 22 2025 Petr Pisar - 1.92-1 +- 1.92 bump + +* Sat Jan 18 2025 Fedora Release Engineering - 0.55-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Sep 04 2024 Petr Pisar - 0.55-1 +- 0.55 bump + +* Fri Jul 19 2024 Fedora Release Engineering - 0.54-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.54-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.54-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Nov 20 2023 Petr Pisar - 0.54-1 +- 0.54 bump + +* Mon Aug 21 2023 Petr Pisar - 0.53-1 +- 0.53 bump +- Package the tests + +* Thu Jul 20 2023 Fedora Release Engineering - 0.11-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.11-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.11-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 0.11-6 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.11-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.11-3 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Dec 13 2020 Jitka Plesnikova - 0.11-1 +- 0.11 bump + +* Tue Jul 28 2020 Fedora Release Engineering - 0.05-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 0.05-12 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.05-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.05-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 0.05-9 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 0.05-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.05-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 0.05-6 +- Perl 5.28 rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 0.05-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.05-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 0.05-3 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.05-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Nov 23 2016 Petr Pisar - 0.05-1 +- 0.05 bump + +* Mon Oct 03 2016 Petr Pisar 0.04-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/specs/p/perl-LaTeX-ToUnicode/sources b/specs/p/perl-LaTeX-ToUnicode/sources new file mode 100644 index 00000000000..cab9c14e1fc --- /dev/null +++ b/specs/p/perl-LaTeX-ToUnicode/sources @@ -0,0 +1 @@ +SHA512 (LaTeX-ToUnicode-1.93.tar.gz) = ab38f3e8d76f1cb5ece0f09a5b9be645abd404dcc3226a83e9bae1c772feb06433f1c0facd58748baa6e8e52f471dd8dbe3a33e10dad85066ce658417d735020