]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
ce19c945e4a437f17b1435f40c964c9b28a8567c
[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/spool/proxy \
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/{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 mv -f 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 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man1/*,man8/*}
153 gzip -9nf ABOUT_APACHE src/CHANGES KEYS README
154
155 %clean
156 rm -rf $RPM_BUILD_ROOT
157
158 %post
159 /sbin/chkconfig --add httpd
160
161 %preun
162 if [ $1 = 0 ]; then
163    if [ -f /var/lock/subsys/httpd ]; then
164        /etc/rc.d/init.d/httpd stop >&2
165    fi
166    /sbin/chkconfig --del httpd
167 fi
168
169 %files
170 %defattr(644,root,root,755)
171 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
172 %doc conf/mime.types
173
174 %attr(750,root,root) %dir /etc/httpd
175 %attr(750,root,root) %dir /etc/httpd/conf
176 %attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/conf/*
177
178 %attr(640,root,root) %config /etc/logrotate.d/*
179 %attr(755,root,root) %dir /home/httpd/html
180
181 %config(noreplace) /home/httpd/html/index.html
182
183 %attr(644,root,root) /home/httpd/html/*.gif
184 %attr(700,root,root) %config %verify(not size mtime md5) /etc/rc.d/init.d/*
185
186 %attr(755,root,root,755) /home/httpd/cgi-bin
187 %attr(755,root,root,755) /usr/libexec/apache
188
189 %attr(755,root,root,755) %dir /home/httpd/icons
190 /home/httpd/icons/*.gif
191
192 %attr(755,root,root,755) %dir /home/httpd/errordocs
193 /home/httpd/errordocs/*
194
195 %attr(755,root,root) %{_bindir}/dbmmanage 
196 %attr(755,root,root) %{_bindir}/htdigest
197 %attr(755,root,root) %{_bindir}/htpasswd
198
199 %attr(755,root,root) %{_sbindir}/ab
200 %attr(755,root,root) %{_sbindir}/apachectl
201 %attr(755,root,root) %{_sbindir}/apxs
202 %attr(755,root,root) %{_sbindir}/httpd
203 %attr(755,root,root) %{_sbindir}/logresolve
204 %attr(755,root,root) %{_sbindir}/rotatelogs
205
206 %{_mandir}/man[18]/*
207
208 %attr(750,root,root) %dir /var/log/httpd
209 %attr(640,root,root) %config %verify(not size mtime md5) /var/log/httpd/*
210
211 %files suexec
212 %attr(4711,root,root) %{_sbindir}/suexec
213
214 %files devel
215 %defattr(644,root,root,755) 
216
217 %dir %{_includedir}/apache
218 %{_includedir}/apache/*
219
220 %files doc
221 %defattr(644,root,root,755)
222 /home/httpd/html/manual
223
224 %changelog
225 * Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
226   [1.3.4-6d]
227 - added LDFLAGS=-s
228 - gzipping instead bzipping
229 - cosmetic changes
230
231 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
232   [1.3.4-5d]
233 - rebuild against new kernel-2.2.0 ;)  
234
235 * Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
236   [1.3.4-4d]
237 - added errordocs.  
238
239 * Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
240   [1.3.4-3d]
241 - fixed files permission,
242 - fixed apache.init,
243 - some other changes.
244
245 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
246   [1.3.4-2d]
247 - fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
248 - compressed documentation,
249 - fixed Group(pl).
250
251 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
252   [1.3.3-1]
253 - removed making symlinks in /etc/rc.d/rc?.d and in %install also
254   removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
255   chkconfig),
256 - more simplifications in %install,
257 - added new apache-config.patch,
258 - added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
259 - added "Requires: setup >= 1.10.0" for proper install in enviroment with
260   http user/group.
261
262 * Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
263   [1.3.3-1d]
264 - up to 1.3.3
265 - changed user/group to http
266 - added patch against GNU libc-2.1, 
267   prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
268 - enabled all modules (without auth_db ....)
269 - added magic (for mod_mime_magic)
270 - rebuild spec file to minimize number of patches
271 - suEXEC in separated package
272
273 * Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
274   [1.3.2-1d]
275 - build against Tornado (GNU libc-2.1),
276 - minor changes. 
277
278 * Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
279   [1.3.2-1]
280 - up to 1.3.2
281 - reconfig to use /etc/mime.types (again)
282   orginal mime.types can be found in documentation directory
283 - changed to user/group httpd
284 - restore orginal start page
285 - documentation in separate package
286 - added "Provides:httpd"
287
288 * Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
289   [1.3.1-2]
290 - removed /home/httpd/icons/README
291 - added devel subpackage,
292 - added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
293 - removed Serial: filed,
294 - removed Packager: field (this must be placed in private ~/.rpmrc),
295 - simplification in %files and %install,
296 - /home/httpd/html/manual is now marked as %doc,
297 - added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
298 - changed permidssion on logrotate config file to 600,
299 - changed permidssion on /var/log/httpd to 700,
300 - added %ghost /var/log/httpd/*
301 - added striping modules.
302 - added patch to defeat header dos attack
303
304 * Sat Jul 18 1998 Manoj Kasichainula <manojk@io.com>
305   [1.3.1-1]
306   some of the changes from 1.3.0-1 (mine was done independantly, so there are
307   probably other changes)
308 - /etc/rc.d/init.d/httpd includes reload
309 - logrotate doesn't kill all httpd processes, just one. This is recommended.
310 - Doesn't uses Red Hat MIME typesm since RH mime.types doesn't include .htm,
311   and there are other differences which will probably just cause lots of
312   annoying bug reports
313 - Don't change ServerAdmin (this fake address is on purpose according
314   to the Apache Group)
315 - don't enable mod_auth_dbm, since it can supposedly conflict with
316   mod_auth_db
317
318 * Sun May 31 1998 Manoj Kasichainula <manojk@io.com>
319   [1.3b8_dev-1]
320 - Updated to 1.3b8_dev
321 - Deleted some patchwork because of improvements in APACI
322 - Added translations from RH 5.1 Apache RPM
323 - Loosened permissions to match RH 5.1 Apache RPM in /home
324 - Allow index.htm
325 - Collapsed doc package into main package (partly inspired by RPM bug)
326
327 * Fri May 22 1998 Manoj Kasichainula <manojk@io.com>
328   [1.3b7-0]
329 - Upgraded to 1.3b7
330 - Uses APACI configuration interface -- radical rewrite
331 - No more apache-extra, at least for now
332 - more descriptive Copyright field
333 - Now builds suEXEC
334 - Explicitly decided not to use built-in mime.types, but included patch to do
335   so
336
337 * Thu Apr 16 1998 Manoj Kasichainula <manojk@io.com>
338   [1.3b6-4]
339 - Upgraded to 1.3b6
340 - Split perl path patch from other config (saves a little time when upgrading
341   packages)
342 - Started the process of separating out shared modules. So far, only the proxy
343   module has been done.
344 - Yeah, I'm aware of 1.3b6-3 RPM in contrib. It has problems that I would
345   discuss with the packager if I could find out who that was.
346
347 * Thu Mar 5 1998 Manoj Kasichainula <manojk@io.com>
348
349 - Upgraded to 1.3b5
350 - Buildable by non-root
351
352 * Fri Jan 2 1998 Manoj Kasichainula <manojk@io.com>
353
354 - Includes changes from Red Hat 5.0's Apache release
355   - added patch for backslash DoS attach
356   - made the default index.html be config(noreplace) so we no longer
357     blow away other folks' index.html
358   - added chkconfig support
359   - added restart|status options to initscript
360   - renamed httpd.init to httpd
361   - New index.html
362   - Now uses Red Hat's mime.types file (I may change my mind on this)
363   - No longer keeps an agent and referer log.
364   - Much more
365 - Upgraded to 1.3b3
366 - Fixed sillyness in /etc/rc.d/init.d/httpd
367 - Now require recent version of initscripts with killproc fix.
368 - Changed logrotate script
369 - Undid Red Hat's ServerAdmin change (Red Hat's choice results in a
370   seemingly valid but nonsensical address)
371 - suexec moved to /home/httpd/sbin/suexec
372 - Replaced a reference to apache_pb.gif to /icons/apache_pb.gif, to save a
373   bit of space)
374
375 * Thu Oct 16 1997 Manoj Kasichainula <manojk@io.com>
376 - Upgraded to 1.3b2
377 - MaxRequestsPerChild upped to 10000
378 - apache-suexec absorbed into apache
379 - Uncommented Serial: line. Now, it requires a recent version of RPM
This page took 0.052603 seconds and 2 git commands to generate.