Name: perl-LaTeX-ToUnicode Version: 0.54 Release: 3%{?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 * 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.