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)
8 %bcond_without mysql # support for MySQL
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
13 # databases through FreeTDS
14 %bcond_without freetds # support for MS SQL through FreeTDS
16 Summary: Another one web indexing and searching system for a small domain or intranet
17 Summary(pl): Kolejny system indeksowania i przeszukiwania WWW dla ma³ych domen i intranetu
22 Group: Networking/Utilities
23 #Source0Download: http://www.mnogosearch.ru/download.html
24 Source0: http://www.mnogosearch.ru/Download/%{name}-%{version}.tar.gz
25 # Source0-md5: 1706fcba5abde4bbea794379a9f672d0
26 Source1: %{name}-dbgen
27 Patch0: %{name}-acfixes.patch
28 URL: http://www.mnogosearch.ru/
29 BuildRequires: autoconf
30 BuildRequires: automake
31 %{?with_chasen:BuildRequires: chasen-devel}
32 %{?with_expat:BuildRequires: expat-devel}
33 %{?with_freetds:BuildRequires: freetds-devel}
34 %{?with_iodbc:BuildRequires: libiodbc-devel}
35 BuildRequires: libtool
36 %{?with_mysql:BuildRequires: mysql-devel}
37 %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
38 %{?with_pgsql:BuildRequires: postgresql-devel}
39 %{?with_unixodbc:BuildRequires: unixODBC-devel}
40 BuildRequires: zlib-devel
41 Requires: %{name}-lib = %{version}-%{release}
42 #%{?with_pgsql:Requires: postgresql-clients}
45 Obsoletes: mnogosearch-stored
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _sysconfdir /etc/%{name}
50 %define _localstatedir /var/lib/mnogosearch
51 %define _ourdatadir %{_datadir}/%{name}
52 %define htmldir /home/services/httpd/html
53 %define cgidir /home/services/httpd/cgi-bin
56 The mnogosearch system is a complete world wide web indexing and
57 searching system for a small domain or intranet. This system is not
58 meant to replace the need for powerful internet-wide search systems
59 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
60 cover the search needs for a single company, campus, or even a
61 particular sub section of a web site. Features:
64 - http: (and ftp: - via proxy) URL schemaa
67 - support for ssl (https://)
68 - limiting queries to one hostname by sth like this: <INPUT
69 TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
70 - it's posilble to run indexers on several diffrent (theoreticaly 128)
71 hosts, and gather information on one of them, reindexing proceses make
72 no harm to avalibility of search engine. See cachemode.txt
74 As opposed to some WAIS-based or web-server based search engines,
75 mnogsearch can span several web servers at a site. The type of these
76 different web servers doesn't matter as long as they understand the
77 HTTP 1.0 protocol. Mnogosearch supports also virtual domains.
80 Mnogosearch jest kompletnym systemem indeksuj±cym i przeszukuj±cym WWW
81 dla ma³ych domen oraz intranetu. System nie zosta³ opracowany jako
82 wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast
83 nadaje siê do zastosowania w pojedynczej firmie, kampusie lub
84 jakiejkolwiek stronie WWW. Zalety:
85 - przeszukiwanie znaczników MP3,
86 - niusów (Server news://localhost/pl/),
87 - htdb czyli baz danych udostêpnianych przez WWW/CGI. (HTDBList SELECT
88 \ concat("http://search.mnogo.ru/board/message.php?id=",id) \ FROM
89 udm.messages LIMIT 2))
90 - zawarto¶ci serwerów FTP (rada za 2gr: "Index no" dla serwera FTP
91 spowoduje nie indeksowanie *zawarto¶ci* plików na nim siê
93 - wyszukiwanie w zwyk³ych URL-ach http://
94 - wsparcie dla SSL (https://)
95 - wyszukiwanie w mirrorach (równie¿ lokalnych) odleg³ych sieci
96 - zgadywanie zestawu znaków
97 - zewnêtrzne przetwarzacze dokumentów na potrzeby indeksowania
98 - ograniczanie zapytañ do jednej nazwy hosta: <INPUT TYPE=HIDDEN
99 NAME=ul VALUE=http://www.something.com/>
100 - kategoryzacja witryny (doc/categories.txt)
101 - mo¿liwe jest uruchomienie kilku procesów indeksuj±cych na kilku
102 (teoretycznie 128) hostach i trzymanie bazy na jednym z nich,
103 reindeksacja nie powoduje wtedy niedostêpno¶ci wyszukiwarki.
104 Przeczytaj cachemode.txt
106 W odró¿nieniu od innych systemów bazuj±cych na WAIS-ie lub serwerach
107 WWW, mnogosearch mo¿e ³±czyæ kilka serwerów WWW w jednym miejscu. Typ
108 serwera nie ma znaczenia, dopóki pracuje on zgodnie z protoko³em HTTP
109 1.0. Pakiet wspó³pracuje równie¿ z domenami wirtualnymi.
112 Summary: mnogosearch library
113 Summary(pl): Biblioteka mnogosearch
117 This package contains mnogosearch library files.
119 %description lib -l pl
120 Ten pakiet zawiera pliki biblioteki mnogosearch.
123 Summary: Include files for mnogosearch
124 Summary(pl): Pliki nag³ówkowe mnogosearch
125 Group: Development/Libraries
126 Requires: %{name}-lib = %{version}-%{release}
127 %{?with_expat:Requires: expat-devel}
128 %{?with_freetds:Requires: freetds-devel}
129 %{?with_iodbc:Requires: libiodbc-devel}
130 %{?with_mysql:Requires: mysql-devel}
131 %{?with_ssl:Requires: openssl-devel}
132 %{?with_pgsql:Requires: postgresql-devel}
133 %{?with_unixodbc:Requires: unixODBC-devel}
137 This package contains mnogosearch development files.
139 %description devel -l pl
140 Pliki dla programistów u¿ywaj±cych mnogosearch.
143 Summary: mnogosearch static libraries
144 Summary(pl): Biblioteki statyczne mnogosearch
145 Group: Development/Libraries
146 Requires: %{name}-devel = %{version}-%{release}
149 This package contains static libraries of mnogosearch.
151 %description static -l pl
152 Ten pakiet zawiera statyczne biblioteki mnogosearch.
159 find . -type d -name CVS | xargs rm -rf
161 %{__aclocal} -I build/m4
165 --datadir=%{_ourdatadir} \
166 DOCBOOKSTYLE="/usr/share/sgml/docbook/dsssl-stylesheets" \
167 --enable-syslog=LOG_LOCAL6 \
168 --enable-charset-guesser \
169 %{?with_chasen:--enable-chasen} \
173 --enable-linux-pthreads \
174 --enable-news-extension \
178 --with-cgi-bin-dir=%{cgidir} \
179 --with-config-dir=%{_sysconfdir}/http/%{name} \
180 %{?with_expat:--with-expat} \
181 --with-image-dir=%{htmldir}/%{name} \
182 %{?with_freetds:--with-freetds} \
183 %{?with_iodbc:--with-iodbc} \
184 %{?with_mysql:--with-mysql} \
185 %{?with_ssl:--with-openssl} \
186 %{?with_pgsql:--with-pgsql} \
187 --with-search-dir=%{htmldir} \
188 %{?with_unixodbc:--with-unixODBC} \
191 # --with-readline (for SQL monitor) ?
192 # --wiht-extra-charsets=big5,gb2312,gbk,japanese,euc-kr,gujarati,tscii ?
196 # enable automatic Russian charset guesser :-]
197 # wy uze www.linux.ru procitacli sewodnja?
199 # --with-solid[=DIR] Include Solid support. DIR is the Solid base
200 # --with-openlink[=DIR] Include OpenLink ODBC support.
201 # --with-easysoft[=DIR] Include EasySoft ODBC support.
202 # --with-sapdb[=DIR] Include SAPDB support. DIR is the SAPDB base
203 # --with-ibase[=DIR] Include InterBase support. DIR is the InterBase
204 # --with-ctlib[=DIR] Include Ct-Lib support.
205 # --with-freetds[=DIR] Include FreeTDS Ct-Lib support.
206 # --with-oracle7[=DIR] Include Oracle 7.3 support. DIR is the Oracle
207 # --with-oracle8[=DIR] Include Oracle8 support. DIR is the Oracle
208 # --with-oracle8i[=DIR] Include Oracle8i support. DIR is the Oracle
210 # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME
213 rm -rf $RPM_BUILD_ROOT
214 install -d $RPM_BUILD_ROOT{%{_localstatedir},%{htmldir},%{cgidir},%{_sysconfdir}} \
215 $RPM_BUILD_ROOT{/etc/cron.daily,%{_infodir}}
218 DESTDIR=$RPM_BUILD_ROOT \
219 doc_FILES='$(HTML_ALL)'
221 ln -sf %{_defaultdocdir}/%{name}-%{version}/html \
222 $RPM_BUILD_ROOT%{htmldir}/mnogodoc
224 mv -f $RPM_BUILD_ROOT%{_bindir}/*.cgi \
225 $RPM_BUILD_ROOT%{cgidir}
227 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/mnogosearch-dbgen
230 cp -af doc/*.{html,css} html
232 cd $RPM_BUILD_ROOT%{_sysconfdir}
235 mv -f $f `basename $f -dist`
238 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
241 rm -rf $RPM_BUILD_ROOT
245 Please see docs (%{_defaultdocdir}/%{name}-%{version}),
246 then read how to setup db connection, and put line like this
247 "pgsql://user:password@/dbname/" into %{_sysconfdir}, then setup database
248 using "indexer -Ecreate" command.
251 %post lib -p /sbin/ldconfig
252 %postun lib -p /sbin/ldconfig
255 %defattr(644,root,root,755)
256 %doc ChangeLog README TODO html doc/samples
257 %attr(755,root,root) %{_sbindir}/*
258 %attr(755,root,root) %{_bindir}/*
259 %attr(755,root,root) %{cgidir}/*
262 %dir %{_localstatedir}
263 %attr(775,root,http) %{_localstatedir}/cache
265 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
266 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.freq
267 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.htm
268 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
269 %dir %{_sysconfdir}/langmap
270 %dir %{_sysconfdir}/stopwords
271 %dir %{_sysconfdir}/synonym
272 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*/*
273 %config(noreplace) %attr(750,root,root) /etc/cron.daily/*
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_libdir}/lib*-*.so
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_bindir}/udm-config
283 %attr(755,root,root) %{_libdir}/libmnogosearch.so
284 %attr(755,root,root) %{_libdir}/libmnogocharset.so
289 %defattr(644,root,root,755)