]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- added "Obsoletes: apache-manual" for doc subpackage.
[packages/apache.git] / apache.spec
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ý
7 Name:           apache
8 Version:        1.3.9
9 Release:        9
10 Group:          Networking/Daemons
11 Group(pl):      Sieciowe/Serwery
12 Source0:        ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
13 Source1:        apache.init
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
30 Copyright:      BSD-like
31 Provides:       httpd
32 Provides:       webserver
33 Prereq:         /sbin/chkconfig
34 Prereq:         /usr/sbin/useradd
35 Prereq:         /usr/bin/getgid
36 Prereq:         /usr/bin/id
37 Prereq:         sh-utils
38 BuildRequires:  mm-devel
39 Requires:       rc-scripts
40 Requires:       mailcap
41 Requires:       /etc/mime.types
42 URL:            http://www.apache.org/
43 BuildRoot:      /tmp/%{name}-%{version}-root
44 Obsoletes:      apache-extra
45 Obsoletes:      apache6
46
47 %define         _sysconfdir     /etc/httpd
48 %define         _includedir     %{_prefix}/include/apache
49 %define         _datadir        /home/httpd
50 %define         _libexecdir     %{_prefix}/lib/apache
51
52 %description
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.
55
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.
59
60 %description -l de
61 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
62 erhältlich und weit verbreitet ist.
63
64 %description -l fr
65 Apache est un serveur Web puissant, efficace, gratuit et complet. Apache est
66 aussi le serveur Web le plus populaire sur Internet.
67
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.
72
73 %description -l pl
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.
77
78 %description -l tr
79 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
80
81 %package suexec
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}
87
88 %description suexec
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. 
93
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.
98
99 %package devel
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}
106
107 %description devel
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
110 Apache.
111
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.
116
117 %description -l pl devel
118 Pliki nag³ówkowe dla serwera WWW Apache.
119
120 %package doc
121 Summary:        Apache dokumentation
122 Summary(pl):    Dokumentacja do Apache
123 Group:          Documentation
124 Group(pl):      Dokumentacja
125 Requires:       %{name} = %{version}
126 Obsoletes:      apache-manual
127
128 %description doc
129 Documentation for apache in HTML format.
130
131 %description -l pl doc
132 Dokumentacja do Apache w formacie HTML.
133
134 %prep 
135 %setup -q -n apache_%{version} -a3
136 %patch0 -p1
137 %patch1 -p1
138 %patch2 -p1
139 %patch3 -p1
140 %patch4 -p1
141 %patch5 -p1
142 %patch6 -p1
143 %patch7 -p1
144 %patch8 -p1
145
146 %build
147
148 LDFLAGS="-s"
149 export LDFLAGS
150 OPTIM="$RPM_OPT_FLAGS" \
151 ./configure \
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 \
161         --with-layout=PLD \
162         --without-confadjust \
163         --enable-module=all \
164         --enable-shared=max \
165         --proxycachedir=/var/cache/www/apache \
166         --with-perl=%{_bindir}/perl \
167         --enable-suexec \
168         --suexec-caller=http \
169         --suexec-uidmin=500 \
170         --suexec-gidmin=500 \
171         --enable-rule=INET6 \
172         --enable-rule=EAPI \
173         --disable-rule=WANTHSREGEX
174 make
175
176 %install
177 rm -rf $RPM_BUILD_ROOT
178
179 make install-quiet root="$RPM_BUILD_ROOT"
180
181 #mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html
182
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}
186
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
190
191 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
192
193 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
194
195 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
196
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
201
202 strip --strip-unneeded $RPM_BUILD_ROOT%{_libexecdir}/*.so
203
204 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
205         ABOUT_APACHE src/CHANGES KEYS README README.v6 README.EAPI
206
207 %pre
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
211                 exit 1
212         fi
213 else
214         /usr/sbin/groupadd -g 51 -r -f http
215         if [ -f /var/db/group.db ]; then
216                 /usr/bin/update-db 1>&2
217         fi
218 fi
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
222                 exit 1
223         fi
224 else
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
228         fi
229 fi
230
231
232 %post
233 /sbin/chkconfig --add httpd
234 umask 137
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
238 fi
239
240 %preun
241 if [ "$1" = "0" ]; then
242         if [ -f /var/lock/subsys/httpd ]; then
243                 /etc/rc.d/init.d/httpd stop 1>&2
244         fi
245         /sbin/chkconfig --del httpd
246 fi
247
248 %postun
249 if [ "$1" = "0" ]; then
250         /usr/sbin/userdel http
251         if [ -f /var/db/passwd.db ]; then
252                 /usr/bin/update-db
253         fi
254         /usr/sbin/groupdel http
255         if [ -f /var/db/group.db ]; then
256                 /usr/bin/update-db
257         fi
258 fi
259
260 %clean
261 rm -rf $RPM_BUILD_ROOT
262
263 %files
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
267
268 %attr(754,root,root) /etc/rc.d/init.d/*
269
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/*
274
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
282
283 %dir %{_libexecdir}
284 %attr(755,root,root) %{_libexecdir}/*
285
286 %attr(755,root,root) %{_bindir}/dbmmanage 
287 %attr(755,root,root) %{_bindir}/htdigest
288 %attr(755,root,root) %{_bindir}/htpasswd
289
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
296
297 %dir %attr(750,http,http) /var/cache/www/apache
298
299 %dir %attr(750,http,http) /var/state/apache
300
301 %{_mandir}/man[18]/*
302
303 %attr(750,root,root) %dir /var/log/httpd
304 %attr(640,root,root) %ghost /var/log/httpd/*
305
306 %files suexec
307 %attr(4755,root,root) %{_sbindir}/suexec
308
309 %files devel
310 %defattr(644,root,root,755) 
311
312 %{_includedir}
313
314 %files doc
315 %defattr(644,root,root,755)
316 %attr(-,root,root) %{_datadir}/html/manual
This page took 0.069524 seconds and 4 git commands to generate.