]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- release 2.2,
[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.6
8 Release:        2.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:        %{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
23 Copyright:      BSD-like
24 Provides:       httpd
25 Provides:       webserver
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
31 Obsoletes:      apache6
32
33 %define         _sysconfdir     /etc/httpd
34 %define         _includedir     %{_prefix}/include/apache
35 %define         _datadir        /home/httpd
36 %define         _libexecdir     %{_prefix}/lib/apache
37
38 %description
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.
41
42 %description -l de
43 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
44 erhältlich und weit verbreitet ist.
45
46 %description -l fr
47 Apache est un serveur Web complet, disponible librement, et se trouve être
48 aussi le plus utilisé à travers le monde.
49
50 %description -l pl
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.
54
55 %description -l tr
56 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
57
58 %package suexec
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}
64
65 %description suexec
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. 
70
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.
75
76 %package devel
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}
82
83 %description devel
84 Apache include files.
85
86 %description -l pl devel
87 Pliki nag³ówkowe dla serwera WWW Apache.
88
89 %package doc
90 Summary:        Apache dokumentation
91 Summary(pl):    Dokumentacja do Apache
92 Group:          Documentation
93 Group(pl):      Dokumentacja
94 Requires:       %{name} = %{version}
95
96 %description doc
97 Documentation for apache in HTML format.
98
99 %description -l pl doc
100 Dokumentacja do Apache w formacie HTML.
101
102 %prep 
103 %setup -q -n apache_%{version} -a3
104 %patch0 -p1
105 %patch1 -p1
106 %patch2 -p1
107 %patch3 -p1
108 %patch4 -p1
109
110 %build
111 OPTIM="$RPM_OPT_FLAGS" LDFLAGS="-s" \
112 ./configure \
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 \
127         --enable-suexec \
128         --suexec-caller=http \
129         --suexec-uidmin=500 \
130         --suexec-gidmin=500 \
131         --enable-rule=INET6 
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/{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}
144
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
148
149 install -d $RPM_BUILD_ROOT%{_includedir}
150
151 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*
152 rm -f $RPM_BUILD_ROOT%{_datadir}/html/manual/expand.pl
153
154 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
155
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}
160
161 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
162
163 strip $RPM_BUILD_ROOT%{_libexecdir}/*
164
165 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
166         ABOUT_APACHE src/CHANGES KEYS README README.v6
167
168 %pre
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"
172                 exit 1
173         fi
174 else
175         /usr/sbin/groupadd -u 51 -r -f httpd
176 fi
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"
180                 exit 1
181         fi
182 else
183         /usr/sbin/useradd -u 51 -r -f httpd
184 fi
185
186
187 %post
188 /sbin/chkconfig --add httpd
189 umask 137
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
193 fi
194
195 %preun
196 if [ "$1" = "0" ]; then
197         if [ -f /var/lock/subsys/httpd ]; then
198                 /etc/rc.d/init.d/httpd stop 1>&2
199         fi
200         /sbin/chkconfig --del httpd
201 fi
202
203 %clean
204 rm -rf $RPM_BUILD_ROOT
205
206 %files
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
210
211 %attr(754,root,root) /etc/rc.d/init.d/*
212
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/*
217
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
225
226 %dir %{_libexecdir}
227 %attr(755,root,root) %{_libexecdir}/*
228
229 %attr(755,root,root) %{_bindir}/dbmmanage 
230 %attr(755,root,root) %{_bindir}/htdigest
231 %attr(755,root,root) %{_bindir}/htpasswd
232
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
239
240 %dir %attr(750,http,http) /var/cache/www/apache
241
242 %{_mandir}/man[18]/*
243
244 %attr(750,root,root) %dir /var/log/httpd
245 %attr(640,root,root) %ghost /var/log/httpd/*
246
247 %files suexec
248 %attr(4755,root,root) %{_sbindir}/suexec
249
250 %files devel
251 %defattr(644,root,root,755) 
252
253 %{_includedir}
254
255 %files doc
256 %defattr(644,root,root,755)
257 %attr(-,root,root) %{_datadir}/html/manual
This page took 0.056519 seconds and 4 git commands to generate.