From 7e7c309d9d06a42dca2911285f9076ef7df789c4 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Wed, 5 Jul 2023 22:20:20 +0530 Subject: [PATCH] Use new upstream which provide more wordlist Update to new SPDX license - Resolves:rhbz#2218154 - Drop dependency on aspell --- .gitignore | 1 + hunspell-az.spec | 39 ++++++++++++++++----------------------- sources | 2 +- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/.gitignore b/.gitignore index 7ee6af1..cadad01 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ aspell6-az-0.02-0.tar.bz2 +/azerbaijani_spellchecker-0.2.zip diff --git a/hunspell-az.spec b/hunspell-az.spec index e8622f7..d8e74a5 100644 --- a/hunspell-az.spec +++ b/hunspell-az.spec @@ -6,14 +6,14 @@ Name: hunspell-az Summary: Azerbaijani hunspell dictionaries -%global upstreamid 20040827 +# date is derived from upstream az.dic file timestamp +%global upstreamid 20180807 Version: 0.%{upstreamid} -Release: 30%{?dist} -Source: ftp://ftp.gnu.org/gnu/aspell/dict/az/aspell6-az-0.02-0.tar.bz2 -URL: http://borel.slu.edu/crubadan/apps.html -License: GPL-2.0-or-later +Release: 1%{?dist} +Source: https://github.com/mozillaz/spellchecker/archive/refs/heads/master.zip#/azerbaijani_spellchecker-0.2.zip +URL: https://github.com/mozillaz/spellchecker/ +License: MPL-2.0 BuildArch: noarch -BuildRequires: aspell, hunspell-devel Requires: hunspell-filesystem Supplements: (hunspell and langpacks-az) @@ -22,33 +22,26 @@ Supplements: (hunspell and langpacks-az) Azerbaijani hunspell dictionaries. %prep -%setup -q -n aspell6-az-0.02-0 +%autosetup -n spellchecker-master %build -export LANG=C.UTF-8 -preunzip az.cwl -wordlist2hunspell az.wl az_AZ -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/*.dic $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/az_AZ.dic +cp -p dictionaries/*.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/az_AZ.aff %files -%doc COPYING Copyright README doc/Crawler.txt +%doc LICENSE README.md %{_datadir}/%{dict_dirname}/* %changelog +* Wed Jul 05 2023 Parag Nemade - 0.20180807-1 +- Use new upstream which provide more wordlist +- Update to new SPDX license +- Resolves:rhbz#2218154 - Drop dependency on aspell + * Wed Feb 22 2023 Caolán McNamara - 0.20040827-30 - migrated to SPDX license diff --git a/sources b/sources index 508e7b3..28a2205 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -24d9d46c8fc23197666a43a7962a7b0d aspell6-az-0.02-0.tar.bz2 +SHA512 (azerbaijani_spellchecker-0.2.zip) = f89e222e866ee2bc7604bb8a2948579101d314fca54d5484ff604c30287e0691936d202f278de53e67692b84cd755b43679c2cea3756b051715900933d6792cf