package init

This commit is contained in:
small_leek 2020-07-09 20:20:09 +08:00
parent 5b00aa23e0
commit 45c9ead75d
4 changed files with 130 additions and 0 deletions

104
hunspell-no.spec Normal file
View File

@ -0,0 +1,104 @@
Name: hunspell-no
Summary: Hunspell dictionaries for Norwegian
Epoch: 1
Version: 2.0.10
Release: 9
Source: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/%{version}/no_NO-pack2-%{version}.zip
URL: https://alioth-archive.debian.org/releases/spell-norwegian/spell-norwegian/
License: GPL+
BuildArch: noarch
Patch0000: rhbz959989.badsfxrules.patch
%description
Hunspell dictionaries for Norwegian.
%package -n hunspell-nb
Summary: Hunspell dictionaries for Bokmaal
Requires: hunspell
Supplements: (hunspell and langpacks-nb)
%description -n hunspell-nb
Hunspell dictionaries for Bokmaal.
%package -n hunspell-nn
Summary: Hunspell dictionaries for Nynorsk
Requires: hunspell
Supplements: (hunspell and langpacks-nn)
%description -n hunspell-nn
Hunspell dictionaries for Nynorsk.
%package -n hyphen-nb
Summary: Hyphenation rules for Bokmaal
Requires: hyphen
Supplements: (hyphen and langpacks-nb)
%description -n hyphen-nb
Hyphenation rules for Bokmaal.
%package -n hyphen-nn
Summary: Hyphenation rules for Nynorsk
Requires: hyphen
Supplements: (hyphen and langpacks-nn)
%description -n hyphen-nn
Hyphenation rules for Nynorsk
%package -n mythes-nb
Summary: Thesaurus for Bokmaal
Requires: mythes
Supplements: (mythes and langpacks-nb)
%description -n mythes-nb
Thesaurus for Bokmaal.
%package -n mythes-nn
Summary: Thesaurus for Nynorsk
Requires: mythes
Supplements: (mythes and langpacks-nn)
%description -n mythes-nn
Thesaurus for Nynorsk.
%prep
%setup -c -n hunspell-no-%{version}
for zip in `find | grep zip`;do
unzip -q $zip
done
%patch0000 -p1
%build
for i in README_nb_NO.txt README_hyph_nb_NO.txt README_th_nb_NO_v2.txt; do
iconv -f ISO-8859-1 -t UTF-8 $i > $i.new
touch -r $i $i.new
mv -f $i.new $i
done
%install
install -d $RPM_BUILD_ROOT/%{_datadir}/myspell
install -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
install -d $RPM_BUILD_ROOT/%{_datadir}/hyphen
install -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
install -d $RPM_BUILD_ROOT/%{_datadir}/mythes
install -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes
%files -n hunspell-nb
%doc README_nb_NO.txt
%{_datadir}/myspell/nb_NO.*
%files -n hunspell-nn
%doc README_nn_NO.txt
%{_datadir}/myspell/nn_NO.*
%files -n hyphen-nb
%doc README_hyph_nb_NO.txt
%{_datadir}/hyphen/hyph_nb_NO.*
%files -n hyphen-nn
%doc README_hyph_nn_NO.txt
%{_datadir}/hyphen/hyph_nn_NO.*
%files -n mythes-nb
%doc README_th_nb_NO_v2.txt
%{_datadir}/mythes/th_nb_NO_v2.*
%files -n mythes-nn
%doc README_th_nb_NO_v2.txt
%{_datadir}/mythes/th_nn_NO_v2.*
%changelog
* Tue Apr 28 2020 huanghaitao <huanghaitao8@huawei.com> - 2.0.10-9
- package init

4
hunspell-no.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

BIN
no_NO-pack2-2.0.10.zip Normal file

Binary file not shown.

View File

@ -0,0 +1,22 @@
--- a/nn_NO.aff 2012-09-30 13:23:33.000000000 +0100
+++ b/nn_NO.aff 2013-08-12 13:36:06.889272568 +0100
@@ -187,7 +187,7 @@
SFX D el lar [^s]sel
SFX D tel lar ttel
SFX D el lar [^t]tel
-SFX D ar rar [^fmk]er
+SFX D ar rar [^fmk]ar
SFX D er rar ker
SFX D 0 ar [^aeouø]m
SFX D 0 mar dlem
@@ -406,8 +406,8 @@
SFX U met ne met
SFX U ele al ele
SFX U ele ålet ele
-SFX U øre orde ere
-SFX U øre ort ere
+SFX U øre orde øre
+SFX U øre ort øre
SFX U egge agt egge
SFX U egge agte egge
SFX U um a um