latest release

This commit is contained in:
Caolán McNamara 2022-12-16 15:15:33 +00:00
parent c3f828c566
commit 21dc7d5463
4 changed files with 12 additions and 53 deletions

5
.gitignore vendored
View File

@ -1,4 +1 @@
/myspell-header
/hunspell-header
/ispell-gaeilge-4.6.tar.gz
/ispell-gaeilge-5.0.tar.gz
/hunspell-ga-5.1.zip

View File

@ -1,22 +1,15 @@
%if 0%{?fedora} >= 36 || 0%{?rhel} > 9
%global dict_dirname hunspell
%else
%global dict_dirname myspell
%endif
Name: hunspell-ga
Summary: Irish hunspell dictionaries
Version: 5.0
Release: 12%{?dist}
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
Source1: myspell-header
Source2: hunspell-header
URL: http://borel.slu.edu/ispell/index.html
License: GPLv2+
Version: 5.1
Release: 1%{?dist}
Source: https://github.com/kscanne/gaelspell/releases/download/v%{version}/hunspell-ga-%{version}.zip
URL: https://cadhan.com/gaelspell/
License: GPL-2.0-or-later
BuildArch: noarch
BuildRequires: make
BuildRequires: hunspell-devel
Patch1: ispell-gaeilge-5.0-buildhunspell.patch
Requires: hunspell-filesystem
Supplements: (hunspell and langpacks-ga)
@ -25,14 +18,9 @@ Supplements: (hunspell and langpacks-ga)
Irish hunspell dictionaries.
%prep
%autosetup -n ispell-gaeilge-%{version}
%autosetup -c
%build
make
cat %{SOURCE1} %{SOURCE2} > header
export LANG=C.UTF-8
iconv -f utf-8 -t iso-8859-1 < gaeilge.aff > gaeilge.aff.iso-8859-1
ispellaff2myspell gaeilge.aff.iso-8859-1 --myheader header | sed -e "s/\"\"/0/g" | sed -e "s/\"//g" > ga_IE.aff
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
@ -40,11 +28,13 @@ cp -p ga_IE.dic ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}
%files
%doc README ChangeLog
%license COPYING
%doc README_ga_IE.txt
%{_datadir}/%{dict_dirname}/*
%changelog
* Fri Dec 16 2022 Caolán McNamara <caolanm@redhat.com> - 5.1-1
- latest release
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1,26 +0,0 @@
diff -urN ispell-gaeilge-5.0.old/makefile ispell-gaeilge-5.0/makefile
--- ispell-gaeilge-5.0.old/makefile 2017-12-04 02:02:36.000000000 +0530
+++ ispell-gaeilge-5.0/makefile 2018-07-08 09:16:16.483019455 +0530
@@ -20,17 +20,15 @@
ALTAFFIXFILE=gaeilgemor.aff
INSTALL_DATA=$(INSTALL) -m 444
-SORT=/usr/bin/sort -u
+SORT=sort -u
-hashtable: $(INSTALLATION).hash
-
-all: gaeilge.hash gaeilgelit.hash gaeilgemor.hash
+all: ga_IE.dic
# grep -v filters out Malmö, São, LC_ALL=C needed!
-gaeilge.hash: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
+ga_IE.dic: $(RAWWORDS) $(AFFIXFILE) $(PERSONAL)
LC_ALL=C $(SORT) $(RAWWORDS) $(PERSONAL) | LC_ALL=C grep -v "[^'a-zA-ZáéíóúÁÉÍÓÚ/-]" | iconv -f UTF-8 -t iso-8859-1 > gaeilge.focail
- iconv -f UTF-8 -t iso-8859-1 $(AFFIXFILE) > tempaff.txt
- $(ISPELLBIN)/buildhash gaeilge.focail tempaff.txt gaeilge.hash
+ wc -l gaeilge.focail | cut -d ' ' -f 1 > ga_IE.dic
+ LC_ALL=C $(SORT) -f -t / --key 1,1 gaeilge.focail >> ga_IE.dic
rm -f gaeilge.focail tempaff.txt
gaeilgelit.hash: $(RAWWORDS) $(LITWORDS) gaeilgelit.aff $(PERSONAL)

View File

@ -1,3 +1 @@
SHA512 (myspell-header) = 18173d8c44d010ae96a6a7babcc9a0ed2e3110483ce0d7ba22d601a4c9d88970b01772df0c9f08218c8c7f857484f9a264c182623bb42d2b244b15799057286f
SHA512 (hunspell-header) = 129ee05b85dd795f19cd2532b0e46d19c338285424c07541fc77169e09447e92a8730ebb6f6226de84793fd77b61fc1bf5a48e1b43786d95cb507aaa5c849e17
SHA512 (ispell-gaeilge-5.0.tar.gz) = 9303b1f971aa22a619cc90b1e74d301e7fbe07b835b05e928de7dd38475bfe64d0bb6afdb14734dc6f75eee8166f9f8a08efc6805a2790244c87549b50d19128
SHA512 (hunspell-ga-5.1.zip) = 0ecd0047aa9ae49e772b120f98138e0a1c77b2e0d52d6f47138c2abcbc243e145990e06f91641e1af526deadf6b7e6bcfc6deb26719b4cfb4df99fae47ebb83c