diff --git a/LaTeX-ToUnicode-0.05.tar.gz b/LaTeX-ToUnicode-0.05.tar.gz new file mode 100644 index 0000000..a418a19 Binary files /dev/null and b/LaTeX-ToUnicode-0.05.tar.gz differ diff --git a/perl-LaTeX-ToUnicode.spec b/perl-LaTeX-ToUnicode.spec new file mode 100644 index 0000000..4a59749 --- /dev/null +++ b/perl-LaTeX-ToUnicode.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-LaTeX-ToUnicode +Version: 0.05 +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 +%setup -q -n LaTeX-ToUnicode-%{version} +%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 +* Wed Jun 10 2020 Perl_Bot 0.05-1 +- Specfile autogenerated by Perl_Bot diff --git a/perl-LaTeX-ToUnicode.yaml b/perl-LaTeX-ToUnicode.yaml new file mode 100644 index 0000000..b2fa0f8 --- /dev/null +++ b/perl-LaTeX-ToUnicode.yaml @@ -0,0 +1,4 @@ +version-ctrl: metacpan +src_repo: LaTeX-ToUnicode +tag_prefix: "^v" +seperator: "."