diff --git a/hunspell-af-autoupdate b/hunspell-af-autoupdate new file mode 100644 index 0000000..6e6f5ad --- /dev/null +++ b/hunspell-af-autoupdate @@ -0,0 +1,8 @@ +#!/bin/bash +version=$1 +[ "${version}" ] || exit 1 +mkdir -p hunspell-af-${version} +curl -L "https://raw.githubusercontent.com/LibreOffice/dictionaries/master/af_ZA/af_ZA.aff" -o hunspell-af-${version}/af_ZA.aff +curl -L "https://raw.githubusercontent.com/LibreOffice/dictionaries/master/af_ZA/af_ZA.dic" -o hunspell-af-${version}/af_ZA.dic +curl -L "https://raw.githubusercontent.com/LibreOffice/dictionaries/master/af_ZA/README_af_ZA.txt" -o hunspell-af-${version}/README_af_ZA.txt +tar cjf hunspell-af-${version}.tar.bz2 hunspell-af-${version} diff --git a/hunspell-af.spec b/hunspell-af.spec index bbd9580..d80d82e 100644 --- a/hunspell-af.spec +++ b/hunspell-af.spec @@ -1,14 +1,14 @@ Name: hunspell-af -Version: 0.20080825 -Release: 3mamba +Version: 2020.02.14 +Release: 1mamba Summary: Afrikaans hunspell dictionaries Group: System/Internationalization Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://web.archive.org/web/20120929091708/http://www.translate.org.za/ -# Dead link -Source: http://downloads.translate.org.za/spellchecker/afrikaans/myspell-af_ZA-%{version}.zip +URL: https://www.libreoffice.org/ +Source0: hunspell-af-%{version}.tar.bz2 +Source1: hunspell-af-autoupdate License: LGPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END @@ -18,19 +18,20 @@ Requires: hunspell Afrikaans hunspell dictionaries. %prep -%setup -q -c %{name}-%{version} +%setup -q %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -mkdir -p %{buildroot}%{_datadir}/myspell -cp -p *.dic *.aff %{buildroot}%{_datadir}/myspell +install -D -m0644 af_ZA.aff %{buildroot}%{_datadir}/myspell/af_ZA.aff +install -D -m0644 af_ZA.dic %{buildroot}%{_datadir}/myspell/af_ZA.dic + pushd %{buildroot}%{_datadir}/myspell/ for lang in af_NA; do - ln -s af_ZA.aff $lang.aff - ln -s af_ZA.dic $lang.dic + ln -s af_ZA.aff af.aff + ln -s af_ZA.dic af.dic done popd @@ -39,10 +40,13 @@ popd %files %defattr(-,root,root) -%{_datadir}/myspell +%{_datadir}/myspell/af* %doc README_af_ZA.txt %changelog +* Sat Oct 29 2022 Silvan Calarco 2020.02.14-1mamba +- update to 2020.02.14 + * Sat Jun 05 2021 Silvan Calarco 0.20080825-3mamba - rebuilt with specfile fixes