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