hyphen-ru/hyphen-ru.spec

50 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-07-07 15:07:19 +08:00
Name: hyphen-ru
2023-04-17 11:42:25 +08:00
Version: 0.20210322
Release: 1
2020-07-07 15:07:19 +08:00
Summary: Hyphenation rules for Russian
2023-04-17 11:42:25 +08:00
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
2020-07-07 15:07:19 +08:00
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPLv2+
BuildArch: noarch
2023-04-17 11:42:25 +08:00
BuildRequires: hyphen-devel perl
2020-07-07 15:07:19 +08:00
Requires: hyphen
Supplements: (hyphen and langpacks-ru)
%description
Hyphenation rules for Russian.
%prep
2023-04-17 11:42:25 +08:00
%autosetup -c -n hyphen-ru-%{version} -T
2020-07-07 15:07:19 +08:00
%build
2023-04-17 11:42:25 +08:00
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
2020-07-07 15:07:19 +08:00
%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
2023-04-17 11:42:25 +08:00
* Mon Apr 17 2023 Ge Wang <wang--ge@126.com> - 0.20210322-1
- Update to version 20210322
2022-06-08 15:00:20 +08:00
* Mon Apr 27 2020 wangerfeng <wangerfeng@huawei.com> - 0.20020727-19
2020-07-07 15:07:19 +08:00
- Package init