perl-LaTeX-ToUnicode/perl-LaTeX-ToUnicode.spec
starlet-dx d5cf0bfd9b Package upgrade
(cherry picked from commit 93044eb617ff01792b166a68e35173b964894fa7)
2022-10-21 09:30:57 +08:00

75 lines
2.2 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: perl-LaTeX-ToUnicode
Version: 0.11
Release: 1
Summary: Convert LaTeX commands to Unicode
License: Perl_5
Group: Development/Libraries
URL: http://search.cpan.org/dist/LaTeX-ToUnicode/
Source0: http://www.cpan.org/authors/id/B/BO/BORISV/LaTeX-ToUnicode-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-generators
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This 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 help
Summary : Convert LaTeX commands to Unicode
Provides: perl-LaTeX-ToUnicode-doc
%description help
This 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.
%prep
%autosetup -n LaTeX-ToUnicode-%{version} -p1
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes dist.ini LICENSE META.json README weaver.ini
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.11-1
- Upgrade to version 0.11
* Wed Jun 10 2020 Perl_Bot <Perl_Bot@openeuler.org> 0.05-1
- Specfile autogenerated by Perl_Bot