]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- disabled HSREGEXP (glibc has POSIX regexp.h)
[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.9
8 Release:        2
9 Group:          Networking/Daemons
10 Group(pl):      Sieciowe/Serwery
11 Source0:        ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
12 Source1:        apache.init
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
21 Copyright:      BSD-like
22 Provides:       httpd
23 Provides:       webserver
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
29 Obsoletes:      apache6
30
31 %define         _sysconfdir     /etc/httpd
32 %define         _includedir     %{_prefix}/include/apache
33 %define         _datadir        /home/httpd
34 %define         _libexecdir     %{_prefix}/lib/apache
35
36 %description
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.
39
40 %description -l de
41 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
42 erhältlich und weit verbreitet ist.
43
44 %description -l fr
45 Apache est un serveur Web complet, disponible librement, et se trouve être
46 aussi le plus utilisé à travers le monde.
47
48 %description -l pl
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.
52
53 %description -l tr
54 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
55
56 %package suexec
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}
62
63 %description suexec
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. 
68
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.
73
74 %package devel
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}
80
81 %description devel
82 Apache include files.
83
84 %description -l pl devel
85 Pliki nag³ówkowe dla serwera WWW Apache.
86
87 %package doc
88 Summary:        Apache dokumentation
89 Summary(pl):    Dokumentacja do Apache
90 Group:          Documentation
91 Group(pl):      Dokumentacja
92 Requires:       %{name} = %{version}
93
94 %description doc
95 Documentation for apache in HTML format.
96
97 %description -l pl doc
98 Dokumentacja do Apache w formacie HTML.
99
100 %prep 
101 %setup -q -n apache_%{version} -a3
102 %patch0 -p1
103 %patch1 -p1
104 %patch2 -p1
105 %patch3 -p1
106 %patch4 -p1
107
108 %build
109 OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s" \
110 ./configure \
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 \
120         --with-layout=PLD \
121         --without-confadjust \
122         --enable-module=all \
123         --enable-shared=max \
124         --proxycachedir=/var/cache/www/apache \
125         --with-perl=%{_bindir}/perl \
126         --enable-suexec \
127         --suexec-caller=http \
128         --suexec-uidmin=500 \
129         --suexec-gidmin=500 \
130         --enable-rule=INET6 \
131         --disable-rule=WANTHSREGEX
132 make
133
134 %install
135 rm -rf $RPM_BUILD_ROOT
136
137 make install-quiet root="$RPM_BUILD_ROOT"
138
139 #mv $RPM_BUILD_ROOT%{_datadir}/htdocs $RPM_BUILD_ROOT%{_datadir}/html
140
141 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
142         $RPM_BUILD_ROOT/var/log/httpd
143
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
147
148 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
149
150 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
151
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}
156
157 strip $RPM_BUILD_ROOT%{_libexecdir}/* || :
158
159 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
160         ABOUT_APACHE src/CHANGES KEYS README README.v6
161
162 %pre
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"
166                 exit 1
167         fi
168 else
169         /usr/sbin/groupadd -u 51 -r -f httpd
170 fi
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"
174                 exit 1
175         fi
176 else
177         /usr/sbin/useradd -u 51 -r -f httpd
178 fi
179
180
181 %post
182 /sbin/chkconfig --add httpd
183 umask 137
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
187 fi
188
189 %preun
190 if [ "$1" = "0" ]; then
191         if [ -f /var/lock/subsys/httpd ]; then
192                 /etc/rc.d/init.d/httpd stop 1>&2
193         fi
194         /sbin/chkconfig --del httpd
195 fi
196
197 %clean
198 rm -rf $RPM_BUILD_ROOT
199
200 %files
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
204
205 %attr(754,root,root) /etc/rc.d/init.d/*
206
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/*
211
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
219
220 %dir %{_libexecdir}
221 %attr(755,root,root) %{_libexecdir}/*
222
223 %attr(755,root,root) %{_bindir}/dbmmanage 
224 %attr(755,root,root) %{_bindir}/htdigest
225 %attr(755,root,root) %{_bindir}/htpasswd
226
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
233
234 %dir %attr(750,http,http) /var/cache/www/apache
235
236 %{_mandir}/man[18]/*
237
238 %attr(750,root,root) %dir /var/log/httpd
239 %attr(640,root,root) %ghost /var/log/httpd/*
240
241 %files suexec
242 %attr(4755,root,root) %{_sbindir}/suexec
243
244 %files devel
245 %defattr(644,root,root,755) 
246
247 %{_includedir}
248
249 %files doc
250 %defattr(644,root,root,755)
251 %attr(-,root,root) %{_datadir}/html/manual
This page took 0.049496 seconds and 4 git commands to generate.