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