Use new source archive generated using Manx aspell dictionary

Resolves:rhbz#2218159 - Drop dependency on aspell
This commit is contained in:
Parag Nemade 2023-08-03 21:05:26 +05:30
parent 53135683cf
commit 79d0e8086e
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
3 changed files with 13 additions and 21 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
aspell-gv-0.50-0.tar.bz2
/hunspell-gv-0.50.tar.bz2

View File

@ -8,12 +8,12 @@ Name: hunspell-gv
Summary: Manx hunspell dictionaries
%global upstreamid 20040505
Version: 0.%{upstreamid}
Release: 30%{?dist}
Source: http://ftp.gnu.org/gnu/aspell/dict/gv/aspell-gv-0.50-0.tar.bz2
URL: http://borel.slu.edu/crubadan/apps.html
Release: 31%{?dist}
# This source is generated by generate-source.sh using aspell dictionary
Source: hunspell-gv-0.50.tar.bz2
URL: http://ftp.gnu.org/gnu/aspell/dict/gv
License: GPL-1.0-or-later
BuildArch: noarch
BuildRequires: aspell, hunspell-devel
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-gv)
@ -22,23 +22,10 @@ Supplements: (hunspell and langpacks-gv)
Manx hunspell dictionaries.
%prep
%setup -q -n aspell-gv-0.50-0
%setup -q -n hunspell-gv-0.50
%build
export LANG=C.UTF-8
preunzip -d *.cwl
cat *.wl > manx.wordlist
wordlist2hunspell manx.wordlist gv_GB
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 to build here
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
@ -46,10 +33,14 @@ cp -p *.dic *.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc COPYING Copyright README doc/Crawler.txt
%doc COPYING Copyright README Crawler.txt
%{_datadir}/%{dict_dirname}/*
%changelog
* Thu Aug 03 2023 Parag Nemade <pnemade AT redhat DOT com> - 0.20040505-31
- Use new source archive generated using Manx aspell dictionary
- Resolves:rhbz#2218159 - Drop dependency on aspell
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20040505-30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View File

@ -1 +1 @@
139b5aa1f5ea85fb7a4be0338039e959 aspell-gv-0.50-0.tar.bz2
SHA512 (hunspell-gv-0.50.tar.bz2) = 98a8b8d0b69d33806b81f4c20f27b94c792cc8afef722c975b1bde52594b599c35afb2acfff404dedafa765fdfaef99f99c13f83d7253dfd206bd2e14389e8e0