]>
Commit | Line | Data |
---|---|---|
9ffddf2c JB |
1 | # |
2 | # Conditional build: | |
35edfd37 JB |
3 | %bcond_with chasen # use ChaSen Japanese morphological analisys system |
4 | # (not tested, maybe on by default?) | |
5 | %bcond_without expat # without XML support (using expat library) | |
6 | %bcond_without ssl # without SSL support (using OpenSSL) | |
7 | # databases | |
7674ab3d | 8 | %bcond_without mysql # support for MySQL |
35edfd37 JB |
9 | %bcond_without pgsql # support for PostgreSQL |
10 | # databases through ODBC | |
11 | %bcond_with iodbc # with ODBC support through iODBC | |
12 | %bcond_with unixodbc # with ODBC support through unixODBC | |
94be128d | 13 | # databases through FreeTDS |
627de24f | 14 | %bcond_without freetds # support for MS SQL through FreeTDS |
9ffddf2c JB |
15 | # |
16 | Summary: Another one web indexing and searching system for a small domain or intranet | |
e3444e75 | 17 | Summary(pl.UTF-8): Kolejny system indeksowania i przeszukiwania WWW dla małych domen i intranetu |
f04cf570 | 18 | Name: mnogosearch |
ab80d6c8 | 19 | Version: 3.2.40 |
9a115efb | 20 | Release: 4 |
c77f05b5 | 21 | License: GPL v2+ |
f04cf570 | 22 | Group: Networking/Utilities |
2bbbd00f | 23 | #Source0Download: http://www.mnogosearch.ru/download.html |
4d20e7c3 | 24 | Source0: http://www.mnogosearch.ru/Download/%{name}-%{version}.tar.gz |
ab80d6c8 | 25 | # Source0-md5: 80515ca73111a1ac66fc496646beb39e |
4b835694 | 26 | Source1: %{name}-dbgen |
35edfd37 | 27 | Patch0: %{name}-acfixes.patch |
572b2753 | 28 | Patch1: %{name}-as_needed-fix.patch |
3401f38e | 29 | URL: http://www.mnogosearch.ru/ |
02565747 JB |
30 | BuildRequires: autoconf |
31 | BuildRequires: automake | |
35edfd37 JB |
32 | %{?with_chasen:BuildRequires: chasen-devel} |
33 | %{?with_expat:BuildRequires: expat-devel} | |
627de24f | 34 | %{?with_freetds:BuildRequires: freetds-devel} |
35edfd37 | 35 | %{?with_iodbc:BuildRequires: libiodbc-devel} |
02565747 | 36 | BuildRequires: libtool |
35edfd37 | 37 | %{?with_mysql:BuildRequires: mysql-devel} |
b3658d57 | 38 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
35edfd37 JB |
39 | %{?with_pgsql:BuildRequires: postgresql-devel} |
40 | %{?with_unixodbc:BuildRequires: unixODBC-devel} | |
41 | BuildRequires: zlib-devel | |
3e9793f5 | 42 | Requires: %{name}-lib = %{version}-%{release} |
9e67d8d0 ER |
43 | #%{?with_pgsql:Requires: postgresql-clients} |
44 | Requires: webserver | |
8bad0e7a | 45 | Obsoletes: aspseek |
3e9793f5 JB |
46 | Obsoletes: mnogosearch-stored |
47 | Obsoletes: udmsearch | |
f04cf570 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
885bcea9 | 50 | %define _sysconfdir /etc/%{name} |
3401f38e | 51 | %define _localstatedir /var/lib/mnogosearch |
ad9af3ee | 52 | %define _ourdatadir %{_datadir}/%{name} |
fb499e04 TO |
53 | %define htmldir /home/services/httpd/html |
54 | %define cgidir /home/services/httpd/cgi-bin | |
f7157309 | 55 | |
f04cf570 | 56 | %description |
57 | The mnogosearch system is a complete world wide web indexing and | |
58 | searching system for a small domain or intranet. This system is not | |
59 | meant to replace the need for powerful internet-wide search systems | |
60 | like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to | |
61 | cover the search needs for a single company, campus, or even a | |
f7157309 | 62 | particular sub section of a web site. Features: |
b91b83e2 | 63 | - MP3 tag info |
64 | - news searching(?) | |
65 | - http: (and ftp: - via proxy) URL schemaa | |
66 | - charset guesser | |
67 | - externel parsers | |
68 | - support for ssl (https://) | |
69 | - limiting queries to one hostname by sth like this: <INPUT | |
70 | TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/> | |
71 | - it's posilble to run indexers on several diffrent (theoreticaly 128) | |
72 | hosts, and gather information on one of them, reindexing proceses make | |
73 | no harm to avalibility of search engine. See cachemode.txt | |
f04cf570 | 74 | |
75 | As opposed to some WAIS-based or web-server based search engines, | |
e1c9c1cb | 76 | mnogsearch can span several web servers at a site. The type of these |
f04cf570 | 77 | different web servers doesn't matter as long as they understand the |
d04967c7 | 78 | HTTP 1.0 protocol. Mnogosearch supports also virtual domains. |
f04cf570 | 79 | |
c56aefb2 JR |
80 | %description -l pl.UTF-8 |
81 | Mnogosearch jest kompletnym systemem indeksującym i przeszukującym WWW | |
82 | dla małych domen oraz intranetu. System nie został opracowany jako | |
f04cf570 | 83 | wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast |
c56aefb2 | 84 | nadaje się do zastosowania w pojedynczej firmie, kampusie lub |
d5fcf9df | 85 | jakiejkolwiek stronie WWW. Zalety: |
c56aefb2 JR |
86 | - przeszukiwanie znaczników MP3, |
87 | - niusów (Server news://localhost/pl/), | |
88 | - htdb czyli baz danych udostępnianych przez WWW/CGI. (HTDBList SELECT | |
b91b83e2 | 89 | \ concat("http://search.mnogo.ru/board/message.php?id=",id) \ FROM |
90 | udm.messages LIMIT 2)) | |
c56aefb2 JR |
91 | - zawartości serwerów FTP (rada za 2gr: "Index no" dla serwera FTP |
92 | spowoduje nie indeksowanie *zawartości* plików na nim się | |
93 | znajdujących) | |
94 | - wyszukiwanie w zwykłych URL-ach http:// | |
b91b83e2 | 95 | - wsparcie dla SSL (https://) |
c56aefb2 JR |
96 | - wyszukiwanie w mirrorach (również lokalnych) odległych sieci |
97 | - zgadywanie zestawu znaków | |
98 | - zewnętrzne przetwarzacze dokumentów na potrzeby indeksowania | |
99 | - ograniczanie zapytań do jednej nazwy hosta: <INPUT TYPE=HIDDEN | |
b91b83e2 | 100 | NAME=ul VALUE=http://www.something.com/> |
101 | - kategoryzacja witryny (doc/categories.txt) | |
c56aefb2 | 102 | - możliwe jest uruchomienie kilku procesów indeksujących na kilku |
b91b83e2 | 103 | (teoretycznie 128) hostach i trzymanie bazy na jednym z nich, |
c56aefb2 | 104 | reindeksacja nie powoduje wtedy niedostępności wyszukiwarki. |
b91b83e2 | 105 | Przeczytaj cachemode.txt |
f04cf570 | 106 | |
c56aefb2 JR |
107 | W odróżnieniu od innych systemów bazujących na WAIS-ie lub serwerach |
108 | WWW, mnogosearch może łączyć kilka serwerów WWW w jednym miejscu. Typ | |
109 | serwera nie ma znaczenia, dopóki pracuje on zgodnie z protokołem HTTP | |
110 | 1.0. Pakiet współpracuje również z domenami wirtualnymi. | |
f7157309 | 111 | |
e46720a9 AF |
112 | %package lib |
113 | Summary: mnogosearch library | |
e3444e75 | 114 | Summary(pl.UTF-8): Biblioteka mnogosearch |
e46720a9 | 115 | Group: Libraries |
e46720a9 AF |
116 | |
117 | %description lib | |
118 | This package contains mnogosearch library files. | |
119 | ||
c56aefb2 | 120 | %description lib -l pl.UTF-8 |
3094bfc7 JB |
121 | Ten pakiet zawiera pliki biblioteki mnogosearch. |
122 | ||
f7157309 | 123 | %package devel |
9ffddf2c | 124 | Summary: Include files for mnogosearch |
e3444e75 | 125 | Summary(pl.UTF-8): Pliki nagłówkowe mnogosearch |
f7157309 | 126 | Group: Development/Libraries |
3e9793f5 | 127 | Requires: %{name}-lib = %{version}-%{release} |
35edfd37 | 128 | %{?with_expat:Requires: expat-devel} |
9e67d8d0 | 129 | %{?with_freetds:Requires: freetds-devel} |
35edfd37 JB |
130 | %{?with_iodbc:Requires: libiodbc-devel} |
131 | %{?with_mysql:Requires: mysql-devel} | |
132 | %{?with_ssl:Requires: openssl-devel} | |
133 | %{?with_pgsql:Requires: postgresql-devel} | |
134 | %{?with_unixodbc:Requires: unixODBC-devel} | |
135 | Requires: zlib-devel | |
f7157309 | 136 | |
137 | %description devel | |
02565747 | 138 | This package contains mnogosearch development files. |
f7157309 | 139 | |
c56aefb2 JR |
140 | %description devel -l pl.UTF-8 |
141 | Pliki dla programistów używających mnogosearch. | |
f7157309 | 142 | |
9ffddf2c JB |
143 | %package static |
144 | Summary: mnogosearch static libraries | |
e3444e75 | 145 | Summary(pl.UTF-8): Biblioteki statyczne mnogosearch |
9ffddf2c | 146 | Group: Development/Libraries |
3e9793f5 | 147 | Requires: %{name}-devel = %{version}-%{release} |
9ffddf2c JB |
148 | |
149 | %description static | |
150 | This package contains static libraries of mnogosearch. | |
151 | ||
c56aefb2 | 152 | %description static -l pl.UTF-8 |
9ffddf2c | 153 | Ten pakiet zawiera statyczne biblioteki mnogosearch. |
a3bd01f7 | 154 | |
f04cf570 | 155 | %prep |
156 | %setup -q | |
74172983 | 157 | %patch0 -p1 |
572b2753 | 158 | %patch1 -p1 |
3401f38e | 159 | |
f04cf570 | 160 | %build |
c5888d46 | 161 | find . -type d -name CVS | xargs rm -rf |
bbfbf8d1 | 162 | %{__libtoolize} |
aaaaa84e | 163 | %{__aclocal} -I build/m4 |
d9d9e3d0 | 164 | %{__autoconf} |
165 | %{__automake} | |
f7157309 | 166 | %configure \ |
ad9af3ee | 167 | --datadir=%{_ourdatadir} \ |
380a6d38 | 168 | DOCBOOKSTYLE="/usr/share/sgml/docbook/dsssl-stylesheets" \ |
f04cf570 | 169 | --enable-syslog=LOG_LOCAL6 \ |
3401f38e | 170 | --enable-charset-guesser \ |
35edfd37 | 171 | %{?with_chasen:--enable-chasen} \ |
f7157309 | 172 | --enable-fast-cat \ |
35edfd37 | 173 | --enable-fast-tag \ |
3401f38e | 174 | --enable-fast-site \ |
35edfd37 JB |
175 | --enable-linux-pthreads \ |
176 | --enable-news-extension \ | |
9ffddf2c | 177 | --enable-phrase \ |
f2a2fb9a | 178 | --enable-shared \ |
35edfd37 JB |
179 | --with-built-in \ |
180 | --with-cgi-bin-dir=%{cgidir} \ | |
181 | --with-config-dir=%{_sysconfdir}/http/%{name} \ | |
182 | %{?with_expat:--with-expat} \ | |
183 | --with-image-dir=%{htmldir}/%{name} \ | |
627de24f | 184 | %{?with_freetds:--with-freetds} \ |
35edfd37 JB |
185 | %{?with_iodbc:--with-iodbc} \ |
186 | %{?with_mysql:--with-mysql} \ | |
187 | %{?with_ssl:--with-openssl} \ | |
188 | %{?with_pgsql:--with-pgsql} \ | |
189 | --with-search-dir=%{htmldir} \ | |
190 | %{?with_unixodbc:--with-unixODBC} \ | |
191 | --with-zlib | |
192 | ||
193 | # --with-readline (for SQL monitor) ? | |
194 | # --wiht-extra-charsets=big5,gb2312,gbk,japanese,euc-kr,gujarati,tscii ? | |
a3bd01f7 | 195 | |
196 | %{__make} | |
197 | ||
3401f38e | 198 | # enable automatic Russian charset guesser :-] |
199 | # wy uze www.linux.ru procitacli sewodnja? | |
f04cf570 | 200 | |
8c69b80f | 201 | # --with-solid[=DIR] Include Solid support. DIR is the Solid base |
dbe65042 | 202 | # --with-openlink[=DIR] Include OpenLink ODBC support. |
203 | # --with-easysoft[=DIR] Include EasySoft ODBC support. | |
8c69b80f ER |
204 | # --with-sapdb[=DIR] Include SAPDB support. DIR is the SAPDB base |
205 | # --with-ibase[=DIR] Include InterBase support. DIR is the InterBase | |
206 | # --with-ctlib[=DIR] Include Ct-Lib support. | |
207 | # --with-freetds[=DIR] Include FreeTDS Ct-Lib support. | |
208 | # --with-oracle7[=DIR] Include Oracle 7.3 support. DIR is the Oracle | |
209 | # --with-oracle8[=DIR] Include Oracle8 support. DIR is the Oracle | |
f04cf570 | 210 | # --with-oracle8i[=DIR] Include Oracle8i support. DIR is the Oracle |
eaf22a4e | 211 | # |
f04cf570 | 212 | # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME |
213 | ||
f04cf570 | 214 | %install |
02565747 | 215 | rm -rf $RPM_BUILD_ROOT |
9ffddf2c JB |
216 | install -d $RPM_BUILD_ROOT{%{_localstatedir},%{htmldir},%{cgidir},%{_sysconfdir}} \ |
217 | $RPM_BUILD_ROOT{/etc/cron.daily,%{_infodir}} | |
f04cf570 | 218 | |
9ffddf2c | 219 | %{__make} install \ |
380a6d38 JB |
220 | DESTDIR=$RPM_BUILD_ROOT \ |
221 | doc_FILES='$(HTML_ALL)' | |
f04cf570 | 222 | |
8c69b80f | 223 | ln -sf %{_docdir}/%{name}-%{version}/html \ |
b91b83e2 | 224 | $RPM_BUILD_ROOT%{htmldir}/mnogodoc |
f04cf570 | 225 | |
9ffddf2c | 226 | mv -f $RPM_BUILD_ROOT%{_bindir}/*.cgi \ |
fb499e04 | 227 | $RPM_BUILD_ROOT%{cgidir} |
325c8020 | 228 | |
4b835694 | 229 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/mnogosearch-dbgen |
9ffddf2c | 230 | |
9ffddf2c | 231 | mkdir html |
651b0209 AM |
232 | cp -af doc/*.{html,css} html |
233 | ||
234 | cd $RPM_BUILD_ROOT%{_sysconfdir} | |
235 | touch locals | |
236 | for f in *-dist ; do | |
b91b83e2 | 237 | mv -f $f `basename $f -dist` |
651b0209 | 238 | done |
9ffddf2c | 239 | |
ad9af3ee AM |
240 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
241 | ||
9ffddf2c JB |
242 | %clean |
243 | rm -rf $RPM_BUILD_ROOT | |
244 | ||
245 | %post | |
9ffddf2c | 246 | cat << EOF |
8c69b80f | 247 | Please see docs (%{_docdir}/%{name}-%{version}), |
9ffddf2c JB |
248 | then read how to setup db connection, and put line like this |
249 | "pgsql://user:password@/dbname/" into %{_sysconfdir}, then setup database | |
4b835694 | 250 | using "indexer -Ecreate" command. |
9ffddf2c JB |
251 | EOF |
252 | ||
e46720a9 | 253 | %post lib -p /sbin/ldconfig |
35edfd37 | 254 | %postun lib -p /sbin/ldconfig |
9ffddf2c | 255 | |
f04cf570 | 256 | %files |
257 | %defattr(644,root,root,755) | |
c5888d46 | 258 | %doc ChangeLog README TODO html doc/samples |
651b0209 AM |
259 | %attr(755,root,root) %{_sbindir}/* |
260 | %attr(755,root,root) %{_bindir}/* | |
9ffddf2c | 261 | %attr(755,root,root) %{cgidir}/* |
ad9af3ee | 262 | %{_datadir}/%{name} |
9ffddf2c JB |
263 | %{htmldir}/mnogodoc |
264 | %dir %{_localstatedir} | |
9ffddf2c | 265 | %attr(775,root,http) %{_localstatedir}/cache |
bc124a73 | 266 | %dir %{_sysconfdir} |
267 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf | |
268 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.freq | |
269 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.htm | |
270 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals | |
9ffddf2c JB |
271 | %dir %{_sysconfdir}/langmap |
272 | %dir %{_sysconfdir}/stopwords | |
273 | %dir %{_sysconfdir}/synonym | |
bc124a73 | 274 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*/* |
9ffddf2c JB |
275 | %config(noreplace) %attr(750,root,root) /etc/cron.daily/* |
276 | %{_mandir}/man?/* | |
f04cf570 | 277 | |
e46720a9 AF |
278 | %files lib |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_libdir}/lib*-*.so | |
281 | ||
ebc441dd | 282 | %files devel |
283 | %defattr(644,root,root,755) | |
18d68c9f | 284 | %attr(755,root,root) %{_bindir}/udm-config |
380a6d38 JB |
285 | %attr(755,root,root) %{_libdir}/libmnogosearch.so |
286 | %attr(755,root,root) %{_libdir}/libmnogocharset.so | |
18d68c9f | 287 | %{_libdir}/lib*.la |
380a6d38 | 288 | %{_includedir}/* |
f04cf570 | 289 | |
ebc441dd | 290 | %files static |
291 | %defattr(644,root,root,755) | |
9ffddf2c | 292 | %{_libdir}/lib*.a |