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