]> git.pld-linux.org Git - packages/mnogosearch.git/blob - mnogosearch.spec
- DESTDIR patch.
[packages/mnogosearch.git] / mnogosearch.spec
1 Summary:        A another one web indexing and searching system for a small domain or intranet
2 Summary(pl):    Kolejny System indeksowania i przeszukiwania www dla ma³ych domen i intranetu
3 Name:           mnogosearch
4 Version:        3.1.16
5 Release:        1
6 License:        GPL
7 Group:          Networking/Utilities
8 Group(de):      Netzwerkwesen/Werkzeuge
9 Group(pl):      Sieciowe/Narzêdzia
10 Source0:        http://www.mnogosearch.ru/download/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-DESTDIR.patch
12 URL:            http://www.mnogosearch.ru/
13 BuildRequires:  postgresql-devel
14 PreReq:         webserver
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _sysconfdir     /etc/http/%{name}
18 %define         _localstatedir  /var/lib/mnogosearch
19
20 %description
21 The mnogosearch system is a complete world wide web indexing and
22 searching system for a small domain or intranet. This system is not
23 meant to replace the need for powerful internet-wide search systems
24 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
25 cover the search needs for a single company, campus, or even a
26 particular sub section of a web site. Features:
27  - mp3 tag info
28  - news searching(?)
29  - http: (and ftp: - via proxy) URL schemaa
30  - charset guesser
31  - externel parsers
32
33 As opposed to some WAIS-based or web-server based search engines,
34 ht://Dig can span several web servers at a site. The type of these
35 different web servers doesn't matter as long as they understand the
36 HTTP 1.0 protocol.
37
38 %description -l pl
39 Mnogosearch jest kompletnym systemem indeksuj±cym i przeszukuj±cym www
40 dla ma³ych domen oraz intranetu. System nie zosta³ opracowany jako
41 wielki system typu Lycos, Infoseek WebCrawler i AltaVista. Natomiast
42 nadeje siê do zastosowania w pojedyñczej firmie, kampusie lub
43 jakiejkolwiek stronie www.
44
45 W odró¿nieniu do innych bazuj±cych na WAIS-sie lub serwerch www
46 systemach, mnogosearch mo¿e ³±czyæ kilka serwerów www w jednym
47 miejscu. Typ serwera nie ma znaczenia, dopóki pracuje on zgodnie z
48 protoko³em HTTP 1.0
49
50 %package devel
51 Summary:        Include files and libraries for htdig
52 Summary(pl):    Pliki nag³ówkowe dla htdig
53 Group:          Development/Libraries
54 Group(de):      Entwicklung/Libraries
55 Group(fr):      Development/Librairies
56 Group(pl):      Programowanie/Biblioteki
57 Requires:       %{name} = %{version}
58
59 %description devel
60 The ht://Dig 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
65 particular sub section of a web site.
66
67 As opposed to some WAIS-based or web-server based search engines,
68 ht://Dig can span several web servers at a site. The type of these
69 different web servers doesn't matter as long as they understand the
70 HTTP 1.0 protocol.
71
72 This package contains devlopment files.
73
74 %package pgsql
75 Summary:        mnogosearch w/ pgsql storage-support 
76 Summary(pl):    mnogosearch z pgsqlem jako metod± przechowywania danych
77 Group:          Networking/Utilities
78 Group(de):      Netzwerkwesen/Werkzeuge
79 Group(pl):      Sieciowe/Narzêdzia
80 Requires:       %{name} = %{version}
81
82 %description pgsql
83 The ht://Dig system is a complete world wide web indexing and
84 searching system for a small domain or intranet. This system is not
85 meant to replace the need for powerful internet-wide search systems
86 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
87 cover the search needs for a single company, campus, or even a
88 particular sub section of a web site.
89
90 As opposed to some WAIS-based or web-server based search engines,
91 ht://Dig can span several web servers at a site. The type of these
92 different web servers doesn't matter as long as they understand the
93 HTTP 1.0 protocol.
94
95 This package contains pgsql storage support.
96
97 %package static
98 Summary:        htdig static libraries
99 Summary(pl):    Biblioteki statyczne htdig
100 Group:          Development/Libraries
101 Group(de):      Entwicklung/Libraries
102 Group(fr):      Development/Librairies
103 Group(pl):      Programowanie/Biblioteki
104 Requires:       %{name}-devel = %{version}
105
106 %description static
107 The ht://Dig system is a complete world wide web indexing and
108 searching system for a small domain or intranet. This system is not
109 meant to replace the need for powerful internet-wide search systems
110 like Lycos, Infoseek, Webcrawler and AltaVista. Instead it is meant to
111 cover the search needs for a single company, campus, or even a
112 particular sub section of a web site. As opposed to some WAIS-based or
113 web-server based search engines, ht://Dig can span several web servers
114 at a site. The type of these different web servers doesn't matter as
115 long as they understand the HTTP 1.0 protocol. This package contains
116 static libraries of htdig.
117
118 %prep
119 %setup -q
120 %patch0 -p1
121
122 %build
123 libtoolize --copy --force
124 aclocal
125 autoconf
126 automake -a -c
127 %configure \
128         --enable-syslog      \
129         --enable-syslog=LOG_LOCAL6 \
130         --with-image-dir=/home/httpd/html/%{name} \
131         --with-cgi-bin-dir=/home/httpd/cgi-bin \
132         --with-search-dir=/home/httpd/html \
133         --with-config-dir=%{_sysconfdir}/http/%{name} \
134         --with-pgsql \
135         --with-openssl \
136         --enable-linux-pthreads \
137         --enable-charset-guesser \
138         --enable-news-extension \
139         --enable-fast-tag \
140         --enable-fast-cat \
141         --enable-fast-site \
142         --enable-phrase         
143
144 #  enable automatic Russian charset guesser :-]
145 # wy uze www.linux.ru procitacli sewodnja?
146
147 #  --with-msql[=DIR]       Include mSQL support.  DIR is the mSQL base
148 #  --with-iodbc[=DIR]      Include iODBC support.  DIR is the iODBC base
149 #  --with-unixODBC[=DIR]   Include unixODBC support.  DIR is the unixODBC base
150 #  --with-solid[=DIR]      Include Solid support.  DIR is the Solid base
151 #  --with-openlink[=DIR]   Include OpenLink ODBC support. 
152 #  --with-easysoft[=DIR]   Include EasySoft ODBC support. 
153 #  --with-sapdb[=DIR]      Include SAPDB support.  DIR is the SAPDB base
154 #  --with-ibase[=DIR]      Include InterBase support.  DIR is the InterBase
155 #  --with-oracle7[=DIR]    Include Oracle 7.3 support.  DIR is the Oracle
156 #  --with-oracle8[=DIR]    Include Oracle8 support.  DIR is the Oracle
157 #  --with-oracle8i[=DIR]   Include Oracle8i support.  DIR is the Oracle
158 #       --with-buildin \
159 #       --with-mysql \
160 #       
161 # FIXME: add selection of storage method, spliting into %{name}-common & %{name}-$DB_NAME
162
163 %{__make}
164
165 %install
166 rm -rf $RPM_BUILD_ROOT
167 install -d $RPM_BUILD_ROOT{/var/lib/mnogosearch,/etc/cron.daily} \
168         $RPM_BUILD_ROOT/home/httpd/html/%{name}
169
170 %{__make} DESTDIR=$RPM_BUILD_ROOT install
171
172 ln -sf ../..%{_bindir}/rundig \
173         $RPM_BUILD_ROOT/etc/cron.daily/{%name}-dbgen
174
175 ln -sf ../../../..%{_defaultdocdir}/%{name}-%{version} \
176         $RPM_BUILD_ROOT/home/httpd/html/%{name}/mnogodoc
177
178 install etc/search.htm-dist $RPM_BUILD_ROOT/home/httpd/html/search.html
179
180 ln -sf  $RPM_BUILD_ROOT%{_bindir}/search.cgi $RPM_BUILD_ROOT/home/httpd/cgi-bin/search.cgi
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post
186 # Only run this if installing for the first time
187 #if [ "$1" = 1 ]; then
188 #       for i in `grep '^ServerName' /etc/httpd/httpd.conf | sort -u | awk '{print $2}'`; do echo -n http://$i/; echo -n " "; done > /tmp/htdig.tmp
189 #       SERVERNAMES="`cat /tmp/htdig.tmp`"
190 #       [ -z "$SERVERNAMES" ] && SERVERNAMES="`hostname -f`"
191 #       [ -z "$SERVERNAMES" ] && SERVERNAMES="localhost"
192 #       SERVERNAME=`grep '^ServerName' /etc/httpd/httpd.conf | uniq -d | awk '{print $2}'`
193 #       grep -v -e local_urls -e local_user_urls -e start_url /etc/htdig/htdig.conf > /tmp/htdig.tmp
194 #       mv -f /tmp/htdig.tmp /etc/htdig/htdig.conf
195 #       echo "start_url:$SERVERNAMES
196 #local_urls:            $SERVERNAMES
197 #local_user_urls:       http://$SERVERNAME/=/home/,/public_html/" >> /etc/htdig/htdig.conf
198 #
199 #fi
200
201 %files
202 %defattr(644,root,root,755)
203 %doc COPYING README doc/*
204 %dir /var/lib/%{name}
205 # maybe user== nobody ?
206 %attr (755,http,http) /home/httpd/cgi-bin/*
207 %attr (755,root,root) %{_bindir}/*
208 %attr (755,root,root) %{_libdir}/%{name}/*so
209 %attr (755,root,root) %{_libdir}/%{name}/*la
210 /home/httpd/html/%{name}/*
211 %{_datadir}/%{name}/*
212 %config(noreplace) %{_sysconfdir}/html/%{name}/*
213 %config(missingok noreplace) %verify(not size mtime md5) /home/httpd/html/search.html
214 #%config(missingok) %{_sysconfdir}/cron.daily/htdig-dbgen
215
216 #%files devel
217 #%defattr(644,root,root,755)
218 #%{_includedir}/%{name}/*
219
220 #%files static
221 #%defattr(644,root,root,755)
222 #%{_libdir}/%{name}/*.a
This page took 0.036683 seconds and 3 git commands to generate.