diff --git a/.gitignore b/.gitignore index 3e83fb7..5e7e037 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ aspell6-csb-0.02-0.tar.bz2 +/addon-222511-latest.xpi diff --git a/hunspell-csb.spec b/hunspell-csb.spec index af22d6e..aa2d0f1 100644 --- a/hunspell-csb.spec +++ b/hunspell-csb.spec @@ -6,14 +6,14 @@ Name: hunspell-csb Summary: Kashubian hunspell dictionaries -%global upstreamid 20050311 +# We are using here upstreamid date as upstream published source archive date +%global upstreamid 20190319 Version: 0.%{upstreamid} -Release: 29%{?dist} -Source: http://ftp.gnu.org/gnu/aspell/dict/csb/aspell6-csb-0.02-0.tar.bz2 -URL: http://borel.slu.edu/crubadan/apps.html -License: GPL-2.0-or-later +Release: 1%{?dist} +Source: https://addons.thunderbird.net/firefox/downloads/latest/kashubian-spell-checker-poland/addon-222511-latest.xpi +URL: https://addons.thunderbird.net/en-us/firefox/addon/kashubian-spell-checker-poland/ +License: GPL-2.0-only BuildArch: noarch -BuildRequires: aspell, hunspell-devel Requires: hunspell-filesystem Supplements: (hunspell and langpacks-csb) @@ -22,33 +22,27 @@ Supplements: (hunspell and langpacks-csb) Kashubian hunspell dictionaries. %prep -%setup -q -n aspell6-csb-0.02-0 +%autosetup -c %{name}-%{version} %build -export LANG=csb_PL.utf8 -preunzip csb.cwl -wordlist2hunspell csb.wl csb_PL -for i in Copyright doc/Crawler.txt; do - if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then - iconv -f ISO-8859-1 -t UTF-8 $i > $i.new - touch -r $i $i.new - mv -f $i.new $i - fi - tr -d '\r' < $i > $i.new - touch -r $i $i.new - mv -f $i.new $i -done +# nothing here to build %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} -cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname} +cp -p dictionaries/Kaszebsczi.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/csb_PL.dic +cp -p dictionaries/Kaszebsczi.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/csb_PL.aff %files -%doc COPYING Copyright README doc/Crawler.txt +%doc dictionaries/Copyright %{_datadir}/%{dict_dirname}/* %changelog +* Wed Jul 05 2023 Parag Nemade - 0.20190319-1 +- Use new upstream which provide more wordlist +- Update to new SPDX license +- Resolves:rhbz#2218155 - Drop dependency on aspell + * Wed Feb 22 2023 Caolan McNamara - 0.20050311-29 - migrated to SPDX license diff --git a/sources b/sources index 7ce09e5..9e9c6c6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0d4b408076115b7516c68887a563be68 aspell6-csb-0.02-0.tar.bz2 +SHA512 (addon-222511-latest.xpi) = a7a93a0314729cb9d6feb4176260238b67789743ac33a9696916cc02286d1f77acf48c1a92411101504fb754192a78f4ab5fc650684d516fc05e6fff1671fbf7