]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
new patches && extra's
[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
9 Group:          Networking/Daemons
10 Group(pl):      Sieci/Demony
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 ########        http://stonecold.unity.ncsu.edu/software/mod_auth_kerb
16 #Source5:       mod_auth_kerb-4.3.tar.gz
17 Source6:        apache_1.3.6.tar.gz.asc
18 Source7:        apache_1.3.6.tar.gz.md5
19 Source8:        apache.sysconfig
20 Patch0:         %{name}-suexec.patch
21 Patch1:         %{name}_1.3.6.ipv6.patch
22 Patch2:         %{name}-htdocs.patch
23 Patch3:         %{name}-release.patch
24 Copyright:      BSD-like
25 Obsoletes:      apache-extra
26 Obsoletes:      apache6
27 Provides:       httpd
28 Provides:       webserver
29 Prereq:         /sbin/chkconfig
30 URL:            http://www.apache.org/
31 BuildRoot:      /tmp/%{name}-%{version}-root
32
33 %description
34 Apache is a full featured web server that is freely available, and also
35 happens to be the most widely used. This version supports IPv6.
36
37 %description -l de
38 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
39 erhältlich und weit verbreitet ist.
40
41 %description -l fr
42 Apache est un serveur Web complet, disponible librement, et se trouve être
43 aussi le plus utilisé à travers le monde.
44
45 %description -l pl
46 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
47 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
48 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
49
50 %description -l tr
51 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
52
53 %package        suexec
54 Summary:        Apache suexec wrapper
55 Summary(pl):    Suexec wrapper do serwera www Apache
56 Group:          Networking/Development
57 Group(pl):      Sieci/Programowanie
58 Requires:       %{name} = %{version}
59
60 %description suexec
61 The suEXEC feature provides Apache users the ability to run CGI and SSI
62 programs under user IDs different from the user ID of the calling web-server.
63 Normally, when a CGI or SSI program executes, it runs as the same user 
64 who is running the web server. 
65
66 %description -l pl suexec
67 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
68 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
69 jako taki sam u¿ytkownik jak serwer WWW.
70
71 %package        devel
72 Summary:        Apache include files
73 Summary(pl):    Pliki nag³ówkowe do serwera www Apache
74 Group:          Networking/Development
75 Group(pl):      Sieci/Programowanie
76 Requires:       %{name} = %{version}
77
78 %description devel
79 Apache include files.
80
81 %description -l pl devel
82 Pliki nag³ówkowe dla serwera WWW Apache.
83
84 %package        doc
85 Summary:        Apache dokumentation
86 Summary(pl):    Dokumentacja do Apache
87 Group:          Documentation
88 Group(pl):      Dokumentacja
89 Requires:       %{name} = %{version}
90 URL:            http://www.apache.org/
91
92 %description doc
93 Documentation for apache in HTML format.
94
95 %description -l pl doc
96 Dokumentacja do Apache w formacie HTML
97
98 %prep 
99 %setup -q -n apache_%{version} -a3
100 %patch0 -p1
101 %patch1 -p1
102 %patch2 -p1
103 %patch3 -p1
104
105 %build
106 OPTIM=$RPM_OPT_FLAGS LDFLAGS=-s\
107     ./configure \
108         --prefix=%{_prefix} \
109         --sysconfdir=/etc/httpd \
110         --datadir=/home/httpd \
111         --libexecdir=/usr/lib/apache \
112         --localstatedir=/var \
113         --runtimedir=/var/run \
114         --logfiledir=/var/log/httpd \
115         --without-confadjust \
116         --enable-module=all \
117         --enable-shared=max \
118         --proxycachedir=/var/cache/www/apache \
119         --with-perl=%{_bindir}/perl \
120         --enable-suexec \
121         --suexec-caller=http \
122         --suexec-uidmin=500 \
123         --suexec-gidmin=500 \
124         --sbindir=%{_sbindir} \
125         --includedir=%{_includedir}/apache \
126         --enable-rule=INET6 
127 make
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131
132 make install-quiet root="$RPM_BUILD_ROOT"
133
134 mv $RPM_BUILD_ROOT/home/httpd/htdocs $RPM_BUILD_ROOT/home/httpd/html
135
136 install -d $RPM_BUILD_ROOT/etc/{httpd,logrotate.d,rc.d/init.d,sysconfig}
137 install -d $RPM_BUILD_ROOT/home/httpd/{html/manual,icons,cgi-bin}
138 install -d $RPM_BUILD_ROOT/{usr/{lib/apache,sbin,share,man/man{1,8}},var/log/httpd}
139
140 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
141 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
142 install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/apache
143
144 install -d $RPM_BUILD_ROOT%{_includedir}/apache
145
146 rm -f $RPM_BUILD_ROOT/etc/httpd/*
147 rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
148
149 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
150
151 cp -a apache-extra/errordocs    $RPM_BUILD_ROOT/home/httpd/
152 cp -a apache-extra/icons/*      $RPM_BUILD_ROOT/home/httpd/icons
153 cp -a apache-extra/*.conf       $RPM_BUILD_ROOT/etc/httpd
154 cp -a apache-extra/m*           $RPM_BUILD_ROOT/etc/httpd
155
156 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
157
158 strip $RPM_BUILD_ROOT/usr/lib/apache/*
159
160 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man{1,8}/*}
161 gzip -9nf ABOUT_APACHE src/CHANGES KEYS README README.v6
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %post
167 /sbin/chkconfig --add httpd
168    if [ -f /var/lock/subsys/httpd ]; then
169        /etc/rc.d/init.d/httpd restart >&2
170    fi
171
172 %preun
173 if [ $1 = 0 ]; then
174    if [ -f /var/lock/subsys/httpd ]; then
175        /etc/rc.d/init.d/httpd stop >&2
176    fi
177    /sbin/chkconfig --del httpd
178 fi
179
180 %files
181 %defattr(644,root,root,755)
182 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
183 %doc conf/mime.types README.v6.gz
184
185 %attr(750,root,root) %dir /etc/httpd
186 %attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/*
187 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
188 %attr(640,root,root) %config /etc/logrotate.d/*
189
190 %attr(755,root,root) %dir /home/httpd/html
191
192 %config(noreplace) /home/httpd/html/index.html
193
194 %attr(644,root,root) /home/httpd/html/*.gif
195 %attr(755,root,root) /etc/rc.d/init.d/*
196
197 %attr(755,root,root) /home/httpd/cgi-bin
198 %attr(755,root,root) /usr/lib/apache
199
200 %attr(755,root,root) %dir /home/httpd/icons
201 /home/httpd/icons/*.gif
202
203 %attr(755,root,root) %dir /home/httpd/errordocs
204 /home/httpd/errordocs/*
205
206 %attr(755,root,root) %{_bindir}/dbmmanage 
207 %attr(755,root,root) %{_bindir}/htdigest
208 %attr(755,root,root) %{_bindir}/htpasswd
209
210 %attr(755,root,root) %{_sbindir}/ab
211 %attr(755,root,root) %{_sbindir}/apachectl
212 %attr(755,root,root) %{_sbindir}/apxs
213 %attr(755,root,root) %{_sbindir}/httpd
214 %attr(755,root,root) %{_sbindir}/logresolve
215 %attr(755,root,root) %{_sbindir}/rotatelogs
216
217 %dir %attr(750,http,http) /var/cache/www/apache
218
219 %{_mandir}/man[18]/*
220
221 %attr(750,root,root) %dir /var/log/httpd
222 %attr(640,root,root) %config %verify(not size mtime md5) /var/log/httpd/*
223
224 %files suexec
225 %attr(4711,root,root) %{_sbindir}/suexec
226
227 %files devel
228 %defattr(644,root,root,755) 
229
230 %dir %{_includedir}/apache
231 %{_includedir}/apache/*
232
233 %files doc
234 %defattr(644,root,root,755)
235 %attr(-,root,root) /home/httpd/html/manual
236
237 %changelog
238 * Wed May 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
239   [1.3.6-2]
240 - misc changes for correct build,
241 - fixed apache.logrotate file,
242 - apache-htdosc.patch,
243 - added apache-release.patch,
244 - changed confdir to /etc/httpd instead /etc/httpd/conf,
245 - stripped modules & more changes,
246 - added new apache-extras packet,
247
248   by Arek Mi¶kiewicz <misiek@pld.org.pl>
249   
250 - added IPv6 support,
251 - other fixes.  
252
253
254 * Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
255   [1.3.4-6d]
256 - added LDFLAGS=-s
257 - gzipping instead bzipping
258 - cosmetic changes
259
260 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
261   [1.3.4-5d]
262 - rebuild against new kernel-2.2.0 ;)  
263
264 * Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
265   [1.3.4-4d]
266 - added errordocs.  
267
268 * Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
269   [1.3.4-3d]
270 - fixed files permission,
271 - fixed apache.init,
272 - some other changes.
273
274 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
275   [1.3.4-2d]
276 - fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
277 - compressed documentation,
278 - fixed Group(pl).
279
280 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
281   [1.3.3-1]
282 - removed making symlinks in /etc/rc.d/rc?.d and in %install also
283   removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
284   chkconfig),
285 - more simplifications in %install,
286 - added new apache-config.patch,
287 - added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
288 - added "Requires: setup >= 1.10.0" for proper install in enviroment with
289   http user/group.
290
291 * Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
292   [1.3.3-1d]
293 - up to 1.3.3
294 - changed user/group to http
295 - added patch against GNU libc-2.1, 
296   prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
297 - enabled all modules (without auth_db ....)
298 - added magic (for mod_mime_magic)
299 - rebuild spec file to minimize number of patches
300 - suEXEC in separated package
301
302 * Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
303   [1.3.2-1d]
304 - build against Tornado (GNU libc-2.1),
305 - minor changes. 
306
307 * Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
308   [1.3.2-1]
309 - up to 1.3.2
310 - reconfig to use /etc/mime.types (again)
311   orginal mime.types can be found in documentation directory
312 - changed to user/group httpd
313 - restore orginal start page
314 - documentation in separate package
315 - added "Provides:httpd"
316
317 * Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
318   [1.3.1-2]
319 - removed /home/httpd/icons/README
320 - added devel subpackage,
321 - added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
322 - removed Serial: filed,
323 - removed Packager: field (this must be placed in private ~/.rpmrc),
324 - simplification in %files and %install,
325 - /home/httpd/html/manual is now marked as %doc,
326 - added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
327 - changed permidssion on logrotate config file to 600,
328 - changed permidssion on /var/log/httpd to 700,
329 - added %ghost /var/log/httpd/*
330 - added striping modules,
331 - added patch to defeat header dos attack,
332 - start at spec file prepared by:
333   Manoj Kasichainula <manojk@io.com>.
This page took 0.058493 seconds and 3 git commands to generate.