!1 package init

Merge pull request !1 from small_leek/xsl
This commit is contained in:
openeuler-ci-bot 2020-07-15 11:21:53 +08:00 committed by Gitee
commit 7420a9ec6b
6 changed files with 197 additions and 0 deletions

39
hunspell-ga.spec Normal file
View File

@ -0,0 +1,39 @@
Name: hunspell-ga
Version: 5.0
Release: 3
Summary: hunspell dictionaries for Irish
License: GPLv2+
URL: https://cadhan.com/gaelspell
Source0: https://github.com/kscanne/gaelspell/releases/download/v%{version}/ispell-gaeilge-%{version}.tar.gz
Source1: https://github.com/kscanne/gaelspell/blob/master/myspell-header
Source2: https://github.com/kscanne/gaelspell/blob/master/hunspell-header
Patch0001: ispell-gaeilge-5.0-buildhunspell.patch
BuildArch: noarch
BuildRequires: hunspell-devel
Requires: hunspell
Supplements: (hunspell and langpacks-ga)
%description
hunspell dictionaries for Irish.
%prep
%autosetup -n ispell-gaeilge-%{version} -p1
%build
%make_build
cat %{SOURCE1} %{SOURCE2} > header
export LANG=en_IE.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
install -Dp ga_IE.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ga_IE.dic
install -Dp ga_IE.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ga_IE.aff
%files
%doc README ChangeLog COPYING
%{_datadir}/myspell/*
%changelog
* Wed May 20 2020 yanan li <liyanan032@huawei.com> - 5.0-3
- Package init

5
hunspell-ga.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/kscanne/gaelspell.git
version_control: github
src_repo: kscanne/gaelspell
tag_prefix: "v"
seperator: "."

87
hunspell-header Normal file
View File

@ -0,0 +1,87 @@
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Start hunspell affix file extensions #
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
WORDCHARS -'
# see gramadoir morph-ga; not bothering with any replacements
# from that file that are anchored at ^ or $, nor with any that
# simply add a fada (hopefully handled by MAP rules below),
# nor with derivational morphology, since these are undesirable for
# spelling replacement
REP 64
REP a á
REP e é
REP i í
REP o ó
REP u ú
REP uigh aigh
REP uith aith
REP idhth ith
REP ighth ith
REP sg sc
REP sb sp
REP sd st
REP dn nn
REP eu éa
REP tch t
REP idhea ío
REP ighea ío
REP idhe í
REP ighe í
REP uím aím
REP uít aít
REP uío aío
REP aghadh ú
REP adha ú
REP ádh á
REP mhth f
REP bhth f
REP thmh f
REP thbh f
REP thch ch
REP tht t
REP ghaí aí
REP llr lr
REP lls ls
REP llt lt
REP nnc nc
REP nnd nd
REP nnl nl
REP nnr nr
REP nns ns
REP nnt nt
REP aingc aing
REP éagc éag
REP éigc éig
REP iargc iarg
REP éadt éad
REP éidt éid
REP domb dom
REP díomb díom
REP dhomb dhom
REP dhíomb dhíom
REP anbhf anbh
REP ainbhf ainbh
REP ighim ím
REP ighidh í
REP ighinn ínn
REP éá éa
REP áí ái
REP éí éi
REP óí ói
REP úí úi
REP íó ío
REP íá iá
REP íú iú
MAP 5
MAP aáAÁ
MAP eéEÉ
MAP iíIÍ
MAP oóOÓ
MAP uúUÚ
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# End hunspell extensions; remainder are PFX and SFX specifications #
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

View File

@ -0,0 +1,26 @@
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)

BIN
ispell-gaeilge-5.0.tar.gz Normal file

Binary file not shown.

40
myspell-header Normal file
View File

@ -0,0 +1,40 @@
# hunspell affix file for Irish by Kevin Scannell
# I created this file by converting my ispell affix file on 5 August 2002
# Exactly the same set of affixes, except one can avoid the acrobatics
# for the verb "buígh" because hunspell is a bit smarter about
# combining affixes
#
# ABCDEFGHIJKLMNOPQRSTUVWXYZ
# ****** ****** ***
#
# Copyright 2002-2007 Kevin P. Scannell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
#
# Consult the web page
#
# http://borel.slu.edu/ispell/
#
# for detailed information about these packages and installation information.
SET ISO8859-1
# TRY aihnrsetcdoglumbíéáfóúpvjzxywqk (Aug. 2002, 8MB corpus)
# TRY aihnrestcoldgumíábéfúóCpATBSIDNMGRFLEOPHÉUÁÓÍyÚJvkqKWVwzxjYQZX (Sept. 2003, 75MB corpus)
# Latest: July 2006, 128MB corpus
TRY aihnretsocldgmuíábéfúóACpTSINBDEMRGL-FOP'HUyÉwvÁÓkÍJÚWKxVYqzjXZQ