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