]> git.pld-linux.org Git - packages/wwwoffle.git/blob - wwwoffle.spec
- verbose files due to avoid packaging them twice in different packages
[packages/wwwoffle.git] / wwwoffle.spec
1 # Conditional build:
2 %bcond_without  ipv6    # without support for IPv6
3 #
4 Summary:        WWW Offline Explorer - Caching Web Proxy Server (IPv6)
5 Summary(pl.UTF-8):      Eksplorator Offline World Wide Web (IPv6)
6 Name:           wwwoffle
7 Version:        2.9e
8 Release:        3
9 Epoch:          0
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://www.gedanken.demon.co.uk/download-wwwoffle/%{name}-%{version}.tgz
13 # Source0-md5:  39f2dfcf421e0f33286f41043c3075ea
14 Source1:        %{name}.init
15 Source2:        %{name}.sysconfig
16 Patch0:         %{name}-replacement.patch
17 Patch1:         %{name}-conf_settings.patch
18 Patch2:         %{name}-namazu.patch
19 Patch3:         %{name}-hyperestraier.patch
20 URL:            http://www.gedanken.demon.co.uk/wwwoffle/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  flex
24 BuildRequires:  gnutls-devel
25 BuildRequires:  rpmbuild(macros) >= 1.268
26 BuildRequires:  zlib-devel
27 Requires(post,preun):   /sbin/chkconfig
28 Requires(postun):       /usr/sbin/groupdel
29 Requires(postun):       /usr/sbin/userdel
30 Requires(postun):       sed >= 4.0
31 Requires(pre):  /bin/id
32 Requires(pre):  /usr/bin/getgid
33 Requires(pre):  /usr/sbin/groupadd
34 Requires(pre):  /usr/sbin/useradd
35 Requires(pre):  fileutils
36 Requires(pre):  sh-utils
37 Requires:       rc-scripts >= 0.2.0
38 Provides:       group(wwwoffle)
39 Provides:       user(wwwoffle)
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %define         specflags_ia32   -fomit-frame-pointer
43
44 %description
45 A proxy HTTP/FTP server for computers with dial-up internet access.
46 - Caching of pages viewed while connected for review later.
47 - Browsing of cached pages while not connected, with the ability to
48   follow links and mark other pages for download.
49 - Downloading of specified pages non-interactively.
50 - Monitoring of pages for regular download.
51 - Multiple indices of pages stored in cache for easy selection.
52 - Interactive or command line option to select pages for fetching
53   individually or recursively.
54 - All options controlled using a simple configuration file with a web
55   page to edit it.
56
57 %description -l de.UTF-8
58 Ein (HTTP/FTP) Proxy Server für Computer mit Wählverbindungen ins
59 Internet. Folgendes wird unterstützt:
60 - Seiten werden lokal gespeichert und können jederzeit erneut
61   abgerufen werden, auch OHNE Verbindung ins Internet
62 - Seiten, die nicht lokal vorhanden sind, werden 'bestellt'.
63 - Seiten können abonniert, d.h. regelmäßig heruntergeladen, werden;
64   dies auch rekursiv.
65 - Alle lokal vorhandenen Seiten sind auf verschiedene Weisen indiziert
66   und durchsuchbar.
67 - Steuerung erfolgt per Web-Browser, Kommandozeile und einer einfachen
68   Konfigurationsdatei
69 - Jede Meldung von WWWOFFLE kann durch eigene ersetzt werden (so wurde
70   auch diese Übersetzung realisiert)
71 - WWWOFFLE unterstützt verschiedene Authentifikationsmethoden
72
73 %description -l es.UTF-8
74 Un servidor proxy HTTP/FTP para ordenadores con conexión intermitente
75 a internet.
76 - Almacenado de páginas vistas mientras se estuvo conectado para
77   releerlas más tarde.
78 - Revisión de páginas almacenadas mientras no se está conectado, con
79   la habilidad de seguir enlaces y marcar otras páginas para recogida.
80 - Recogida de páginas especificadas de forma no interactiva.
81 - Monitorizado de páginas para recogida regular.
82 - Múltiples índices de las páginas almacenadas para una selección
83   fácil.
84 - Opción para seleccionar páginas de forma interactiva o en línea de
85   comandos de manera individual o recursiva.
86 - Todas las opciones se contralan usando un simple fichero de
87   configuración con una página web para editarlo.
88
89 %description -l pl.UTF-8
90 Serwer proxy HTTP/FTP dla komputerów z dostępem do internetu typu
91 dial-up.
92 - Buforowanie stron przeglądanych podczas połączenia.
93 - Przeglądanie buforowanych stron bez potrzeby połączenia, z
94   możliwością podążania za łączami i oznaczania innych stron do
95   pobrania.
96 - Pobieranie określonych stron nieinteraktywnie.
97 - Monitorowanie stron dla regularnego pobierania.
98 - Wiele indeksów przechowywanych w buforze stron dla łatwego ich
99   wyboru.
100 - Interaktywne lub z linii komend opcje wyboru stron do pobrania
101   indywidualnie lub rekursywnie.
102 - Wszystkie opcje są kontrolowane przy użyciu prostego pliku
103   konfiguracji z możliwością edycji z poziomu strony web.
104
105 %package namazu
106 Summary:        Indexing and searching WWWOFFLE's cache by Namazu
107 Summary(pl.UTF-8):      Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Namazu
108 Group:          Networking/Daemons
109 Requires:       %{name} = %{epoch}:%{version}-%{release}
110 Requires:       mknmz-wwwoffle >= 0.7.2-2
111 Requires:       namazu-cgi >= 2.0.12-3
112
113 %description namazu
114 Indexing and searching WWWOFFLE's cache by Namazu.
115
116 %description namazu -l pl.UTF-8
117 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Namazu.
118
119 %package hyperestraier
120 Summary:        Indexing and searching WWWOFFLE's cache by Hyperestraier
121 Summary(pl.UTF-8):      Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Hyperestraier
122 Group:          Networking/Daemons
123 Requires:       %{name} = %{epoch}:%{version}-%{release}
124 Requires:       hyperestraier
125
126 %description hyperestraier
127 Indexing and searching WWWOFFLE's cache by Hyperestraier.
128
129 %description hyperestraier -l pl.UTF-8
130 Indeksowanie i przeszukiwanie cache'a WWWOFFLE przez Hyperestraier.
131
132 %prep
133 %setup -q
134 %patch0 -p1
135 %patch1 -p1
136 %patch2 -p1
137 %patch3 -p1
138
139 %build
140 cp /usr/share/automake/config.sub .
141 %{__aclocal}
142 %{__autoconf}
143 %configure2_13 \
144         --with-gnutls \
145         --with-zlib \
146         %{?with_ipv6:--with-ipv6} \
147         --with-spooldir=%{_var}/cache/wwwoffle
148 %{__make} \
149         CFLAGS="%{rpmcflags}" \
150         LDFLAGS="%{rpmldflags}"
151
152 %install
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,%{name}/{hyperestraier,namazu}} \
155         $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/{ftp,prev{out,time}{1,2,3,4,5,6,7},temp} \
156         $RPM_BUILD_ROOT%{_mandir}/fr/man5
157
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 %{__mv} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/html $RPM_BUILD_ROOT%{_datadir}/%{name}
162 ln -s %{_datadir}/%{name} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/html
163
164 # changes for wwwoffle-namazu
165 %{__mv} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/namazu/conf/*rc \
166         $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/namazu
167 %{__mv} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/namazu/scripts/wwwoffle-mknmz-* \
168         $RPM_BUILD_ROOT%{_bindir}
169
170 # changes for wwwoffle-hyperestraier
171 %{__mv} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.{conf,tmpl,top} \
172         $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hyperestraier
173 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.conf \
174         $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.conf
175 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.tmpl \
176         $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.tmpl
177 ln -sf %{_sysconfdir}/%{name}/hyperestraier/estseek.top \
178         $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.top
179 %{__mv} $RPM_BUILD_ROOT%{_var}/cache/wwwoffle/search/hyperestraier/scripts/wwwoffle-estcmd-full \
180         $RPM_BUILD_ROOT%{_bindir}
181
182 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
183 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
184
185 install doc/fr/wwwoffle.conf.man $RPM_BUILD_ROOT%{_mandir}/fr/man5/wwwoffle.conf.5
186
187 %{__rm} -rf doc-int
188 %{__cp} -a doc doc-int
189 %{__mv} doc-int/es/contrib/README doc-int/es/README-contrib
190 %{__mv} doc-int/es/testprogs/README doc-int/es/README-testprogs
191 %{__rm} -r doc-int/es/{contrib,testprogs}
192 %{__rm} doc-int/fr/wwwoffle.conf.man*
193
194 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
195
196 %triggerpostun -- %{name} < 2.7
197
198 echo Note!  Your existing cache and config file look earlier than
199 echo 2.7 version. There have been several major changes in config
200 echo file and some minor changes in cache handling. Read the file
201 echo NEWS and following at a pinch for details. All the necessary
202 echo files are available from within your documentation directory.
203
204 %triggerpostun -- %{name} < 2.8
205
206 chown wwwoffle:wwwoffle -R \
207         %{_var}/cache/wwwoffle/{ftp,http,lastout,lasttime,local,monitor,outgoing,temp,prevout[1-7],prevtime[1-7]}
208
209 %clean
210 rm -rf $RPM_BUILD_ROOT
211
212 %pretrans
213 test -h %{_var}/cache/wwwoffle/html || rm -rf %{_var}/cache/wwwoffle/html
214
215 %pre
216 %groupadd -g 119 -r -f wwwoffle
217 %useradd -o -r -u 119 -s /bin/false -g wwwoffle -c "%{name} daemon" -d /var/cache/wwwoffle wwwoffle
218
219 %post
220 /sbin/chkconfig --add %{name}
221 %service %{name} restart "%{name} daemon"
222
223 %preun
224 if [ "$1" = "0" ]; then
225         %service %{name} stop
226         /sbin/chkconfig --del %{name}
227 fi
228
229 %postun
230 if [ "$1" = "0" ]; then
231         %userremove wwwoffle
232         %groupremove wwwoffle
233 fi
234
235 %files
236 %defattr(644,root,root,755)
237 %lang(de) %doc doc-int/de
238 %lang(es) %doc doc-int/es
239 %lang(fr) %doc doc-int/fr
240 %lang(pl) %doc doc-int/pl
241 %doc doc/{ANNOUNCE,CHANGES.CONF,FAQ,NEWS,README*}
242 %doc ChangeLog* conf/upgrade-config*
243 %attr(754,root,root) /etc/rc.d/init.d/%{name}
244 %attr(755,root,root) %{_bindir}/wwwoffle
245 %attr(755,root,root) %{_bindir}/wwwoffle-fsck
246 %attr(755,root,root) %{_bindir}/wwwoffle-gunzip
247 %attr(755,root,root) %{_bindir}/wwwoffle-gzip
248 %attr(755,root,root) %{_bindir}/wwwoffle-hash
249 %attr(755,root,root) %{_bindir}/wwwoffle-ls
250 %attr(755,root,root) %{_bindir}/wwwoffle-mv
251 %attr(755,root,root) %{_bindir}/wwwoffle-read
252 %attr(755,root,root) %{_bindir}/wwwoffle-rm
253 %attr(755,root,root) %{_bindir}/wwwoffle-tools
254 %attr(755,root,root) %{_bindir}/wwwoffle-write
255 %attr(755,root,root) %{_sbindir}/wwwoffled
256 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
257 %dir %{_sysconfdir}/%{name}
258 %attr(660,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
259 %{_mandir}/man[158]/*
260 %lang(fr) %{_mandir}/fr/man5/*
261 %dir %{_datadir}/%{name}
262 %{_datadir}/%{name}/default
263 %{_datadir}/%{name}/en
264 %lang(de) %{_datadir}/%{name}/de
265 %lang(es) %{_datadir}/%{name}/es
266 %lang(fr) %{_datadir}/%{name}/fr
267 %lang(it) %{_datadir}/%{name}/it
268 %lang(nl) %{_datadir}/%{name}/nl
269 %lang(pl) %{_datadir}/%{name}/pl
270 %lang(ru) %{_datadir}/%{name}/ru
271 %defattr(664,wwwoffle,wwwoffle,775)
272 %dir %{_var}/cache/wwwoffle
273 #%%{_var}/cache/wwwoffle/[!o]*
274 %{_var}/cache/wwwoffle/html
275 %dir %{_var}/cache/wwwoffle/ftp
276 %dir %{_var}/cache/wwwoffle/http
277 %dir %{_var}/cache/wwwoffle/lastout
278 %dir %{_var}/cache/wwwoffle/lasttime
279 %dir %{_var}/cache/wwwoffle/local
280 %dir %{_var}/cache/wwwoffle/monitor
281 %dir %{_var}/cache/wwwoffle/outgoing
282 %config(missingok) %{_var}/cache/wwwoffle/outgoing/*
283 %dir %{_var}/cache/wwwoffle/prevout[1-7]
284 %dir %{_var}/cache/wwwoffle/prevtime[1-7]
285 %dir %{_var}/cache/wwwoffle/temp
286 %dir %{_var}/cache/wwwoffle/search
287 %dir %{_var}/cache/wwwoffle/search/htdig
288 %dir %{_var}/cache/wwwoffle/search/htdig/db
289 %dir %{_var}/cache/wwwoffle/search/htdig/db-lasttime
290 %dir %{_var}/cache/wwwoffle/search/htdig/tmp
291 %dir %{_var}/cache/wwwoffle/search/htdig/conf
292 %config(noreplace) %verify(not md5 mtime size) %{_var}/cache/wwwoffle/search/htdig/conf/*
293 %dir %{_var}/cache/wwwoffle/search/htdig/scripts
294 %attr(754,root,root) %{_var}/cache/wwwoffle/search/htdig/scripts/*
295
296 %dir %{_var}/cache/wwwoffle/search/mnogosearch
297 %dir %{_var}/cache/wwwoffle/search/mnogosearch/db
298 %dir %{_var}/cache/wwwoffle/search/mnogosearch/conf
299 %config(noreplace) %verify(not md5 mtime size) %{_var}/cache/wwwoffle/search/mnogosearch/conf/*
300 %dir %{_var}/cache/wwwoffle/search/mnogosearch/scripts
301 %attr(754,root,root) %{_var}/cache/wwwoffle/search/mnogosearch/scripts/*
302
303 %files hyperestraier
304 %defattr(644,root,root,755)
305 %dir %{_var}/cache/wwwoffle/search/hyperestraier
306 %dir %{_var}/cache/wwwoffle/search/hyperestraier/conf
307 %dir %{_var}/cache/wwwoffle/search/hyperestraier/db
308 %dir %{_var}/cache/wwwoffle/search/hyperestraier/scripts
309 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.conf
310 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.tmpl
311 %attr(644,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.top
312 %{_var}/cache/wwwoffle/search/hyperestraier/conf/estseek.help
313 %dir %{_sysconfdir}/%{name}/hyperestraier
314 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.conf
315 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.tmpl
316 %attr(640,root,wwwoffle) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hyperestraier/estseek.top
317 %attr(750,root,root) %{_bindir}/wwwoffle-estcmd-full
318 %attr(750,root,wwwoffle) %{_var}/cache/wwwoffle/search/hyperestraier/scripts/wwwoffle-estseek
319
320 %files namazu
321 %defattr(644,root,root,755)
322 %dir %{_sysconfdir}/%{name}/namazu
323 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/namazu/*
324 %attr(755,root,root) %{_bindir}/wwwoffle-mknmz-*
325 %dir %{_var}/cache/wwwoffle/search/namazu/scripts
326 %attr(755,root,root) %{_var}/cache/wwwoffle/search/namazu/scripts/wwwoffle-namazu
327 %dir %{_var}/cache/wwwoffle/search/namazu
328 %dir %{_var}/cache/wwwoffle/search/namazu/db
This page took 0.046554 seconds and 3 git commands to generate.