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: apache.logrotate
14 Source3: apache-extra1.tar.bz2
15 Source8: apache.sysconfig
16 Patch0: apache-suexec.patch
17 Patch1: apache-1.3.9-ipv6-23081999.patch.gz
18 Patch2: apache-htdocs.patch
19 Patch3: apache-release.patch
20 Patch4: apache-pld.patch
24 Prereq: /sbin/chkconfig
25 Prereq: /usr/sbin/useradd
26 URL: http://www.apache.org/
27 BuildRoot: /tmp/%{name}-%{version}-root
28 Obsoletes: apache-extra
31 %define _sysconfdir /etc/httpd
32 %define _includedir %{_prefix}/include/apache
33 %define _datadir /home/httpd
34 %define _libexecdir %{_prefix}/lib/apache
37 Apache is a full featured web server that is freely available, and also
38 happens to be the most widely used. This version supports IPv6.
41 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
42 erhältlich und weit verbreitet ist.
45 Apache est un serveur Web complet, disponible librement, et se trouve être
46 aussi le plus utilisé à travers le monde.
49 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz
50 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
51 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
54 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
57 Summary: Apache suexec wrapper
58 Summary(pl): Suexec wrapper do serwera www Apache
59 Group: Networking/Development
60 Group(pl): Sieciowe/Programowanie
61 Requires: %{name} = %{version}
64 The suEXEC feature provides Apache users the ability to run CGI and SSI
65 programs under user IDs different from the user ID of the calling web-server.
66 Normally, when a CGI or SSI program executes, it runs as the same user
67 who is running the web server.
69 %description -l pl suexec
70 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
71 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
72 jako taki sam u¿ytkownik jak serwer WWW.
75 Summary: Apache include files
76 Summary(pl): Pliki nag³ówkowe do serwera www Apache
77 Group: Networking/Development
78 Group(pl): Sieciowe/Programowanie
79 Requires: %{name} = %{version}
84 %description -l pl devel
85 Pliki nag³ówkowe dla serwera WWW Apache.
88 Summary: Apache dokumentation
89 Summary(pl): Dokumentacja do Apache
91 Group(pl): Dokumentacja
92 Requires: %{name} = %{version}
95 Documentation for apache in HTML format.
97 %description -l pl doc
98 Dokumentacja do Apache w formacie HTML.
101 %setup -q -n apache_%{version} -a3
109 OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s" \
111 --prefix=%{_prefix} \
112 --sysconfdir=%{_sysconfdir} \
113 --includedir=%{_includedir} \
114 --sbindir=%{_sbindir} \
115 --libexecdir=%{_libexecdir} \
116 --datadir=%{_datadir} \
117 --localstatedir=/var \
118 --runtimedir=/var/run \
119 --logfiledir=/var/log/httpd \
121 --without-confadjust \
122 --enable-module=all \
123 --enable-shared=max \
124 --proxycachedir=/var/cache/www/apache \
125 --with-perl=%{_bindir}/perl \
127 --suexec-caller=http \
128 --suexec-uidmin=500 \
129 --suexec-gidmin=500 \
130 --enable-rule=INET6 \
131 --disable-rule=WANTHSREGEX
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/{logrotate.d,rc.d/init.d,sysconfig} \
142 $RPM_BUILD_ROOT/var/log/httpd
144 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
145 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
146 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
148 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
150 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
152 cp -a apache-extra/errordocs $RPM_BUILD_ROOT%{_datadir}/
153 cp -a apache-extra/icons/* $RPM_BUILD_ROOT%{_datadir}/icons
154 cp -a apache-extra/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
155 cp -a apache-extra/m* $RPM_BUILD_ROOT%{_sysconfdir}
157 strip $RPM_BUILD_ROOT%{_libexecdir}/* || :
159 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
160 ABOUT_APACHE src/CHANGES KEYS README README.v6
163 if [ -n `id -g http` ]; then
164 if [ "`id -g http`" != "51" ]; then
165 echo "Warning: group http haven't gid=51. Corect this before install apache"
169 /usr/sbin/groupadd -u 51 -r -f httpd
171 if [ -n `id -u http` ]; then
172 if [ "`id -g http`" != "51" ]; then
173 echo "Warning: user http haven't gid=51. Corect this before install apache"
177 /usr/sbin/useradd -u 51 -r -f httpd
182 /sbin/chkconfig --add httpd
184 touch /var/log/httpd/{access,error,agent,referer}_log
185 if [ -f /var/lock/subsys/httpd ]; then
186 /etc/rc.d/init.d/httpd restart 1>&2
190 if [ "$1" = "0" ]; then
191 if [ -f /var/lock/subsys/httpd ]; then
192 /etc/rc.d/init.d/httpd stop 1>&2
194 /sbin/chkconfig --del httpd
198 rm -rf $RPM_BUILD_ROOT
201 %defattr(644,root,root,755)
202 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
203 %doc conf/mime.types README.v6.gz
205 %attr(754,root,root) /etc/rc.d/init.d/*
207 %attr(751,root,root) %dir %{_sysconfdir}
208 %attr(640,root,root) %config %verify(not size mtime md5) %{_sysconfdir}/*
209 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
210 %attr(640,root,root) %config /etc/logrotate.d/*
212 %attr(755,root,root) %dir %{_datadir}/html
213 %config(noreplace) %{_datadir}/html/index.html
214 %{_datadir}/html/*.gif
215 %{_datadir}/errordocs
216 %dir %{_datadir}/icons
217 %{_datadir}/icons/*.gif
218 %attr(755,root,root) %{_datadir}/cgi-bin
221 %attr(755,root,root) %{_libexecdir}/*
223 %attr(755,root,root) %{_bindir}/dbmmanage
224 %attr(755,root,root) %{_bindir}/htdigest
225 %attr(755,root,root) %{_bindir}/htpasswd
227 %attr(755,root,root) %{_sbindir}/ab
228 %attr(755,root,root) %{_sbindir}/apachectl
229 %attr(755,root,root) %{_sbindir}/apxs
230 %attr(755,root,root) %{_sbindir}/httpd
231 %attr(755,root,root) %{_sbindir}/logresolve
232 %attr(755,root,root) %{_sbindir}/rotatelogs
234 %dir %attr(750,http,http) /var/cache/www/apache
238 %attr(750,root,root) %dir /var/log/httpd
239 %attr(640,root,root) %ghost /var/log/httpd/*
242 %attr(4755,root,root) %{_sbindir}/suexec
245 %defattr(644,root,root,755)
250 %defattr(644,root,root,755)
251 %attr(-,root,root) %{_datadir}/html/manual