1 %include /usr/lib/rpm/macros.perl
2 Summary: The most widely used Web server on the Internet
3 Summary(de): Leading World Wide Web-Server
4 Summary(fr): Le serveur web le plus utilise sur Internet
5 Summary(pl): Serwer WWW (World Wide Web) ze wsparciem dla IPv6
6 Summary(tr): Lider WWW tarayýcý
10 Group: Networking/Daemons
11 Group(pl): Sieciowe/Serwery
12 Source0: ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
14 Source2: apache.logrotate
15 Source3: apache-icons.tar.gz
16 Source4: apache.sysconfig
17 Source5: apache-access.conf
18 Source6: apache-httpd.conf
19 Source7: apache-srm.conf
20 Source8: apache-virtual-host.conf
21 Patch0: apache-suexec.patch
22 Patch1: ftp://ftp.kame.net/pub/kame/misc/apache-139-v6-19991013a.diff.gz
23 Patch2: ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/apache-139-v6-19991013a.new4.patch.gz
24 Patch3: ftp://ftp.nemoto.ecei.tohoku.ac.jp/pub/Net/IPv6/Patches/apache-139-v6-19991013a.new4_to_4.1.patch
25 Patch4: apache-htdocs.patch
26 Patch5: apache-pld.patch
27 Patch6: apache-EAPI.patch
28 Patch7: apache-errordocs.patch
29 Patch8: apache-apxs.patch
33 Prereq: /sbin/chkconfig
34 Prereq: /usr/sbin/useradd
35 Prereq: /usr/bin/getgid
38 BuildRequires: mm-devel
41 Requires: /etc/mime.types
42 URL: http://www.apache.org/
43 BuildRoot: /tmp/%{name}-%{version}-root
44 Obsoletes: apache-extra
47 %define _sysconfdir /etc/httpd
48 %define _includedir %{_prefix}/include/apache
49 %define _datadir /home/httpd
50 %define _libexecdir %{_prefix}/lib/apache
53 Apache is a powerful, full-featured, efficient and freely-available Web
54 server. Apache is also the most popular Web server on the Internet.
56 This special version also includes many optimizations, Extended Application
57 Programming Interface (EAPI), Shared memory module, Hotwired XSSI module,
58 hooks for SSL module and several cosmetic improvements.
61 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
62 erhältlich und weit verbreitet ist.
65 Apache est un serveur Web puissant, efficace, gratuit et complet. Apache est
66 aussi le serveur Web le plus populaire sur Internet.
68 Cette version speciale inclut egalement plusieurs optimisations, l'Interface
69 de Programmation d'Applications Etendu (EAPI), le module de memoire
70 partagee, un module XSSI de Hotwired , des attaches pour le module SSL ainsi
71 que plusieurs ameliorations cosmetiques.
74 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz
75 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
76 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
79 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
82 Summary: Apache suexec wrapper
83 Summary(pl): Suexec wrapper do serwera www Apache
84 Group: Networking/Development
85 Group(pl): Sieciowe/Programowanie
86 Requires: %{name} = %{version}
89 The suEXEC feature provides Apache users the ability to run CGI and SSI
90 programs under user IDs different from the user ID of the calling web-server.
91 Normally, when a CGI or SSI program executes, it runs as the same user
92 who is running the web server.
94 %description -l pl suexec
95 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
96 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
97 jako taki sam u¿ytkownik jak serwer WWW.
100 Summary: Module development tools for the Apache web server
101 Summary(fr): Les outils de developpement de modules pour le serveur web Apache
102 Summary(pl): Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
103 Group: Networking/Development
104 Group(pl): Sieciowe/Programowanie
105 Requires: %{name} = %{version}
108 The apache-devel package contains the source code for the Apache Web server
109 and the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for
112 %description -l fr devel
113 Le package apache-devel contient le code source pour le serveur Web Apache
114 et le binaire APXS dont vous aurez besoin pour construire des Objets
115 Dynamiques Partages (DSOs) pour Apache.
117 %description -l pl devel
118 Pliki nag³ówkowe dla serwera WWW Apache.
121 Summary: Apache dokumentation
122 Summary(pl): Dokumentacja do Apache
124 Group(pl): Dokumentacja
125 Requires: %{name} = %{version}
126 Obsoletes: apache-manual
129 Documentation for apache in HTML format.
131 %description -l pl doc
132 Dokumentacja do Apache w formacie HTML.
135 %setup -q -n apache_%{version} -a3
150 OPTIM="$RPM_OPT_FLAGS" \
152 --prefix=%{_prefix} \
153 --sysconfdir=%{_sysconfdir} \
154 --includedir=%{_includedir} \
155 --sbindir=%{_sbindir} \
156 --libexecdir=%{_libexecdir} \
157 --datadir=%{_datadir} \
158 --localstatedir=/var \
159 --runtimedir=/var/run \
160 --logfiledir=/var/log/httpd \
162 --without-confadjust \
163 --enable-module=all \
164 --enable-shared=max \
165 --proxycachedir=/var/cache/www/apache \
166 --with-perl=%{_bindir}/perl \
168 --suexec-caller=http \
169 --suexec-uidmin=500 \
170 --suexec-gidmin=500 \
171 --enable-rule=INET6 \
173 --disable-rule=WANTHSREGEX
177 rm -rf $RPM_BUILD_ROOT
179 make install-quiet root="$RPM_BUILD_ROOT"
181 #mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html
183 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
184 $RPM_BUILD_ROOT%{_datadir}/errordocs \
185 $RPM_BUILD_ROOT/var/{log/httpd,state/apache/mm}
187 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
188 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
189 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
191 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
193 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
195 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
197 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/access.conf
198 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
199 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/srm.conf
200 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/virtual-host.conf
202 strip --strip-unneeded $RPM_BUILD_ROOT%{_libexecdir}/*.so
204 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
205 ABOUT_APACHE src/CHANGES KEYS README README.v6 README.EAPI
208 if [ -n "`getgid http`" ]; then
209 if [ "`getgid http`" != "51" ]; then
210 echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
214 /usr/sbin/groupadd -g 51 -r -f http
215 if [ -f /var/db/group.db ]; then
216 /usr/bin/update-db 1>&2
219 if [ -n "`id -u http 2>/dev/null`" ]; then
220 if [ "`id -u http`" != "51" ]; then
221 echo "Warning: user http haven't uid=51. Corect this before install apache" 1>&2
225 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
226 if [ -f /var/db/passwd.db ]; then
227 /usr/bin/update-db 1>&2
233 /sbin/chkconfig --add httpd
235 touch /var/log/httpd/{access,error,agent,referer}_log
236 if [ -f /var/lock/subsys/httpd ]; then
237 /etc/rc.d/init.d/httpd restart 1>&2
241 if [ "$1" = "0" ]; then
242 if [ -f /var/lock/subsys/httpd ]; then
243 /etc/rc.d/init.d/httpd stop 1>&2
245 /sbin/chkconfig --del httpd
249 if [ "$1" = "0" ]; then
250 /usr/sbin/userdel http
251 if [ -f /var/db/passwd.db ]; then
254 /usr/sbin/groupdel http
255 if [ -f /var/db/group.db ]; then
261 rm -rf $RPM_BUILD_ROOT
264 %defattr(644,root,root,755)
265 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
266 %doc conf/mime.types README.v6.gz
268 %attr(754,root,root) /etc/rc.d/init.d/*
270 %attr(751,root,root) %dir %{_sysconfdir}
271 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
272 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
273 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
275 %attr(755,root,root) %dir %{_datadir}/html
276 %config(noreplace) %{_datadir}/html/index.html
277 %{_datadir}/html/*.gif
278 %{_datadir}/errordocs
279 %dir %{_datadir}/icons
280 %{_datadir}/icons/*.gif
281 %attr(755,root,root) %{_datadir}/cgi-bin
284 %attr(755,root,root) %{_libexecdir}/*
286 %attr(755,root,root) %{_bindir}/dbmmanage
287 %attr(755,root,root) %{_bindir}/htdigest
288 %attr(755,root,root) %{_bindir}/htpasswd
290 %attr(755,root,root) %{_sbindir}/ab
291 %attr(755,root,root) %{_sbindir}/apachectl
292 %attr(755,root,root) %{_sbindir}/apxs
293 %attr(755,root,root) %{_sbindir}/httpd
294 %attr(755,root,root) %{_sbindir}/logresolve
295 %attr(755,root,root) %{_sbindir}/rotatelogs
297 %dir %attr(750,http,http) /var/cache/www/apache
299 %dir %attr(750,http,http) /var/state/apache
303 %attr(750,root,root) %dir /var/log/httpd
304 %attr(640,root,root) %ghost /var/log/httpd/*
307 %attr(4755,root,root) %{_sbindir}/suexec
310 %defattr(644,root,root,755)
315 %defattr(644,root,root,755)
316 %attr(-,root,root) %{_datadir}/html/manual