1 |
mikala |
17725 |
%define major 0 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
|
|
|
5 |
|
|
Name: hspell |
6 |
kekepower |
1213365 |
Version: 1.4 |
7 |
umeabot |
1797933 |
Release: %mkrel 5 |
8 |
kamil |
207944 |
Summary: Free Hebrew linguistic project |
9 |
mikala |
17725 |
Group: Text tools |
10 |
shlomif |
1399509 |
License: AGPLv3+ |
11 |
fwang |
215993 |
URL: http://hspell.ivrix.org.il/ |
12 |
|
|
Source0: http://hspell.ivrix.org.il/%{name}-%{version}.tar.gz |
13 |
cjw |
1153793 |
Patch1: hspell-1.2-perl-5.26.patch |
14 |
ovitters |
1144573 |
BuildRequires: pkgconfig(zlib) |
15 |
kamil |
207945 |
BuildRequires: locales-he |
16 |
kamil |
208144 |
BuildRequires: hunspell |
17 |
ovitters |
1144573 |
BuildRequires: pkgconfig(hunspell) |
18 |
dmorgan |
70239 |
Requires: %{libname} = %{version}-%{release} |
19 |
mikala |
17725 |
|
20 |
|
|
%description |
21 |
cjw |
1153793 |
The Hspell project is a free Hebrew linguistic project. |
22 |
|
|
Its primary goal is to create a free Hebrew spell-checker. |
23 |
|
|
In addition to a spell-checker, the project also produced a Hebrew |
24 |
|
|
morphological analyzer, which for every valid Hebrew word lists all of its |
25 |
|
|
possible readings (valid combinations of prefix and inflected base word). |
26 |
|
|
The secondary goal of the project is to make the algorithms and dictionaries, |
27 |
|
|
created initially for the spell-checker, freely available. These could be used |
28 |
|
|
in more sophisticated research or applications that require Hebrew word lists |
29 |
|
|
or a Hebrew morphology engine. |
30 |
|
|
Such potential application areas might include search engines, speech |
31 |
|
|
synthesis, and much much more. The availability of a free basis will hopefully |
32 |
|
|
encourage free development on top of it, to the benefit of the general |
33 |
mikala |
17725 |
Hebrew-speaking population. |
34 |
|
|
|
35 |
|
|
%package -n %{libname} |
36 |
|
|
Summary: Shared library files for hspell |
37 |
|
|
Group: Text tools |
38 |
|
|
|
39 |
|
|
%description -n %{libname} |
40 |
|
|
Shared library files for the hspell package. |
41 |
|
|
|
42 |
|
|
%package -n %{develname} |
43 |
|
|
Summary: Development files for hspell |
44 |
|
|
Group: Development/Other |
45 |
|
|
Requires: %{name} = %{version}-%{release} |
46 |
|
|
Requires: %{libname} = %{version}-%{release} |
47 |
|
|
Provides: libhspell-devel = %{version}-%{release} |
48 |
|
|
Provides: hspell-devel = %{version}-%{release} |
49 |
|
|
Obsoletes: %{mklibname hspell 0 -d} |
50 |
|
|
|
51 |
|
|
%description -n %{develname} |
52 |
|
|
Development headers, and files for development from the hspell package. |
53 |
|
|
|
54 |
kamil |
207944 |
# (kamil) changed the hunspell-he to be according to general Hunspell policies |
55 |
dmorgan |
70239 |
%package -n hunspell-he |
56 |
kamil |
207944 |
%define languageenglazy Hebrew |
57 |
|
|
%define languagecode he |
58 |
|
|
%define lc_ctype he_IL |
59 |
dmorgan |
70239 |
|
60 |
kamil |
207944 |
Summary: %{languageenglazy} hunspell dictionaries |
61 |
|
|
Group: System/Internationalization |
62 |
|
|
|
63 |
|
|
BuildArch: noarch |
64 |
|
|
|
65 |
tv |
675742 |
Recommends: hunspell |
66 |
kamil |
207944 |
|
67 |
kamil |
224959 |
Requires: locales-he |
68 |
kamil |
207944 |
#Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific |
69 |
|
|
Provides: enchant-dictionary = 2 |
70 |
|
|
Provides: hunspell-dictionary |
71 |
|
|
Provides: hunspell-%{lc_ctype} = %{version}-%{release} |
72 |
|
|
#Generic providing - see Mageia values |
73 |
cjw |
1153793 |
Provides: dictionary-%{languagecode} = 2 |
74 |
kamil |
207944 |
Provides: dictionary-%{lc_ctype} = 2 |
75 |
|
|
|
76 |
|
|
#MySpell is deprecated |
77 |
|
|
Obsoletes: myspell-%{languagecode} < 1.0.3 |
78 |
|
|
Provides: myspell-%{languagecode} |
79 |
|
|
Obsoletes: myspell-%{lc_ctype} < 1.0.3 |
80 |
|
|
Provides: myspell-%{lc_ctype} |
81 |
|
|
|
82 |
dmorgan |
70239 |
%description -n hunspell-he |
83 |
kamil |
207944 |
%{languageenglazy} hunspell dictionaries |
84 |
dmorgan |
70239 |
|
85 |
kamil |
207944 |
|
86 |
|
|
# (kamil) end hunspell-he |
87 |
|
|
|
88 |
mikala |
17725 |
%prep |
89 |
cjw |
1153793 |
%autosetup -p1 |
90 |
mikala |
17725 |
|
91 |
|
|
%build |
92 |
fwang |
215993 |
export CFLAGS="%optflags -fPIC" |
93 |
shlomif |
1399508 |
export PERL5LIB="$PERL5LIB:$PWD" |
94 |
wally |
1479177 |
%configure --enable-fatverb --enable-shared --enable-linginfo |
95 |
shlomif |
1399508 |
%__make dmask.c |
96 |
kekepower |
1213365 |
%make_build |
97 |
dmorgan |
70239 |
make hunspell |
98 |
fwang |
215993 |
cat >> he.aff << EOF |
99 |
dmorgan |
70239 |
MAP 10 |
100 |
|
|
MAP ךכח |
101 |
|
|
MAP םמ |
102 |
|
|
MAP ןנ |
103 |
|
|
MAP ףפ |
104 |
|
|
MAP ץצ |
105 |
|
|
MAP כק |
106 |
|
|
MAP אע # for English |
107 |
|
|
MAP גה # for Russian |
108 |
|
|
MAP צס # for Arabic |
109 |
|
|
MAP חכר # for French |
110 |
|
|
EOF |
111 |
mikala |
17725 |
|
112 |
|
|
%install |
113 |
kekepower |
1213365 |
%make_install |
114 |
mikala |
17725 |
|
115 |
kamil |
207944 |
rm -f %{buildroot}%{_libdir}/libhspell.a |
116 |
mikala |
17725 |
|
117 |
kamil |
207944 |
# (kamil) hunspell-he installation |
118 |
fwang |
215993 |
install -D -m 0644 -p he.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic |
119 |
|
|
install -D -m 0644 -p he.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff |
120 |
mikala |
17725 |
|
121 |
kamil |
207944 |
#backward compatibility |
122 |
|
|
mkdir -p %{buildroot}%{_datadir}/myspell |
123 |
|
|
pushd %{buildroot}%{_datadir}/myspell |
124 |
|
|
ln -s ../hunspell/%{lc_ctype}.dic %{lc_ctype}.dic |
125 |
|
|
ln -s ../hunspell/%{lc_ctype}.aff %{lc_ctype}.aff |
126 |
|
|
popd #%%{buildroot}%%{_datadir}/myspell |
127 |
dmorgan |
70239 |
|
128 |
kamil |
207944 |
# (kamil) hunspell-he end |
129 |
mikala |
17725 |
|
130 |
cjw |
1153793 |
%files |
131 |
dmorgan |
70239 |
%{_bindir}/hspell |
132 |
|
|
%{_bindir}/hspell-i |
133 |
|
|
%{_bindir}/multispell |
134 |
|
|
%{_mandir}/man?/hspell.* |
135 |
|
|
%{_datadir}/hspell/ |
136 |
mikala |
17725 |
|
137 |
|
|
%files -n %{libname} |
138 |
dmorgan |
70239 |
%{_libdir}/libhspell.so.0 |
139 |
mikala |
17725 |
|
140 |
|
|
%files -n %{develname} |
141 |
|
|
%_includedir/hspell.h |
142 |
dmorgan |
70239 |
%{_libdir}/libhspell.so |
143 |
mikala |
17725 |
%_includedir/linginfo.h |
144 |
|
|
|
145 |
dmorgan |
70239 |
%files -n hunspell-he |
146 |
|
|
%{_datadir}/myspell/* |
147 |
kamil |
207944 |
%{_datadir}/hunspell/* |