]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
new apache ready for ipv6 - but untested
[packages/apache.git] / apache.spec
1 Summary:        HTTP server daemon to provide WWW services with IPv6 support
2 Summary(de):    Leading World Wide Web-Server
3 Summary(fr):    Serveur Web leader du marché
4 Summary(pl):    Serwer WWW (World Wide Web) ze wsparciem dla IPv6
5 Summary(tr):    Lider WWW tarayýcý
6 Name:           apache
7 Version:        1.3.6
8 Release:        1
9 Group:          Networking/Daemons
10 Group(pl):      Sieci/Demony
11 Source0:        ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
12 Source1:        apache.init
13 Source2:        %{name}.logrotate
14 Source3:        %{name}-extra.tar.bz2
15 ########        http://stonecold.unity.ncsu.edu/software/mod_auth_kerb/index.html
16 Source5:        mod_auth_kerb-4.3.tar.gz
17 Source6:        apache_1.3.6.tar.gz.asc
18 Source7:        apache_1.3.6.tar.gz.md5
19 Patch0:         %{name}-suexec.patch
20 Patch1:         %{name}_1.3.6.ipv6.patch
21 Copyright:      BSD-like
22 Obsoletes:      apache-extra
23 Obsoletes:      apache6
24 Provides:       httpd
25 Provides:       webserver
26 Prereq:         /sbin/chkconfig
27 URL:            http://www.apache.org/
28 BuildRoot:      /tmp/%{name}-%{version}-root
29
30 %description
31 Apache is a full featured web server that is freely available, and also
32 happens to be the most widely used. This version supports IPv6.
33
34 %description -l de
35 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
36 erhältlich und weit verbreitet ist.
37
38 %description -l fr
39 Apache est un serveur Web complet, disponible librement, et se trouve être
40 aussi le plus utilisé à travers le monde.
41
42 %description -l pl
43 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
44 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
45 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
46
47 %description -l tr
48 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
49
50 %package suexec
51 Summary:        Apache suexec wrapper
52 Summary(pl):    Suexec wrapper do serwera www Apache
53 Group:          Networking/Development
54 Group(pl):      Sieci/Programowanie
55 Requires:       %{name} = %{version}
56
57 %description suexec
58 The suEXEC feature provides Apache users the ability to run CGI and SSI
59 programs under user IDs different from the user ID of the calling web-server.
60 Normally, when a CGI or SSI program executes, it runs as the same user 
61 who is running the web server. 
62
63 %description -l pl suexec
64 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
65 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
66 jako taki sam u¿ytkownik jak serwer WWW.
67
68 %package devel
69 Summary:        Apache include files
70 Summary(pl):    Pliki nag³ówkowe do serwera www Apache
71 Group:          Networking/Development
72 Group(pl):      Sieci/Programowanie
73 Requires:       %{name} = %{version}
74
75 %description devel
76 Apache include files.
77
78 %description -l pl devel
79 Pliki nag³ówkowe dla serwera WWW Apache.
80
81 %package doc
82 Summary:        Apache dokumentation
83 Summary(pl):    Dokumentacja do Apache
84 Group:          Documentation
85 Group(pl):      Dokumentacja
86 Requires:       %{name} = %{version}
87 URL:            http://www.apache.org/
88
89 %description doc
90 Documentation for apache in HTML format.
91
92 %description -l pl doc
93 Dokumentacja do Apache w formacie HTML
94
95 %prep 
96 %setup -q -n apache_%{version} -a3
97 %patch0 -p1
98 %patch1 -p1
99
100 %build
101 OPTIM=$RPM_OPT_FLAGS LDFLAGS=-s\
102     ./configure \
103         --prefix=/usr \
104         --sysconfdir=/etc/httpd/conf \
105         --datadir=/home/httpd \
106         --libexecdir=/usr/libexec/apache \
107         --localstatedir=/var \
108         --runtimedir=/var/run \
109         --logfiledir=/var/log/httpd \
110         --without-confadjust \
111         --enable-module=all \
112         --enable-shared=max \
113         --disable-module=auth_db \
114         --proxycachedir=/var/cache/www/apache \
115         --with-perl=%{_bindir}/perl \
116         --enable-suexec \
117         --suexec-caller=http \
118         --suexec-uidmin=500 \
119         --suexec-gidmin=500 \
120         --sbindir=%{_sbindir} \
121         --includedir=%{_includedir}/apache \
122         --enable-rule=INET6
123
124 make
125
126 %install
127 rm -rf $RPM_BUILD_ROOT
128
129 make install-quiet root="$RPM_BUILD_ROOT"
130
131 mv $RPM_BUILD_ROOT/home/httpd/htdocs $RPM_BUILD_ROOT/home/httpd/html
132
133 install -d $RPM_BUILD_ROOT/etc/{httpd/conf,logrotate.d,rc.d/init.d}
134 install -d $RPM_BUILD_ROOT/home/httpd/{html/manual,icons,cgi-bin}
135 install -d $RPM_BUILD_ROOT/{usr/{share,lib/apache,sbin,man/man{1,8}},var/log/httpd}
136
137 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
138 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
139
140 install -d $RPM_BUILD_ROOT%{_includedir}/apache
141
142 rm -f $RPM_BUILD_ROOT/etc/httpd/conf/*
143 rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
144
145 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error}_log
146
147 cp -a apache-extra/errordocs    $RPM_BUILD_ROOT/home/httpd/
148 cp -a apache-extra/icons/*      $RPM_BUILD_ROOT/home/httpd/icons
149 cp -a apache-extra/*.conf       $RPM_BUILD_ROOT/etc/httpd/conf
150 cp -a apache-extra/m*           $RPM_BUILD_ROOT/etc/httpd/conf
151
152 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
153
154 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man1/*,man8/*}
155 gzip -9nf ABOUT_APACHE src/CHANGES KEYS README
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %post
161 /sbin/chkconfig --add httpd
162
163 %preun
164 if [ $1 = 0 ]; then
165    if [ -f /var/lock/subsys/httpd ]; then
166        /etc/rc.d/init.d/httpd stop >&2
167    fi
168    /sbin/chkconfig --del httpd
169 fi
170
171 %files
172 %defattr(644,root,root,755)
173 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
174 %doc conf/mime.types
175
176 %attr(750,root,root) %dir /etc/httpd
177 %attr(750,root,root) %dir /etc/httpd/conf
178 %attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/conf/*
179
180 %attr(640,root,root) %config /etc/logrotate.d/*
181 %attr(755,root,root) %dir /home/httpd/html
182
183 %config(noreplace) /home/httpd/html/index.html
184
185 %attr(644,root,root) /home/httpd/html/*.gif
186 %attr(700,root,root) %config %verify(not size mtime md5) /etc/rc.d/init.d/*
187
188 %attr(755,root,root) /home/httpd/cgi-bin
189 %attr(755,root,root) /usr/libexec/apache
190
191 %attr(755,root,root) %dir /home/httpd/icons
192 /home/httpd/icons/*.gif
193
194 %attr(755,root,root) %dir /home/httpd/errordocs
195 /home/httpd/errordocs/*
196
197 %attr(755,root,root) %{_bindir}/dbmmanage 
198 %attr(755,root,root) %{_bindir}/htdigest
199 %attr(755,root,root) %{_bindir}/htpasswd
200
201 %attr(755,root,root) %{_sbindir}/ab
202 %attr(755,root,root) %{_sbindir}/apachectl
203 %attr(755,root,root) %{_sbindir}/apxs
204 %attr(755,root,root) %{_sbindir}/httpd
205 %attr(755,root,root) %{_sbindir}/logresolve
206 %attr(755,root,root) %{_sbindir}/rotatelogs
207 %dir %attr(750,http,http) /var/cache/www/apache
208
209 %{_mandir}/man[18]/*
210
211 %attr(750,root,root) %dir /var/log/httpd
212 %attr(640,root,root) %config %verify(not size mtime md5) /var/log/httpd/*
213
214 %files suexec
215 %attr(4711,root,root) %{_sbindir}/suexec
216
217 %files devel
218 %defattr(644,root,root,755) 
219
220 %dir %{_includedir}/apache
221 %{_includedir}/apache/*
222
223 %files doc
224 %defattr(644,root,root,755)
225 /home/httpd/html/manual
226
227 %changelog
228 * Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
229   [1.3.4-6d]
230 - added LDFLAGS=-s
231 - gzipping instead bzipping
232 - cosmetic changes
233
234 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
235   [1.3.4-5d]
236 - rebuild against new kernel-2.2.0 ;)  
237
238 * Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
239   [1.3.4-4d]
240 - added errordocs.  
241
242 * Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
243   [1.3.4-3d]
244 - fixed files permission,
245 - fixed apache.init,
246 - some other changes.
247
248 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
249   [1.3.4-2d]
250 - fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
251 - compressed documentation,
252 - fixed Group(pl).
253
254 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
255   [1.3.3-1]
256 - removed making symlinks in /etc/rc.d/rc?.d and in %install also
257   removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
258   chkconfig),
259 - more simplifications in %install,
260 - added new apache-config.patch,
261 - added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
262 - added "Requires: setup >= 1.10.0" for proper install in enviroment with
263   http user/group.
264
265 * Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
266   [1.3.3-1d]
267 - up to 1.3.3
268 - changed user/group to http
269 - added patch against GNU libc-2.1, 
270   prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
271 - enabled all modules (without auth_db ....)
272 - added magic (for mod_mime_magic)
273 - rebuild spec file to minimize number of patches
274 - suEXEC in separated package
275
276 * Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
277   [1.3.2-1d]
278 - build against Tornado (GNU libc-2.1),
279 - minor changes. 
280
281 * Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
282   [1.3.2-1]
283 - up to 1.3.2
284 - reconfig to use /etc/mime.types (again)
285   orginal mime.types can be found in documentation directory
286 - changed to user/group httpd
287 - restore orginal start page
288 - documentation in separate package
289 - added "Provides:httpd"
290
291 * Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
292   [1.3.1-2]
293 - removed /home/httpd/icons/README
294 - added devel subpackage,
295 - added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
296 - removed Serial: filed,
297 - removed Packager: field (this must be placed in private ~/.rpmrc),
298 - simplification in %files and %install,
299 - /home/httpd/html/manual is now marked as %doc,
300 - added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
301 - changed permidssion on logrotate config file to 600,
302 - changed permidssion on /var/log/httpd to 700,
303 - added %ghost /var/log/httpd/*
304 - added striping modules.
305 - added patch to defeat header dos attack
306
307 * Sat Jul 18 1998 Manoj Kasichainula <manojk@io.com>
308   [1.3.1-1]
309   some of the changes from 1.3.0-1 (mine was done independantly, so there are
310   probably other changes)
311 - /etc/rc.d/init.d/httpd includes reload
312 - logrotate doesn't kill all httpd processes, just one. This is recommended.
313 - Doesn't uses Red Hat MIME typesm since RH mime.types doesn't include .htm,
314   and there are other differences which will probably just cause lots of
315   annoying bug reports
316 - Don't change ServerAdmin (this fake address is on purpose according
317   to the Apache Group)
318 - don't enable mod_auth_dbm, since it can supposedly conflict with
319   mod_auth_db
320
321 * Sun May 31 1998 Manoj Kasichainula <manojk@io.com>
322   [1.3b8_dev-1]
323 - Updated to 1.3b8_dev
324 - Deleted some patchwork because of improvements in APACI
325 - Added translations from RH 5.1 Apache RPM
326 - Loosened permissions to match RH 5.1 Apache RPM in /home
327 - Allow index.htm
328 - Collapsed doc package into main package (partly inspired by RPM bug)
329
330 * Fri May 22 1998 Manoj Kasichainula <manojk@io.com>
331   [1.3b7-0]
332 - Upgraded to 1.3b7
333 - Uses APACI configuration interface -- radical rewrite
334 - No more apache-extra, at least for now
335 - more descriptive Copyright field
336 - Now builds suEXEC
337 - Explicitly decided not to use built-in mime.types, but included patch to do
338   so
339
340 * Thu Apr 16 1998 Manoj Kasichainula <manojk@io.com>
341   [1.3b6-4]
342 - Upgraded to 1.3b6
343 - Split perl path patch from other config (saves a little time when upgrading
344   packages)
345 - Started the process of separating out shared modules. So far, only the proxy
346   module has been done.
347 - Yeah, I'm aware of 1.3b6-3 RPM in contrib. It has problems that I would
348   discuss with the packager if I could find out who that was.
349
350 * Thu Mar 5 1998 Manoj Kasichainula <manojk@io.com>
351
352 - Upgraded to 1.3b5
353 - Buildable by non-root
354
355 * Fri Jan 2 1998 Manoj Kasichainula <manojk@io.com>
356
357 - Includes changes from Red Hat 5.0's Apache release
358   - added patch for backslash DoS attach
359   - made the default index.html be config(noreplace) so we no longer
360     blow away other folks' index.html
361   - added chkconfig support
362   - added restart|status options to initscript
363   - renamed httpd.init to httpd
364   - New index.html
365   - Now uses Red Hat's mime.types file (I may change my mind on this)
366   - No longer keeps an agent and referer log.
367   - Much more
368 - Upgraded to 1.3b3
369 - Fixed sillyness in /etc/rc.d/init.d/httpd
370 - Now require recent version of initscripts with killproc fix.
371 - Changed logrotate script
372 - Undid Red Hat's ServerAdmin change (Red Hat's choice results in a
373   seemingly valid but nonsensical address)
374 - suexec moved to /home/httpd/sbin/suexec
375 - Replaced a reference to apache_pb.gif to /icons/apache_pb.gif, to save a
376   bit of space)
377
378 * Thu Oct 16 1997 Manoj Kasichainula <manojk@io.com>
379 - Upgraded to 1.3b2
380 - MaxRequestsPerChild upped to 10000
381 - apache-suexec absorbed into apache
382 - Uncommented Serial: line. Now, it requires a recent version of RPM
This page took 0.059581 seconds and 3 git commands to generate.