diff --git a/.gitignore b/.gitignore index b9e21b5..c4cb089 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ hyph_ru_RU.zip +/hyph-ru.tex +/hyph-ru.pat.txt diff --git a/hyphen-ru.spec b/hyphen-ru.spec index 5096d95..36e501b 100644 --- a/hyphen-ru.spec +++ b/hyphen-ru.spec @@ -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 - 0.20200325-1 +- rhbz#1888913 provide more recent patterns in UTF-8 + * Tue Jul 28 2020 Fedora Release Engineering - 0.20020727-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index b2c052e..6cd0ed4 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -f8a8b8a368bc7394b5a4060082c44bb4 hyph_ru_RU.zip +SHA512 (hyph-ru.tex) = 803f9f9c726dfc4401546622283a13f5146ac92bdcfaed3fabdf647be88f3ef35b1de16db84bd38961ade396d6491ee89ddd0b120d5e9f821637ffbc870d56d0 +SHA512 (hyph-ru.pat.txt) = 3cef8d8b76864c07a0f062381a1c0aeea5610a0a518747402173d4bf57787b946eeefef57a041889679647183ead0cee0e8f8d54f0a9b3d63b976287db738b79