1 |
mikala |
17725 |
%define major 0 |
2 |
|
|
%define libname %mklibname %{name} %{major} |
3 |
|
|
%define develname %mklibname %{name} -d |
4 |
|
|
|
5 |
|
|
Summary: Free Hebrew linguistic project |
6 |
|
|
Name: hspell |
7 |
|
|
Version: 1.1 |
8 |
dmorgan |
70239 |
Release: %mkrel 3 |
9 |
mikala |
17725 |
Group: Text tools |
10 |
|
|
License: LGPL |
11 |
|
|
URL: http://www.ivrix.org.il/projects/spell-checker/ |
12 |
|
|
Source0: %{name}-%{version}.tar.bz2 |
13 |
dmorgan |
70239 |
Patch0: hspell-1.0.sharedlib.patch |
14 |
mikala |
17725 |
BuildRequires: automake1.8 |
15 |
dmorgan |
70239 |
Requires: %{libname} = %{version}-%{release} |
16 |
mikala |
17725 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
17 |
|
|
|
18 |
|
|
%description |
19 |
|
|
The Hspell project is a free Hebrew linguistic project. |
20 |
|
|
Its primary goal is to create a free Hebrew spell-checker. |
21 |
|
|
In addition to a spell-checker, the project also produced a Hebrew |
22 |
|
|
morphological analyzer, which for every valid Hebrew word lists all of its |
23 |
|
|
possible readings (valid combinations of prefix and inflected base word). |
24 |
|
|
The secondary goal of the project is to make the algorithms and dictionaries, |
25 |
|
|
created initially for the spell-checker, freely available. These could be used |
26 |
|
|
in more sophisticated research or applications that require Hebrew word lists |
27 |
|
|
or a Hebrew morphology engine. |
28 |
|
|
Such potential application areas might include search engines, speech |
29 |
|
|
synthesis, and much much more. The availability of a free basis will hopefully |
30 |
|
|
encourage free development on top of it, to the benefit of the general |
31 |
|
|
Hebrew-speaking population. |
32 |
|
|
|
33 |
|
|
%package -n %{libname} |
34 |
|
|
Summary: Shared library files for hspell |
35 |
|
|
Group: Text tools |
36 |
|
|
|
37 |
|
|
%description -n %{libname} |
38 |
|
|
Shared library files for the hspell package. |
39 |
|
|
|
40 |
|
|
%package -n %{develname} |
41 |
|
|
Summary: Development files for hspell |
42 |
|
|
Group: Development/Other |
43 |
|
|
Requires: %{name} = %{version}-%{release} |
44 |
|
|
Requires: %{libname} = %{version}-%{release} |
45 |
|
|
Provides: libhspell-devel = %{version}-%{release} |
46 |
|
|
Provides: hspell-devel = %{version}-%{release} |
47 |
|
|
Obsoletes: %{mklibname hspell 0 -d} |
48 |
|
|
|
49 |
|
|
%description -n %{develname} |
50 |
|
|
Development headers, and files for development from the hspell package. |
51 |
|
|
|
52 |
dmorgan |
70239 |
%package -n hunspell-he |
53 |
|
|
Summary: Hebrew hunspell dictionaries |
54 |
|
|
Group: Applications/Text |
55 |
|
|
Requires: hunspell |
56 |
|
|
|
57 |
|
|
%description -n hunspell-he |
58 |
|
|
Hebrew hunspell dictionaries. |
59 |
|
|
|
60 |
mikala |
17725 |
%prep |
61 |
|
|
|
62 |
|
|
%setup -q |
63 |
dmorgan |
70239 |
%patch0 -p1 -b .sharedlib.patch |
64 |
mikala |
17725 |
|
65 |
|
|
%build |
66 |
|
|
CFLAGS="%optflags -fPIC" CPPFLAGS="%optflags -fPIC" FFLAGS="optflags -fPIC" \ |
67 |
|
|
%configure2_5x --enable-fatverb --enable-fatverb |
68 |
|
|
%make |
69 |
dmorgan |
70239 |
make hunspell |
70 |
|
|
cat >> hunspell/new_he.aff << EOF |
71 |
|
|
MAP 10 |
72 |
|
|
MAP ךכח |
73 |
|
|
MAP םמ |
74 |
|
|
MAP ןנ |
75 |
|
|
MAP ףפ |
76 |
|
|
MAP ץצ |
77 |
|
|
MAP כק |
78 |
|
|
MAP אע # for English |
79 |
|
|
MAP גה # for Russian |
80 |
|
|
MAP צס # for Arabic |
81 |
|
|
MAP חכר # for French |
82 |
|
|
EOF |
83 |
mikala |
17725 |
|
84 |
|
|
%install |
85 |
|
|
rm -rf %{buildroot} |
86 |
|
|
|
87 |
|
|
%makeinstall_std |
88 |
|
|
|
89 |
dmorgan |
70239 |
rm -f $RPM_BUILD_ROOT/%{_libdir}/libhspell.a |
90 |
mikala |
17725 |
|
91 |
dmorgan |
70239 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell |
92 |
|
|
cp -p hunspell/new_he.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.dic |
93 |
|
|
cp -p hunspell/new_he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff |
94 |
mikala |
17725 |
|
95 |
dmorgan |
70239 |
|
96 |
mikala |
17725 |
%clean |
97 |
|
|
rm -rf %{buildroot} |
98 |
|
|
|
99 |
|
|
%files |
100 |
|
|
%defattr(-,root,root) |
101 |
dmorgan |
70239 |
%{_bindir}/hspell |
102 |
|
|
%{_bindir}/hspell-i |
103 |
|
|
%{_bindir}/multispell |
104 |
|
|
%{_mandir}/man?/hspell.* |
105 |
|
|
%{_datadir}/hspell/ |
106 |
mikala |
17725 |
|
107 |
|
|
%files -n %{libname} |
108 |
|
|
%defattr(-, root, root) |
109 |
dmorgan |
70239 |
%{_libdir}/libhspell.so.0 |
110 |
mikala |
17725 |
|
111 |
|
|
%files -n %{develname} |
112 |
|
|
%defattr(-, root, root) |
113 |
|
|
%_includedir/hspell.h |
114 |
dmorgan |
70239 |
%{_libdir}/libhspell.so |
115 |
mikala |
17725 |
%_includedir/linginfo.h |
116 |
|
|
|
117 |
dmorgan |
70239 |
%files -n hunspell-he |
118 |
|
|
%defattr(-,root,root,-) |
119 |
|
|
%{_datadir}/myspell/* |