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ý
9 Group: Networking/Daemons
10 Group(pl): Sieciowe/Serwery
11 Source0: ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
13 Source2: %{name}.logrotate
14 Source3: %{name}-extra1.tar.bz2
15 Source6: apache_1.3.6.tar.gz.asc
16 Source7: apache_1.3.6.tar.gz.md5
17 Source8: apache.sysconfig
18 Patch0: %{name}-suexec.patch
19 Patch1: apache-136-v6-19990616-PLD.diff
20 Patch2: %{name}-htdocs.patch
21 Patch3: %{name}-release.patch
22 Patch4: apache-ndbm.patch
26 Prereq: /sbin/chkconfig
27 Prereq: /usr/sbin/useradd
28 URL: http://www.apache.org/
29 BuildRoot: /tmp/%{name}-%{version}-root
30 Obsoletes: apache-extra
33 %define _sysconfdir /etc/httpd
34 %define _includedir %{_prefix}/include/apache
35 %define _datadir /home/httpd
36 %define _libexecdir %{_prefix}/lib/apache
39 Apache is a full featured web server that is freely available, and also
40 happens to be the most widely used. This version supports IPv6.
43 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
44 erhältlich und weit verbreitet ist.
47 Apache est un serveur Web complet, disponible librement, et se trouve être
48 aussi le plus utilisé à travers le monde.
51 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz
52 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
53 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
56 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
59 Summary: Apache suexec wrapper
60 Summary(pl): Suexec wrapper do serwera www Apache
61 Group: Networking/Development
62 Group(pl): Sieciowe/Programowanie
63 Requires: %{name} = %{version}
66 The suEXEC feature provides Apache users the ability to run CGI and SSI
67 programs under user IDs different from the user ID of the calling web-server.
68 Normally, when a CGI or SSI program executes, it runs as the same user
69 who is running the web server.
71 %description -l pl suexec
72 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
73 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
74 jako taki sam u¿ytkownik jak serwer WWW.
77 Summary: Apache include files
78 Summary(pl): Pliki nag³ówkowe do serwera www Apache
79 Group: Networking/Development
80 Group(pl): Sieciowe/Programowanie
81 Requires: %{name} = %{version}
86 %description -l pl devel
87 Pliki nag³ówkowe dla serwera WWW Apache.
90 Summary: Apache dokumentation
91 Summary(pl): Dokumentacja do Apache
93 Group(pl): Dokumentacja
94 Requires: %{name} = %{version}
97 Documentation for apache in HTML format.
99 %description -l pl doc
100 Dokumentacja do Apache w formacie HTML.
103 %setup -q -n apache_%{version} -a3
111 OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s" \
113 --prefix=%{_prefix} \
114 --sysconfdir=%{_sysconfdir} \
115 --includedir=%{_includedir} \
116 --sbindir=%{_sbindir} \
117 --libexecdir=%{_libexecdir} \
118 --datadir=%{_datadir} \
119 --localstatedir=/var \
120 --runtimedir=/var/run \
121 --logfiledir=/var/log/httpd \
122 --without-confadjust \
123 --enable-module=all \
124 --enable-shared=max \
125 --proxycachedir=/var/cache/www/apache \
126 --with-perl=%{_bindir}/perl \
128 --suexec-caller=http \
129 --suexec-uidmin=500 \
130 --suexec-gidmin=500 \
135 rm -rf $RPM_BUILD_ROOT
137 make install-quiet root="$RPM_BUILD_ROOT"
139 mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html
141 install -d $RPM_BUILD_ROOT/etc/{httpd,logrotate.d,rc.d/init.d,sysconfig}
142 install -d $RPM_BUILD_ROOT%{_datadir}/{html/manual,icons,cgi-bin}
143 install -d $RPM_BUILD_ROOT/{usr/{lib/apache,sbin,share,man/man{1,8}},var/log/httpd}
145 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
146 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
147 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
149 install -d $RPM_BUILD_ROOT%{_includedir}
151 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
152 rm -f $RPM_BUILD_ROOT%{_datadir}/html/manual/expand.pl
154 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
156 cp -a apache-extra/errordocs $RPM_BUILD_ROOT%{_datadir}/
157 cp -a apache-extra/icons/* $RPM_BUILD_ROOT%{_datadir}/icons
158 cp -a apache-extra/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
159 cp -a apache-extra/m* $RPM_BUILD_ROOT%{_sysconfdir}
161 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
163 strip $RPM_BUILD_ROOT%{_libexecdir}/*
165 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
166 ABOUT_APACHE src/CHANGES KEYS README README.v6
169 if [ -n `id -g http` ]; then
170 if [ "`id -g http`" != "51" ]; then
171 echo "Warning: group http haven't gid=51. Corect this before install apache"
175 /usr/sbin/groupadd -u 51 -r -f httpd
177 if [ -n `id -u http` ]; then
178 if [ "`id -g http`" != "51" ]; then
179 echo "Warning: user http haven't gid=51. Corect this before install apache"
183 /usr/sbin/useradd -u 51 -r -f httpd
188 /sbin/chkconfig --add httpd
190 touch /var/log/httpd/{access,error,agent,referer}_log
191 if [ -f /var/lock/subsys/httpd ]; then
192 /etc/rc.d/init.d/httpd restart 1>&2
196 if [ "$1" = "0" ]; then
197 if [ -f /var/lock/subsys/httpd ]; then
198 /etc/rc.d/init.d/httpd stop 1>&2
200 /sbin/chkconfig --del httpd
204 rm -rf $RPM_BUILD_ROOT
207 %defattr(644,root,root,755)
208 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
209 %doc conf/mime.types README.v6.gz
211 %attr(754,root,root) /etc/rc.d/init.d/*
213 %attr(751,root,root) %dir %{_sysconfdir}
214 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/*
215 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
216 %attr(640,root,root) %config /etc/logrotate.d/*
218 %attr(755,root,root) %dir %{_datadir}/html
219 %config(noreplace) %{_datadir}/html/index.html
220 %{_datadir}/html/*.gif
221 %{_datadir}/errordocs
222 %dir %{_datadir}/icons
223 %{_datadir}/icons/*.gif
224 %attr(755,root,root) %{_datadir}/cgi-bin
227 %attr(755,root,root) %{_libexecdir}/*
229 %attr(755,root,root) %{_bindir}/dbmmanage
230 %attr(755,root,root) %{_bindir}/htdigest
231 %attr(755,root,root) %{_bindir}/htpasswd
233 %attr(755,root,root) %{_sbindir}/ab
234 %attr(755,root,root) %{_sbindir}/apachectl
235 %attr(755,root,root) %{_sbindir}/apxs
236 %attr(755,root,root) %{_sbindir}/httpd
237 %attr(755,root,root) %{_sbindir}/logresolve
238 %attr(755,root,root) %{_sbindir}/rotatelogs
240 %dir %attr(750,http,http) /var/cache/www/apache
244 %attr(750,root,root) %dir /var/log/httpd
245 %attr(640,root,root) %ghost /var/log/httpd/*
248 %attr(4755,root,root) %{_sbindir}/suexec
251 %defattr(644,root,root,755)
256 %defattr(644,root,root,755)
257 %attr(-,root,root) %{_datadir}/html/manual