Name: hunspell-cs Version: 0^20210220 Release: 1%{?dist} Summary: Czech Hunspell dictionary License: GPL-1.0-or-later URL: http://www.translatoblog.cz/hunspell/ Source0: http://www.translatoblog.cz/wp-content/uploads/2021/03/hunspell_cs.zip BuildArch: noarch BuildRequires: coreutils BuildRequires: sed # Tests: BuildRequires: hunspell Requires: hunspell-filesystem Supplements: (hunspell and langpacks-cs) %description This package contains a Czech dictionary for the Hunspell spelling checker. %prep %setup -q -c -n %{name}-%{version} %build # Normalize end of lines sed -i -e 's/\r$//' readme.txt # Split a license text from a readme text sed -e '0,/^Soubory jsou licencovány/ w LICENSE' \ -e '/^===============/,$ w LICENSE' readme.txt sed -i -e '/^===============/,$ d' readme.txt %install install -d %{buildroot}%{_datadir}/hunspell install -m 0644 -t %{buildroot}%{_datadir}/hunspell cs_CZ.{aff,dic} %check printf 'slepice\nsledice\n' | LC_ALL=cs_CZ.UTF-8 hunspell -l %files %license LICENSE %doc readme.txt %{_datadir}/hunspell/cs_CZ.{aff,dic} %changelog * Mon May 29 2023 Petr Pisar - 0^20210220-1 - 2021-02-20 release packaged