]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
+ %patch4 -p1
[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:        2
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}-extra1.tar.bz2
15 ########        http://stonecold.unity.ncsu.edu/software/mod_auth_kerb
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 Source8:        apache.sysconfig
20 Patch0:         %{name}-suexec.patch
21 Patch1:         apache-136-v6-19990616-PLD.diff
22 Patch2:         %{name}-htdocs.patch
23 Patch3:         %{name}-release.patch
24 Patch4:         apache-ndbm.patch
25 Copyright:      BSD-like
26 Obsoletes:      apache-extra
27 Obsoletes:      apache6
28 Provides:       httpd
29 Provides:       webserver
30 Prereq:         /sbin/chkconfig
31 URL:            http://www.apache.org/
32 BuildRoot:      /tmp/%{name}-%{version}-root
33
34 %description
35 Apache is a full featured web server that is freely available, and also
36 happens to be the most widely used. This version supports IPv6.
37
38 %description -l de
39 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
40 erhältlich und weit verbreitet ist.
41
42 %description -l fr
43 Apache est un serveur Web complet, disponible librement, et se trouve être
44 aussi le plus utilisé à travers le monde.
45
46 %description -l pl
47 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
48 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
49 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
50
51 %description -l tr
52 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
53
54 %package        suexec
55 Summary:        Apache suexec wrapper
56 Summary(pl):    Suexec wrapper do serwera www Apache
57 Group:          Networking/Development
58 Group(pl):      Sieci/Programowanie
59 Requires:       %{name} = %{version}
60
61 %description suexec
62 The suEXEC feature provides Apache users the ability to run CGI and SSI
63 programs under user IDs different from the user ID of the calling web-server.
64 Normally, when a CGI or SSI program executes, it runs as the same user 
65 who is running the web server. 
66
67 %description -l pl suexec
68 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
69 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
70 jako taki sam u¿ytkownik jak serwer WWW.
71
72 %package        devel
73 Summary:        Apache include files
74 Summary(pl):    Pliki nag³ówkowe do serwera www Apache
75 Group:          Networking/Development
76 Group(pl):      Sieci/Programowanie
77 Requires:       %{name} = %{version}
78
79 %description devel
80 Apache include files.
81
82 %description -l pl devel
83 Pliki nag³ówkowe dla serwera WWW Apache.
84
85 %package        doc
86 Summary:        Apache dokumentation
87 Summary(pl):    Dokumentacja do Apache
88 Group:          Documentation
89 Group(pl):      Dokumentacja
90 Requires:       %{name} = %{version}
91 URL:            http://www.apache.org/
92
93 %description doc
94 Documentation for apache in HTML format.
95
96 %description -l pl doc
97 Dokumentacja do Apache w formacie HTML
98
99 %prep 
100 %setup -q -n apache_%{version} -a3
101 %patch0 -p1
102 %patch1 -p1
103 %patch2 -p1
104 %patch3 -p1
105 %patch4 -p1
106
107 %build
108 OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s"\
109     ./configure \
110         --prefix=%{_prefix} \
111         --sysconfdir=/etc/httpd \
112         --datadir=/home/httpd \
113         --libexecdir=/usr/lib/apache \
114         --localstatedir=/var \
115         --runtimedir=/var/run \
116         --logfiledir=/var/log/httpd \
117         --without-confadjust \
118         --enable-module=all \
119         --enable-shared=max \
120         --proxycachedir=/var/cache/www/apache \
121         --with-perl=%{_bindir}/perl \
122         --enable-suexec \
123         --suexec-caller=http \
124         --suexec-uidmin=500 \
125         --suexec-gidmin=500 \
126         --sbindir=%{_sbindir} \
127         --includedir=%{_includedir}/apache \
128         --enable-rule=INET6 
129 make
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133
134 make install-quiet root="$RPM_BUILD_ROOT"
135
136 mv $RPM_BUILD_ROOT/home/httpd/htdocs $RPM_BUILD_ROOT/home/httpd/html
137
138 install -d $RPM_BUILD_ROOT/etc/{httpd,logrotate.d,rc.d/init.d,sysconfig}
139 install -d $RPM_BUILD_ROOT/home/httpd/{html/manual,icons,cgi-bin}
140 install -d $RPM_BUILD_ROOT/{usr/{lib/apache,sbin,share,man/man{1,8}},var/log/httpd}
141
142 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
143 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
144 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
145
146 install -d $RPM_BUILD_ROOT%{_includedir}/apache
147
148 rm -f $RPM_BUILD_ROOT/etc/httpd/*
149 rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
150
151 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
152
153 cp -a apache-extra/errordocs    $RPM_BUILD_ROOT/home/httpd/
154 cp -a apache-extra/icons/*      $RPM_BUILD_ROOT/home/httpd/icons
155 cp -a apache-extra/*.conf       $RPM_BUILD_ROOT/etc/httpd
156 cp -a apache-extra/m*           $RPM_BUILD_ROOT/etc/httpd
157
158 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
159
160 strip $RPM_BUILD_ROOT/usr/lib/apache/*
161
162 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
163         ABOUT_APACHE src/CHANGES KEYS README README.v6
164
165 %clean
166 rm -rf $RPM_BUILD_ROOT
167
168 %post
169 /sbin/chkconfig --add httpd
170 umask 137
171 touch /var/log/httpd/{access,error,agent,referer}_log
172 if [ -f /var/lock/subsys/httpd ]; then
173    /etc/rc.d/init.d/httpd restart >&2
174 fi
175
176 %preun
177 if [ $1 = 0 ]; then
178    if [ -f /var/lock/subsys/httpd ]; then
179        /etc/rc.d/init.d/httpd stop >&2
180    fi
181    /sbin/chkconfig --del httpd
182 fi
183
184 %files
185 %defattr(644,root,root,755)
186 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
187 %doc conf/mime.types README.v6.gz
188
189 %attr(751,root,root) %dir /etc/httpd
190 %attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/*
191 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
192 %attr(640,root,root) %config /etc/logrotate.d/*
193
194 %attr(755,root,root) %dir /home/httpd/html
195
196 %config(noreplace) /home/httpd/html/index.html
197
198 %attr(644,root,root) /home/httpd/html/*.gif
199 %attr(755,root,root) /etc/rc.d/init.d/*
200
201 %attr(755,root,root) /home/httpd/cgi-bin
202 %attr(755,root,root) /usr/lib/apache
203
204 %attr(755,root,root) %dir /home/httpd/icons
205 /home/httpd/icons/*.gif
206
207 %attr(755,root,root) %dir /home/httpd/errordocs
208 /home/httpd/errordocs/*
209
210 %attr(755,root,root) %{_bindir}/dbmmanage 
211 %attr(755,root,root) %{_bindir}/htdigest
212 %attr(755,root,root) %{_bindir}/htpasswd
213
214 %attr(755,root,root) %{_sbindir}/ab
215 %attr(755,root,root) %{_sbindir}/apachectl
216 %attr(755,root,root) %{_sbindir}/apxs
217 %attr(755,root,root) %{_sbindir}/httpd
218 %attr(755,root,root) %{_sbindir}/logresolve
219 %attr(755,root,root) %{_sbindir}/rotatelogs
220
221 %dir %attr(750,http,http) /var/cache/www/apache
222
223 %{_mandir}/man[18]/*
224
225 %attr(750,root,root) %dir /var/log/httpd
226 %attr(640,root,root) %ghost /var/log/httpd/*
227
228 %files suexec
229 %attr(4711,root,root) %{_sbindir}/suexec
230
231 %files devel
232 %defattr(644,root,root,755) 
233
234 %dir %{_includedir}/apache
235 %{_includedir}/apache/*
236
237 %files doc
238 %defattr(644,root,root,755)
239 %attr(-,root,root) /home/httpd/html/manual
240
241 %changelog
242 * Wed May 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
243   [1.3.6-2]
244 - misc changes for correct build,
245 - fixed apache.logrotate file,
246 - apache-htdosc.patch,
247 - added apache-release.patch,
248 - changed confdir to /etc/httpd instead /etc/httpd/conf,
249 - stripped modules & more changes,
250 - added new apache-extras packet,
251
252   by Arek Mi¶kiewicz <misiek@pld.org.pl>
253   
254 - added IPv6 support,
255 - other fixes.  
256
257
258 * Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
259   [1.3.4-6d]
260 - added LDFLAGS=-s
261 - gzipping instead bzipping
262 - cosmetic changes
263
264 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
265   [1.3.4-5d]
266 - rebuild against new kernel-2.2.0 ;)  
267
268 * Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
269   [1.3.4-4d]
270 - added errordocs.  
271
272 * Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
273   [1.3.4-3d]
274 - fixed files permission,
275 - fixed apache.init,
276 - some other changes.
277
278 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
279   [1.3.4-2d]
280 - fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
281 - compressed documentation,
282 - fixed Group(pl).
283
284 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
285   [1.3.3-1]
286 - removed making symlinks in /etc/rc.d/rc?.d and in %install also
287   removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
288   chkconfig),
289 - more simplifications in %install,
290 - added new apache-config.patch,
291 - added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
292 - added "Requires: setup >= 1.10.0" for proper install in enviroment with
293   http user/group.
294
295 * Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
296   [1.3.3-1d]
297 - up to 1.3.3
298 - changed user/group to http
299 - added patch against GNU libc-2.1, 
300   prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
301 - enabled all modules (without auth_db ....)
302 - added magic (for mod_mime_magic)
303 - rebuild spec file to minimize number of patches
304 - suEXEC in separated package
305
306 * Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
307   [1.3.2-1d]
308 - build against Tornado (GNU libc-2.1),
309 - minor changes. 
310
311 * Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
312   [1.3.2-1]
313 - up to 1.3.2
314 - reconfig to use /etc/mime.types (again)
315   orginal mime.types can be found in documentation directory
316 - changed to user/group httpd
317 - restore orginal start page
318 - documentation in separate package
319 - added "Provides:httpd"
320
321 * Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
322   [1.3.1-2]
323 - removed /home/httpd/icons/README
324 - added devel subpackage,
325 - added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
326 - removed Serial: filed,
327 - removed Packager: field (this must be placed in private ~/.rpmrc),
328 - simplification in %files and %install,
329 - /home/httpd/html/manual is now marked as %doc,
330 - added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
331 - changed permidssion on logrotate config file to 600,
332 - changed permidssion on /var/log/httpd to 700,
333 - added %ghost /var/log/httpd/*
334 - added striping modules,
335 - added patch to defeat header dos attack,
336 - start at spec file prepared by:
337   Manoj Kasichainula <manojk@io.com>.
This page took 0.055128 seconds and 4 git commands to generate.