1 |
< |
### RPM external apache 2.0.55 |
1 |
> |
### RPM external apache 2.0.59 |
2 |
|
%define downloadn httpd |
3 |
< |
Source: http://mirror1.zic-network.ch/apache/%{downloadn}/%{downloadn}-%{v}.tar.gz |
4 |
< |
Requires: zlib openssl |
3 |
> |
Source: http://apache.osuosl.org/httpd/httpd-%v.tar.gz |
4 |
> |
Requires: zlib openssl expat |
5 |
|
%prep |
6 |
|
%setup -n %{downloadn}-%{v} |
7 |
|
|
8 |
|
%build |
9 |
< |
./configure --prefix=%{i} \ |
9 |
> |
./configure CFLAGS="-I$EXPAT_ROOT/include" \ |
10 |
> |
LDFLAGS="-L$EXPAT_ROOT/lib" \ |
11 |
> |
--prefix=%{i} \ |
12 |
|
--with-z=$LIBZ_ROOT \ |
13 |
|
--with-ssl=$OPENSSL_ROOT \ |
14 |
|
--enable-ssl \ |
15 |
|
--enable-rewrite \ |
16 |
|
--enable-so |
17 |
+ |
|
18 |
+ |
mkdir -p %i/conf.d |
19 |
+ |
|
20 |
|
make %makeprocesses |
21 |
+ |
%install |
22 |
+ |
%initenv |
23 |
+ |
mkdir -p %{i} |
24 |
+ |
true || exit 0 |
25 |
+ |
make install |
26 |
+ |
|
27 |
+ |
echo 'Include '"%i/conf.d/"'*.conf' >> \ |
28 |
+ |
%i/conf/httpd.conf |
29 |
+ |
|
30 |
+ |
|
31 |
|
%post |
32 |
|
%{relocateConfig}conf/highperformance.conf |
33 |
|
%{relocateConfig}conf/highperformance-std.conf |