1 |
|
### RPM external apache 2.0.55 |
2 |
|
%define downloadn httpd |
3 |
|
Source: http://mirror1.zic-network.ch/apache/%{downloadn}/%{downloadn}-%{v}.tar.gz |
4 |
< |
Requires: apr apr-util pcre zlib openssl |
4 |
> |
Requires: zlib openssl |
5 |
|
%prep |
6 |
|
%setup -n %{downloadn}-%{v} |
7 |
|
|
8 |
|
%build |
9 |
|
./configure --prefix=%{i} \ |
10 |
– |
--with-pcre=$PCRE_ROOT \ |
10 |
|
--with-z=$LIBZ_ROOT \ |
11 |
< |
--with-ssl=$OPENSSL_ROOT |
11 |
> |
--with-ssl=$OPENSSL_ROOT \ |
12 |
> |
--enable-ssl \ |
13 |
> |
--enable-rewrite \ |
14 |
> |
--enable-so |
15 |
> |
|
16 |
> |
mkdir -p %i/conf.d |
17 |
> |
|
18 |
|
make %makeprocesses |
19 |
+ |
%install |
20 |
+ |
%initenv |
21 |
+ |
mkdir -p %{i} |
22 |
+ |
true || exit 0 |
23 |
+ |
make install |
24 |
+ |
|
25 |
+ |
echo 'Include '"%i/conf.d/"'*.conf' >> \ |
26 |
+ |
%i/conf/httpd.conf |
27 |
+ |
|
28 |
+ |
|
29 |
+ |
%post |
30 |
+ |
%{relocateConfig}conf/highperformance.conf |
31 |
+ |
%{relocateConfig}conf/highperformance-std.conf |
32 |
+ |
%{relocateConfig}conf/httpd.conf |
33 |
+ |
%{relocateConfig}conf/httpd-std.conf |
34 |
+ |
%{relocateConfig}conf/ssl.conf |
35 |
+ |
%{relocateConfig}conf/ssl-std.conf |
36 |
+ |
%{relocateConfig}include/ap_config_auto.h |
37 |
+ |
%{relocateConfig}include/ap_config_layout.h |
38 |
+ |
%{relocateConfig}bin/apachectl |
39 |
+ |
%{relocateConfig}bin/apr-config |
40 |
+ |
%{relocateConfig}bin/apu-config |
41 |
+ |
%{relocateConfig}bin/apxs |
42 |
+ |
%{relocateConfig}bin/envvars |
43 |
+ |
%{relocateConfig}bin/envvars-std |