]>
Commit | Line | Data |
---|---|---|
c6198b0d | 1 | # |
2 | # Conditional build: | |
9d0576ed JB |
3 | %bcond_without fcgi # build estseek.fcgi |
4 | %bcond_without java # Java bindings | |
5 | %bcond_without ruby # Ruby bindings | |
95903370 | 6 | %bcond_without static_libs # don't build static libraries |
c6198b0d | 7 | # |
62c2af95 | 8 | %ifnarch i586 i686 pentium3 pentium4 athlon %{x8664} |
9 | %undefine with_java | |
10 | %endif | |
fd6154dc | 11 | Summary: Full-text search system |
74b67d10 | 12 | Summary(pl.UTF-8): Pełnotekstowy system wyszukiwawczy |
fd6154dc | 13 | Name: hyperestraier |
ffb5e255 | 14 | Version: 1.4.13 |
2f359cb8 | 15 | Release: 2 |
9d0576ed | 16 | License: LGPL v2.1+ |
fd6154dc | 17 | Group: Applications/Text |
9d0576ed | 18 | Source0: http://downloads.sourceforge.net/hyperestraier/%{name}-%{version}.tar.gz |
ffb5e255 | 19 | # Source0-md5: 847aefb9e23266545280378d797f3981 |
d1109f71 | 20 | Source1: %{name}.sh |
c6198b0d | 21 | Patch0: %{name}-am_ac.patch |
2f359cb8 | 22 | Patch1: %{name}-ruby1.9.patch |
fd6154dc | 23 | URL: http://hyperestraier.sourceforge.net/ |
c6198b0d | 24 | BuildRequires: autoconf |
25 | BuildRequires: automake | |
95903370 | 26 | %{?with_fcgi:BuildRequires: fcgi-devel} |
7ef5141e ER |
27 | %{?with_java:BuildRequires: jdk} |
28 | %{?with_java:BuildRequires: jpackage-utils} | |
c6198b0d | 29 | BuildRequires: libtool |
0b76243f | 30 | BuildRequires: pkgconfig |
1d6abbfb | 31 | BuildRequires: qdbm-devel >= 1.8.75 |
7ef5141e | 32 | %{?with_java:BuildRequires: rpmbuild(macros) >= 1.300} |
c6198b0d | 33 | %{?with_ruby:BuildRequires: ruby-devel} |
6e8950d8 | 34 | BuildRequires: zlib-devel |
fd6154dc | 35 | Requires: %{name}-libs = %{version}-%{release} |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
f87c29ca | 38 | %define _libexecdir %{_libdir}/%{name} |
fd6154dc | 39 | |
40 | %description | |
41 | Hyper Estraier is a full-text search system. You can search lots of | |
42 | documents for some documents including specified words. If you run a | |
43 | web site, it is useful as your own search engine for pages in your | |
44 | site. Also, it is useful as search utilities of mail boxes and file | |
45 | servers. | |
46 | ||
f4fc9100 JB |
47 | The characteristic of Hyper Estraier is the following: |
48 | - High performance of search | |
49 | - High scalability of target documents | |
50 | - Perfect recall ratio by N-gram method | |
51 | - High precision by hybrid mechanism of N-gram and morphological | |
52 | analyzer | |
7ef5141e ER |
53 | - Phrase search, regular expressions, attribute search, and similarity |
54 | search | |
f4fc9100 JB |
55 | - Multilingualism with Unicode |
56 | - Independent of file format and repository | |
57 | - Simple and powerful API | |
58 | - Supporting P2P architecture | |
fd6154dc | 59 | |
85b7bcfa JR |
60 | %description -l pl.UTF-8 |
61 | Hyper Estraier to system wyszukiwania pełnotekstowego. Pozwala | |
62 | przeszukiwać wiele dokumentów, aby odnaleźć dokumenty zawierające | |
63 | podane słowa. W przypadku uruchomienia na stronie WWW, może być | |
64 | przydatny jako własna wyszukiwarka stron we własnym serwisie. Jest | |
65 | przydatny także do przeszukiwania skrzynek pocztowych i serwerów | |
66 | plików. | |
fd6154dc | 67 | |
f4fc9100 | 68 | Charakterystyka Hyper Estraiera: |
85b7bcfa JR |
69 | - duża wydajność przeszukiwania |
70 | - duża skalowalność dokumentów docelowych | |
71 | - doskonały współczynnik odwołań przy użyciu metody N-gramowej | |
72 | - wysoka precyzja przy użyciu hybrydowego mechanizmu N-gramowego i | |
f4fc9100 | 73 | analizatora morfologicznego |
85b7bcfa JR |
74 | - wyszukiwanie fraz, wyrażeń regularnych, atrybutów oraz podobieńst |
75 | - wielojęzyczność z Unicode | |
76 | - niezależność od formatu plików i repozytorium | |
77 | - proste i potężne API | |
78 | - obsługa architektury P2P | |
fd6154dc | 79 | |
80 | %package libs | |
f4fc9100 | 81 | Summary: hyperestraier libraries |
74b67d10 | 82 | Summary(pl.UTF-8): Biblioteki hyperestraiera |
fd6154dc | 83 | Group: Libraries |
84 | ||
85 | %description libs | |
86 | hyperestraier libraries - full-text search system. | |
87 | ||
85b7bcfa JR |
88 | %description libs -l pl.UTF-8 |
89 | Biblioteki hyperestraiera - pełnotekstowego systemu wyszukiwawczego. | |
fd6154dc | 90 | |
91 | %package devel | |
92 | Summary: Header files for hyperestraier library | |
74b67d10 | 93 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hyperestraier |
fd6154dc | 94 | Group: Development/Libraries |
95 | Requires: %{name}-libs = %{version}-%{release} | |
96 | ||
97 | %description devel | |
2159c340 | 98 | This is the package containing the header files for hyperestraier |
99 | library. | |
fd6154dc | 100 | |
85b7bcfa JR |
101 | %description devel -l pl.UTF-8 |
102 | Ten pakiet zawiera pliki nagłówkowe biblioteki hyperestraier. | |
fd6154dc | 103 | |
104 | %package static | |
105 | Summary: Static hyperestraier library | |
74b67d10 | 106 | Summary(pl.UTF-8): Statyczna biblioteka hyperestraier |
fd6154dc | 107 | Group: Development/Libraries |
108 | Requires: %{name}-devel = %{version}-%{release} | |
109 | ||
110 | %description static | |
111 | Static hyperestraier library. | |
112 | ||
85b7bcfa | 113 | %description static -l pl.UTF-8 |
fd6154dc | 114 | Statyczna biblioteka hyperestraier. |
115 | ||
c6198b0d | 116 | %package javanative |
bfbcfc47 | 117 | Summary: Java native bindings for hyperestraier |
9d0576ed JB |
118 | Summary(pl.UTF-8): Wiązania natywne Javy do hyperestraiera |
119 | Group: Libraries/Java | |
c6198b0d | 120 | Requires: %{name}-devel = %{version}-%{release} |
121 | ||
122 | %description javanative | |
bfbcfc47 | 123 | Java native bindings for hyperestraier. |
c6198b0d | 124 | |
9d0576ed JB |
125 | %description javanative -l pl.UTF-8 |
126 | Wiązania natywne Javy do hyperestraiera. | |
127 | ||
c6198b0d | 128 | %package javapure |
bfbcfc47 | 129 | Summary: Java pure bindings for hyperestraier |
9d0576ed | 130 | Summary(pl.UTF-8): Wiązania Javy do hyperestraiera w czystej Javie |
95903370 | 131 | License: BSD-style |
9d0576ed | 132 | Group: Libraries/Java |
c6198b0d | 133 | |
134 | %description javapure | |
bfbcfc47 | 135 | Java pure bindings for hyperestraier. |
c6198b0d | 136 | |
9d0576ed JB |
137 | %description javapure -l pl.UTF-8 |
138 | Wiązania Javy do hyperestraiera w czystej Javie. | |
139 | ||
c6198b0d | 140 | %package rubynative |
bfbcfc47 | 141 | Summary: Ruby native bindings for hyperestraier |
9d0576ed JB |
142 | Summary(pl.UTF-8): Wiązania natywne języka Ruby do hyperestraiera |
143 | Group: Development/Languages | |
c6198b0d | 144 | Requires: %{name}-libs = %{version}-%{release} |
145 | %ruby_ver_requires_eq | |
146 | ||
147 | %description rubynative | |
bfbcfc47 | 148 | Ruby native bindings for hyperestraier. |
c6198b0d | 149 | |
9d0576ed JB |
150 | %description rubynative -l pl.UTF-8 |
151 | Wiązania natywne języka Ruby do hyperestraiera. | |
152 | ||
c6198b0d | 153 | %package rubypure |
154 | Summary: Ruby pure bindings | |
9d0576ed | 155 | Summary(pl.UTF-8): Wiązania języka Ruby do hyperestraiera w czystym Rubym |
95903370 | 156 | License: BSD-style |
c6198b0d | 157 | Group: Development/Libraries |
c6198b0d | 158 | %ruby_ver_requires_eq |
159 | ||
160 | %description rubypure | |
bfbcfc47 | 161 | Ruby pure bindings for hyperestraier. |
c6198b0d | 162 | |
9d0576ed JB |
163 | %description rubypure -l pl.UTF-8 |
164 | Wiązania języka Ruby do hyperestraiera w czystym Rubym. | |
165 | ||
fd6154dc | 166 | %prep |
167 | %setup -q | |
c6198b0d | 168 | %patch0 -p1 |
2f359cb8 | 169 | %patch1 -p1 |
fd6154dc | 170 | |
171 | %build | |
c6198b0d | 172 | %{__libtoolize} |
173 | %{__aclocal} | |
174 | %{__autoconf} | |
175 | %{__automake} | |
176 | %configure \ | |
9d0576ed JB |
177 | --enable-fcgi%{!?with_fcgi:=no} \ |
178 | --enable-static%{!?with_static_libs:=no} | |
c6198b0d | 179 | %{__make} |
180 | ||
181 | %if %{with java} | |
7ef5141e | 182 | export JAVA_HOME="%{java_home}" |
c6198b0d | 183 | cd javanative |
184 | %{__libtoolize} | |
185 | %{__aclocal} | |
186 | %{__autoconf} | |
187 | %{__automake} | |
95903370 | 188 | %configure \ |
9d0576ed | 189 | --disable-static |
fd6154dc | 190 | %{__make} |
9d0576ed | 191 | cd ../javapure |
c6198b0d | 192 | %{__aclocal} |
193 | %{__autoconf} | |
c6198b0d | 194 | %configure |
195 | %{__make} | |
9d0576ed | 196 | cd .. |
c6198b0d | 197 | %endif |
198 | ||
199 | %if %{with ruby} | |
200 | cd rubynative | |
201 | %{__aclocal} | |
202 | %{__autoconf} | |
203 | %configure | |
204 | %{__make} | |
9d0576ed | 205 | cd ../rubypure |
c6198b0d | 206 | %{__aclocal} |
207 | %{__autoconf} | |
208 | %configure | |
209 | %{__make} | |
9d0576ed | 210 | cd .. |
c6198b0d | 211 | %endif |
fd6154dc | 212 | |
213 | %install | |
214 | rm -rf $RPM_BUILD_ROOT | |
215 | ||
216 | %{__make} install \ | |
217 | DESTDIR=$RPM_BUILD_ROOT | |
218 | ||
c6198b0d | 219 | %if %{with java} |
220 | %{__make} -C javanative install \ | |
221 | DESTDIR=$RPM_BUILD_ROOT | |
9d0576ed | 222 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libjestraier.la |
c6198b0d | 223 | |
224 | %{__make} -C javapure install \ | |
225 | DESTDIR=$RPM_BUILD_ROOT | |
226 | %endif | |
227 | ||
228 | %if %{with ruby} | |
229 | %{__make} -C rubynative install \ | |
230 | DESTDIR=$RPM_BUILD_ROOT | |
231 | ||
232 | %{__make} -C rubypure install \ | |
233 | DESTDIR=$RPM_BUILD_ROOT | |
234 | %endif | |
235 | ||
d1109f71 | 236 | install %{SOURCE1} . |
fd6154dc | 237 | |
238 | %clean | |
239 | rm -rf $RPM_BUILD_ROOT | |
240 | ||
241 | %post libs -p /sbin/ldconfig | |
242 | %postun libs -p /sbin/ldconfig | |
243 | ||
95903370 | 244 | %post javanative -p /sbin/ldconfig |
245 | %postun javanative -p /sbin/ldconfig | |
246 | ||
fd6154dc | 247 | %files |
248 | %defattr(644,root,root,755) | |
d1109f71 | 249 | %doc ChangeLog README THANKS hyperestraier.sh |
3a4ca903 | 250 | %attr(755,root,root) %{_bindir}/estbutler |
4f7c1d6f | 251 | %attr(755,root,root) %{_bindir}/estcall |
252 | %attr(755,root,root) %{_bindir}/estcmd | |
253 | %attr(755,root,root) %{_bindir}/estload | |
254 | %attr(755,root,root) %{_bindir}/estmaster | |
255 | %attr(755,root,root) %{_bindir}/estmttest | |
256 | %attr(755,root,root) %{_bindir}/estwaver | |
257 | %attr(755,root,root) %{_bindir}/estwolefind | |
d1109f71 | 258 | # don't move cgi binaries to /usr/lib/cgi-bin - write your own wrapper |
259 | # (shell script) instead, utilize SCRIPT_NAME env. var. and put into | |
260 | # your cgi-bin directory | |
f87c29ca | 261 | %dir %{_libexecdir} |
9d0576ed JB |
262 | %attr(755,root,root) %{_libexecdir}/est*.cgi |
263 | %{?with_fcgi:%attr(755,root,root) %{_libexecdir}/est*.fcgi} | |
264 | %{_mandir}/man1/estcall.1* | |
265 | %{_mandir}/man1/estcmd.1* | |
266 | %{_mandir}/man1/estconfig.1* | |
267 | %{_mandir}/man1/estmaster.1* | |
268 | %{_mandir}/man1/estwaver.1* | |
fd6154dc | 269 | %dir %{_datadir}/%{name} |
270 | # config templates - don't add to %%config, don't move it to /etc | |
271 | %{_datadir}/%{name}/estseek.conf | |
272 | %{_datadir}/%{name}/estseek.tmpl | |
273 | %{_datadir}/%{name}/estseek.top | |
1cbe537c | 274 | %{_datadir}/%{name}/estseek.help |
fd6154dc | 275 | %{_datadir}/%{name}/estresult.dtd |
276 | %{_datadir}/%{name}/estraier.idl | |
3a4ca903 | 277 | %{_datadir}/%{name}/estfraud.conf |
1d6abbfb | 278 | %{_datadir}/%{name}/estproxy.conf |
279 | %{_datadir}/%{name}/estscout.conf | |
280 | %{_datadir}/%{name}/estsupt.conf | |
fd6154dc | 281 | %dir %{_datadir}/%{name}/filter |
282 | %{_datadir}/%{name}/filter/estfxmantotxt | |
283 | %{_datadir}/%{name}/filter/estfxmsotohtml | |
284 | %{_datadir}/%{name}/filter/estfxasis | |
285 | %{_datadir}/%{name}/filter/estfxpdftohtml | |
286 | %{_datadir}/%{name}/filter/estwnetxpnd | |
287 | %{_datadir}/%{name}/filter/estfxxdwtotxt | |
288 | %dir %{_datadir}/%{name}/increm | |
289 | %{_datadir}/%{name}/increm/estseek-frame.html | |
290 | %{_datadir}/%{name}/increm/estseek-form.html | |
291 | %dir %{_datadir}/%{name}/locale | |
292 | %lang(ja) %dir %{_datadir}/%{name}/locale/ja | |
293 | %lang(ja) %{_datadir}/%{name}/locale/ja/estseek.conf | |
1cbe537c | 294 | %lang(ja) %{_datadir}/%{name}/locale/ja/estseek.help |
fd6154dc | 295 | %lang(ja) %{_datadir}/%{name}/locale/ja/estseek.tmpl |
296 | %lang(ja) %{_datadir}/%{name}/locale/ja/estseek.top | |
297 | ||
298 | %files libs | |
299 | %defattr(644,root,root,755) | |
95903370 | 300 | %attr(755,root,root) %{_libdir}/libestraier.so.*.*.* |
9d0576ed | 301 | %attr(755,root,root) %ghost %{_libdir}/libestraier.so.8 |
fd6154dc | 302 | |
303 | %files devel | |
304 | %defattr(644,root,root,755) | |
305 | %doc doc/* | |
4f7c1d6f | 306 | %attr(755,root,root) %{_bindir}/estconfig |
95903370 | 307 | %attr(755,root,root) %{_libdir}/libestraier.so |
308 | %{_libdir}/libestraier.la | |
9d0576ed JB |
309 | %{_includedir}/estmtdb.h |
310 | %{_includedir}/estnode.h | |
311 | %{_includedir}/estraier.h | |
312 | %{_pkgconfigdir}/hyperestraier.pc | |
313 | %{_mandir}/man3/estnode.3* | |
314 | %{_mandir}/man3/estraier.3* | |
fd6154dc | 315 | |
95903370 | 316 | %if %{with static_libs} |
fd6154dc | 317 | %files static |
318 | %defattr(644,root,root,755) | |
95903370 | 319 | %{_libdir}/libestraier.a |
320 | %endif | |
c6198b0d | 321 | |
95903370 | 322 | %if %{with java} |
c6198b0d | 323 | %files javanative |
324 | %defattr(644,root,root,755) | |
95903370 | 325 | %attr(755,root,root) %{_libdir}/libjestraier.so.*.*.* |
9d0576ed | 326 | %attr(755,root,root) %ghost %{_libdir}/libjestraier.so.1 |
95903370 | 327 | %attr(755,root,root) %{_libdir}/libjestraier.so |
9d0576ed | 328 | %{_libdir}/estraier.jar |
c6198b0d | 329 | |
330 | %files javapure | |
331 | %defattr(644,root,root,755) | |
332 | %{_libdir}/estraierpure.jar | |
95903370 | 333 | %endif |
c6198b0d | 334 | |
95903370 | 335 | %if %{with ruby} |
c6198b0d | 336 | %files rubynative |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_bindir}/estcmd.rb | |
339 | %attr(755,root,root) %{ruby_sitearchdir}/estraier.so | |
340 | ||
341 | %files rubypure | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_bindir}/estcall.rb | |
344 | %{ruby_sitelibdir}/estraierpure.rb | |
95903370 | 345 | %endif |