rhbz#1888913 provide more recent patterns in UTF-8

This commit is contained in:
Caolán McNamara 2020-10-16 11:35:51 +01:00
parent cf5d8231d8
commit 20a6128a85
3 changed files with 26 additions and 8 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
hyph_ru_RU.zip
/hyph-ru.tex
/hyph-ru.pat.txt

View File

@ -1,23 +1,35 @@
Name: hyphen-ru
Summary: Russian hyphenation rules
%global upstreamid 20020727
%global upstreamid 20200325
Version: 0.%{upstreamid}
Release: 22%{?dist}
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_ru_RU.zip
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPLv2+
Release: 1%{?dist}
Source1: http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/tex/hyph-ru.tex
Source2: http://mirrors.ctan.org/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-ru.pat.txt
URL: https://ctan.org/tex-archive/language/hyph-utf8
License: LPPL
BuildArch: noarch
Requires: hyphen
BuildRequires: hyphen-devel
Supplements: (hyphen and langpacks-ru)
%description
Russian hyphenation rules.
%prep
%autosetup -c -n hyphen-ru
%autosetup -c -n hyphen-ru -T
%build
chmod -x *
substrings.pl %{SOURCE2} 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 %{SOURCE1} >> README_hyph_ru_RU.txt
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
@ -34,6 +46,9 @@ done
%{_datadir}/hyphen/*
%changelog
* Fri Oct 16 2009 Caolan McNamara <caolanm@redhat.com> - 0.20200325-1
- rhbz#1888913 provide more recent patterns in UTF-8
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.20020727-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1,2 @@
f8a8b8a368bc7394b5a4060082c44bb4 hyph_ru_RU.zip
SHA512 (hyph-ru.tex) = 803f9f9c726dfc4401546622283a13f5146ac92bdcfaed3fabdf647be88f3ef35b1de16db84bd38961ade396d6491ee89ddd0b120d5e9f821637ffbc870d56d0
SHA512 (hyph-ru.pat.txt) = 3cef8d8b76864c07a0f062381a1c0aeea5610a0a518747402173d4bf57787b946eeefef57a041889679647183ead0cee0e8f8d54f0a9b3d63b976287db738b79