hyphen-mn/hyphen-mn.spec
2020-07-07 14:57:24 +08:00

41 lines
1.0 KiB
RPMSpec

Name: hyphen-mn
Version: 0.20100531
Release: 15
Summary: Hyphenation patterns for Mongolian
License: LPPL
URL: http://ctan.org/pkg/mnhyphn
Source: http://tug.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-mn-cyrl.tex
Patch0000: hyphen-mn-cleantex.patch
BuildRequires: hyphen-devel
Requires: hyphen
BuildArch: noarch
%description
Hyphenation patterns for Mongolian.
%prep
%setup -T -q -c -n hyphen-mn
cp -p %{SOURCE0} .
%patch0000 -p0 -b .clean
%build
substrings.pl hyph-mn-cyrl.tex hyph_mn_MN.dic UTF-8
cat << EOF >> README
Created with substring.pl by substrings.pl hyph-mn-cyrl.tex hyph_mn_MN.dic UTF-8
Original in-line credits were:
EOF
head -n 83 hyph-mn-cyrl.tex >> README
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/hyphen
install -Dp hyph_mn_MN.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
%files
%doc README
%{_datadir}/hyphen/*
%changelog
* Fri May 15 2020 chengzihan2 <chengzihan2@huawei.com> - 0.20100531-15
Package init