hyphen-ru/hyphen-ru.spec
2023-04-17 11:42:25 +08:00

50 lines
1.5 KiB
RPMSpec

Name: hyphen-ru
Version: 0.20210322
Release: 1
Summary: Hyphenation rules for Russian
Source0: http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex
Source1: http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-ru.pat.txt
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPLv2+
BuildArch: noarch
BuildRequires: hyphen-devel perl
Requires: hyphen
Supplements: (hyphen and langpacks-ru)
%description
Hyphenation rules for Russian.
%prep
%autosetup -c -n hyphen-ru-%{version} -T
%build
substrings.pl %{SOURCE1} hyph_ru_RU.dic UTF-8 2 2
cat > README_hyph_ru_RU.txt << EOF
hyph_ru_RU.dic generated by:
substrings.pl hyph-ru.pat.txt hyph_ru_RU.dic UTF-8 2 2
from hyph-ru.pat.txt provided by hyph-utf8 from
https://ctan.org/tex-archive/language/hyph-utf8
where hyph-ru.pat.txt is derived from hyph-ru.tex
whose licence header follows here:
EOF
head -n 44 %{SOURCE0} >> README_hyph_ru_RU.txt
%install
install -p -d $RPM_BUILD_ROOT/%{_datadir}/hyphen
install -p -D hyph_ru_RU.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
cd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
ru_RU_aliases="ru_UA"
ln -s hyph_ru_RU.dic hyph_$ru_RU_aliases.dic
%files
%doc README_hyph_ru_RU.txt
%{_datadir}/hyphen/*
%changelog
* Mon Apr 17 2023 Ge Wang <wang--ge@126.com> - 0.20210322-1
- Update to version 20210322
* Mon Apr 27 2020 wangerfeng <wangerfeng@huawei.com> - 0.20020727-19
- Package init