]> git.pld-linux.org Git - packages/mnogosearch.git/blobdiff - mnogosearch.spec
- 3.2.40
[packages/mnogosearch.git] / mnogosearch.spec
index ff7953ebddd5ac94a5830c02d21bf98e70047bb0..dcdb72484b8912af6a47d6a2493b5ecf3cec4257 100644 (file)
 # databases through ODBC
 %bcond_with    iodbc           # with ODBC support through iODBC
 %bcond_with    unixodbc        # with ODBC support through unixODBC
+# databases through FreeTDS
+%bcond_without freetds         # support for MS SQL through FreeTDS
 #
 Summary:       Another one web indexing and searching system for a small domain or intranet
 Summary(pl):   Kolejny system indeksowania i przeszukiwania WWW dla ma³ych domen i intranetu
 Name:          mnogosearch
-Version:       3.2.19
+Version:       3.2.40
 Release:       1
 License:       GPL v2+
 Group:         Networking/Utilities
 #Source0Download: http://www.mnogosearch.ru/download.html
 Source0:       http://www.mnogosearch.ru/Download/%{name}-%{version}.tar.gz
-# Source0-md5: 5a6b9bc48a689d333ef2ba897cb301d5
+# Source0-md5: 80515ca73111a1ac66fc496646beb39e
 Source1:       %{name}-dbgen
 Patch0:                %{name}-acfixes.patch
+Patch1:                %{name}-as_needed-fix.patch
 URL:           http://www.mnogosearch.ru/
 BuildRequires: autoconf
 BuildRequires: automake
 %{?with_chasen:BuildRequires:  chasen-devel}
 %{?with_expat:BuildRequires:   expat-devel}
+%{?with_freetds:BuildRequires: freetds-devel}
 %{?with_iodbc:BuildRequires:   libiodbc-devel}
 BuildRequires: libtool
 %{?with_mysql:BuildRequires:   mysql-devel}
@@ -35,9 +39,9 @@ BuildRequires:        libtool
 %{?with_pgsql:BuildRequires:   postgresql-devel}
 %{?with_unixodbc:BuildRequires:        unixODBC-devel}
 BuildRequires: zlib-devel
-PreReq:                webserver
-#%{?with_pgsql:PreReq:         postgresql-clients}
 Requires:      %{name}-lib = %{version}-%{release}
+#%{?with_pgsql:Requires: postgresql-clients}
+Requires:      webserver
 Obsoletes:     aspseek
 Obsoletes:     mnogosearch-stored
 Obsoletes:     udmsearch
@@ -56,17 +60,17 @@ meant to replace the need for powerful internet-wide search systems
 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
 cover the search needs for a single company, campus, or even a
 particular sub section of a web site. Features:
- - mp3 tag info
- - news searching(?)
- - http: (and ftp: - via proxy) URL schemaa
- - charset guesser
- - externel parsers
- - support for ssl (https://)
- - limiting queries to one hostname by sth like this: <INPUT
-   TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
- - it's posilble to run indexers on several diffrent (theoreticaly 128)
-   hosts, and gather information on one of them, reindexing proceses make
-   no harm to avalibility of search engine. See cachemode.txt
+- MP3 tag info
+- news searching(?)
+- http: (and ftp: - via proxy) URL schemaa
+- charset guesser
+- externel parsers
+- support for ssl (https://)
+- limiting queries to one hostname by sth like this: <INPUT
+  TYPE=HIDDEN NAME=ul VALUE=http://www.something.com/>
+- it's posilble to run indexers on several diffrent (theoreticaly 128)
+  hosts, and gather information on one of them, reindexing proceses make
+  no harm to avalibility of search engine. See cachemode.txt
 
 As opposed to some WAIS-based or web-server based search engines,
 mnogsearch can span several web servers at a site. The type of these
@@ -79,25 +83,26 @@ dla ma
 wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast
 nadaje siê do zastosowania w pojedynczej firmie, kampusie lub
 jakiejkolwiek stronie WWW. Zalety:
- - przeszukiwanie tagów mp3,
- - niusów (Server news://localhost/pl/),
- - htdb czyli baz danych udostêpnianych przez WWW/CGI. (HTDBList SELECT
-   \ concat("http://search.mnogo.ru/board/message.php?id=",id) \ FROM
-   udm.messages LIMIT 2))
- - zawarto¶ci serwerów FTP (rada za 2gr: "Index no" dla serwera FTP
-   spowoduje nie indeksowanie *zawarto¶ci* plików na nim siê znajduj±cych)
- - wyszukiwanie w zwyk³ych URL-ach http://
- - wsparcie dla SSL (https://)
- - wyszukiwanie w mirrorach (równie¿ lokalnych) odleg³ych sieci
- - zgadywanie zestawu znaków
- - zewnêtrzne przetwarzacze dokumentów na potrzeby indeksowania
- - ograniczanie zapytañ do jednej nazwy hosta: <INPUT TYPE=HIDDEN
-   NAME=ul VALUE=http://www.something.com/>
- - kategoryzacja witryny (doc/categories.txt)
- - mo¿liwe jest uruchomienie kilku procesów indeksuj±cych na kilku
-   (teoretycznie 128) hostach i trzymanie bazy na jednym z nich,
-   reindeksacja nie powoduje wtedy niedostêpno¶ci wyszukiwarki.
-   Przeczytaj cachemode.txt
+- przeszukiwanie znaczników MP3,
+- niusów (Server news://localhost/pl/),
+- htdb czyli baz danych udostêpnianych przez WWW/CGI. (HTDBList SELECT
+  \ concat("http://search.mnogo.ru/board/message.php?id=",id) \ FROM
+  udm.messages LIMIT 2))
+- zawarto¶ci serwerów FTP (rada za 2gr: "Index no" dla serwera FTP
+  spowoduje nie indeksowanie *zawarto¶ci* plików na nim siê
+  znajduj±cych)
+- wyszukiwanie w zwyk³ych URL-ach http://
+- wsparcie dla SSL (https://)
+- wyszukiwanie w mirrorach (równie¿ lokalnych) odleg³ych sieci
+- zgadywanie zestawu znaków
+- zewnêtrzne przetwarzacze dokumentów na potrzeby indeksowania
+- ograniczanie zapytañ do jednej nazwy hosta: <INPUT TYPE=HIDDEN
+  NAME=ul VALUE=http://www.something.com/>
+- kategoryzacja witryny (doc/categories.txt)
+- mo¿liwe jest uruchomienie kilku procesów indeksuj±cych na kilku
+  (teoretycznie 128) hostach i trzymanie bazy na jednym z nich,
+  reindeksacja nie powoduje wtedy niedostêpno¶ci wyszukiwarki.
+  Przeczytaj cachemode.txt
 
 W odró¿nieniu od innych systemów bazuj±cych na WAIS-ie lub serwerach
 WWW, mnogosearch mo¿e ³±czyæ kilka serwerów WWW w jednym miejscu. Typ
@@ -121,6 +126,7 @@ Summary(pl):        Pliki nag
 Group:         Development/Libraries
 Requires:      %{name}-lib = %{version}-%{release}
 %{?with_expat:Requires:        expat-devel}
+%{?with_freetds:Requires:      freetds-devel}
 %{?with_iodbc:Requires:        libiodbc-devel}
 %{?with_mysql:Requires:        mysql-devel}
 %{?with_ssl:Requires:  openssl-devel}
@@ -148,12 +154,13 @@ Ten pakiet zawiera statyczne biblioteki mnogosearch.
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
 find . -type d -name CVS | xargs rm -rf
 %{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I build/m4
 %{__autoconf}
 %{__automake}
 %configure \
@@ -174,6 +181,7 @@ find . -type d -name CVS | xargs rm -rf
        --with-config-dir=%{_sysconfdir}/http/%{name} \
        %{?with_expat:--with-expat} \
        --with-image-dir=%{htmldir}/%{name} \
+       %{?with_freetds:--with-freetds} \
        %{?with_iodbc:--with-iodbc} \
        %{?with_mysql:--with-mysql} \
        %{?with_ssl:--with-openssl} \
@@ -190,15 +198,15 @@ find . -type d -name CVS | xargs rm -rf
 #  enable automatic Russian charset guesser :-]
 # wy uze www.linux.ru procitacli sewodnja?
 
-#  --with-solid[=DIR]      Include Solid support.  DIR is the Solid base
+#  --with-solid[=DIR]    Include Solid support.  DIR is the Solid base
 #  --with-openlink[=DIR]   Include OpenLink ODBC support.
 #  --with-easysoft[=DIR]   Include EasySoft ODBC support.
-#  --with-sapdb[=DIR]      Include SAPDB support.  DIR is the SAPDB base
-#  --with-ibase[=DIR]      Include InterBase support.  DIR is the InterBase
-#  --with-ctlib[=DIR]      Include Ct-Lib support.
-#  --with-freetds[=DIR]    Include FreeTDS Ct-Lib support.
-#  --with-oracle7[=DIR]    Include Oracle 7.3 support.  DIR is the Oracle
-#  --with-oracle8[=DIR]    Include Oracle8 support.  DIR is the Oracle
+#  --with-sapdb[=DIR]    Include SAPDB support.  DIR is the SAPDB base
+#  --with-ibase[=DIR]    Include InterBase support.  DIR is the InterBase
+#  --with-ctlib[=DIR]    Include Ct-Lib support.
+#  --with-freetds[=DIR]        Include FreeTDS Ct-Lib support.
+#  --with-oracle7[=DIR]        Include Oracle 7.3 support.  DIR is the Oracle
+#  --with-oracle8[=DIR]        Include Oracle8 support.  DIR is the Oracle
 #  --with-oracle8i[=DIR]   Include Oracle8i support.  DIR is the Oracle
 #
 # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME
@@ -212,13 +220,12 @@ install -d $RPM_BUILD_ROOT{%{_localstatedir},%{htmldir},%{cgidir},%{_sysconfdir}
        DESTDIR=$RPM_BUILD_ROOT \
        doc_FILES='$(HTML_ALL)'
 
-ln -sf %{_defaultdocdir}/%{name}-%{version}/html \
-        $RPM_BUILD_ROOT%{htmldir}/mnogodoc
+ln -sf %{_docdir}/%{name}-%{version}/html \
+       $RPM_BUILD_ROOT%{htmldir}/mnogodoc
 
 mv -f $RPM_BUILD_ROOT%{_bindir}/*.cgi \
        $RPM_BUILD_ROOT%{cgidir}
 
-install -d $RPM_BUILD_ROOT/usr/src/example/mnogosearch
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/mnogosearch-dbgen
 
 mkdir html
@@ -227,7 +234,7 @@ cp -af doc/*.{html,css} html
 cd $RPM_BUILD_ROOT%{_sysconfdir}
 touch locals
 for f in *-dist ; do
-        mv -f $f `basename $f -dist`
+       mv -f $f `basename $f -dist`
 done
 
 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
@@ -237,7 +244,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 cat << EOF
-Please see docs (%{_defaultdocdir}/%{name}-%{version}),
+Please see docs (%{_docdir}/%{name}-%{version}),
 then read how to setup db connection, and put line like this
 "pgsql://user:password@/dbname/" into %{_sysconfdir}, then setup database
 using "indexer -Ecreate" command.
@@ -256,14 +263,15 @@ EOF
 %{htmldir}/mnogodoc
 %dir %{_localstatedir}
 %attr(775,root,http) %{_localstatedir}/cache
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.freq
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.htm
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.freq
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.htm
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
 %dir %{_sysconfdir}/langmap
 %dir %{_sysconfdir}/stopwords
 %dir %{_sysconfdir}/synonym
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*/*
 %config(noreplace) %attr(750,root,root) /etc/cron.daily/*
 %{_mandir}/man?/*
 
This page took 0.032153 seconds and 4 git commands to generate.