ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/apache2.spec
Revision: 1.3
Committed: Tue Feb 26 21:36:27 2008 UTC (17 years, 2 months ago) by eulisse
Branch: MAIN
CVS Tags: webconddb173, condapp173, webconddb172, condapp172, webconddb171, condapp171, webconddb170, condapp170, condapp164b, webconddb164b, webconddb164, conapp164, zx20090506, zx20090224, zx20090219, zx20090217, zx20090216, zx20090115, zx20090114, WEBTOOLS-APPS_20090113, DBS-APPS_20090109, DBS-APPS_20090108, sw_20090108, WEBTOOLS-APPS_20090108, DBS-APPS_20090106, DBS-APPS_20090105, FMWS_20090103, FMWS_20081224_1, FMWS_20081224, FMWS_20081222_3, FMWS_20081222_2, FMWS_20081222, DBS-APPS_20081218, FMWS_20081212_1, FMWS_20081212, FMWS_20081211, DBS-APPS_20081211, DBS-APPS_20081210, DBS-APPS_20081209, WEBTOOLS-APPS_20081208, DBS-APPS_20081205, DBS-APPS_20081204, DBS-APPS_200811204, DBS-APPS_20081126_1, DBS-APPS_20081126, DBS-APPS_20081125, DBS-APPS_20081119, DBS-APPS_20081118, DBS-APPS_20081117, DBS-APPS_20081114_1, DBS-APPS_20081114, DBS-APPS_20081112, DBS-APPS_20081111_1, DBS-APPS_20081110_2, DBS-APPS_20081110_1, WEBTOOLS-APPS_20081110, DBS-APPS_20081110, WEBTOOLS-APPS_20081107_1, WEBTOOLS-APPS_20081107, DBS-APPS_20081107, DBS-APPS_20081105, DBS-APPS_20081104, WEBTOOLS-APPS_20081031_2, DBS-APPS_20081031_2, DBS-APPS_20081031_1, WEBTOOLS-APPS_20081031_1, WEBTOOLS-APPS_20081031, DBS-APPS_20081024, WEBTOOLS-APPS_20081020_1, WEBTOOLS-APPS_20081020, WEBTOOLS-APPS_20081016_2, WEBTOOLS-APPS_20081016_1, WEBTOOLS-APPS_20081016, WEBTOOLS-APPS_20081015, WEBTOOLS-APPS_20081013_1, WEBTOOLS-APPS_20081013, WEBTOOLS-APPS_20081009, WEBTOOLS-APPS_20081008_1, WEBTOOLS-APPS_20081008, WEBTOOLS-APPS_20080922, WEBTOOLS-APPS_20080917, WEBTOOLS-APPS_20080916, WEBTOOLS-APPS_20080915, DBS-APPS_20080910_1, WEBTOOLS-APPS_20080910_1, WEBTOOLS-APPS_20080910, DBS-APPS_20080910, WEBTOOLS-APPS_20080909, DBS-APPS_20080908, WEBTOOLS-APPS_20080903, WEBTOOLS-APPS_20080826, zx20080825, WEBTOOLS-APPS_20080822, WEBTOOLS-APPS_20080821, WEBTOOLS-APPS_20080818_1, WEBTOOLS-APPS_20080818, WEBTOOLS-APPS_20080725, WEBTOOLS-APPS_20080724, zx20080718, WEBTOOLS-APPS_20080717, WEBTOOLS-APPS_20080716, WEBTOOLS-APPS_20080715_2, WEBTOOLS-APPS_20080715_1, WEBTOOLS-APPS_20080715, zx20080715, WEBTOOLS-APPS_20080713, zx20080707, zx20080625, WEBTOOLS-APPS_20080624, re20080623, WEBTOOLS-APPS_20080619_1, WEBTOOLS-APPS_20080619, WEBTOOLS-APPS_20080617, zx20080611, WEBTOOLS-APPS_20080611, zx20080610, WEBTOOLS-APPS_20080609_1, WEBTOOLS-APPS_20080609, zx20080609, sw_20080509, SiteDB_030608_1, SiteDB_300508_1, SiteDB_280508_1, WEBTOOLS-APPS_20080527_2, WEBTOOLS-APPS_20080527, WEBTOOLS-APPS_20080523, WEBTOOLS-APPS_20080522, WEBTOOLS-APPS_20080521, WEBTOOLS-APPS_20080520, WEBTOOLS-APPS_20080519, zx20080519, forPHEDEX-datasvc100, WEBTOOLS-APPS_20080511, zx20080509b, zx20080509, pe20080508-testcvs, WEBTOOLS-APPS_20080507_1, WEBTOOLS-APPS_20080507, WEBTOOLS-APPS_20080506, dl080505, WEBTOOLS-APPS_20080501, zx20080430, dl080425_for21x, WEBTOOLS-APPS_20080422, WEBTOOLS-APPS_20080416, zx20080415-comp, webconddb_1_1_1, WEBTOOLS-APPS_20080414, WEBTOOLS-APPS_20080412, WEBTOOLS-APPS_20080411_1, WEBTOOLS-APPS_20080411, WEBTOOLS-APPS_20080410, WEBTOOLS-APPS_20080409_1, WEBTOOLS-APPS_20080409, WEBTOOLS-APPS_20080408_1, WEBTOOLS-APPS_20080408, DBS-APPS_20080407, WEBTOOLS-APPS_20080407, WEBTOOLS-APPS_20080404_2, WEBTOOLS-APPS_20080404_1, WEBTOOLS-APPS_20080404, WEBTOOLS-APPS_20080403_4, WEBTOOLS-APPS_20080403_3, WEBTOOLS-APPS_20080403_2, WEBTOOLS-APPS_20080403_1, WEBTOOLS-APPS_20080403, forPHEDEX-datasvc002, forPHEDEX-datasvc001, WEBTOOLS-APPS_20080328, WEBTOOLS-APPS_20080327_1, WEBTOOLS-APPS_20080327, WEBTOOLS-APPS_20080326_6, WEBTOOLS-APPS_20080326_5, WEBTOOLS-APPS_20080326_4, WEBTOOLS-APPS_20080326_3, WEBTOOLS-APPS_20080326_2, WEBTOOLS-APPS_20080326, DBSweb_260308_1, DBSweb_260308, forPHEDEX262_cmsbuild3, sw_20080319, sw20080319, DBSweb_180308_2, DBSweb_180308_1, DBSweb_180308, DBSweb_170308_8, DBSweb_170308_7, DBSweb_170308_6, DBSweb_170308_5, DBSweb_170308_4, DBSweb_170308_3, DBSweb_170308_2, DBSweb_170308, SiteDB_170308, SiteDB_1_2_1-160308_2, SiteDB_1_2_1-160308, SM_150308_DBSDisc_9, SM_150308_DBSDisc_8, SM_150308_DBSDisc_7, SM_150308_DBSDisc_6, SM_150308_DBSDisc_5, SM_150308_DBSDisc_4, SM_150308_DBSDisc_3, SM_150308_DBSDisc_2, SM_150308_DBSDisc_1, SM_150308_DBSDisc, SiteDB_140308, SiteDB_130308, ge20080304-comp, SiteDB_080227, ge20080226
Branch point for: conddb-branch
Changes since 1.2: +1 -0 lines
Log Message:
Fake `Provides` for libcom_err.so.2()(64bit) added.

File Contents

# User Rev Content
1 egeland 1.1 ### RPM external apache2 2.2.8
2     # See:
3     # http://httpd.apache.org/docs/2.2/install.html
4     # for instruction on how to configure.
5    
6 egeland 1.2 # Required for https and compression support
7     Requires: openssl zlib expat uuid
8    
9     # Can't figure out how to get rpm to stop complaining about this...
10     # should be in e2fsprogs-libs-1.39-7.slc4 ...
11     # but Requires uuid doesn't cover it
12     Provides: libcom_err.so.2
13 eulisse 1.3 Provides: libcom_err.so.2()(64bit)
14 egeland 1.2
15 egeland 1.1 Source0: http://mirror.switch.ch/mirror/apache/dist/httpd/httpd-%realversion.tar.gz
16    
17     %prep
18     %setup -n httpd-%realversion
19    
20     %build
21     # See here:
22     #
23     # http://httpd.apache.org/docs/2.2/programs/configure.html#installationdirectories
24     #
25     # for configure options.
26    
27     ./configure --prefix=%i --with-mpm=prefork \
28     --enable-mods-shared=all \
29     --enable-so \
30     --with-included-apr \
31     --enable-cache \
32     --enable-proxy \
33     --enable-deflate \
34     --enable-disk-cache \
35     --enable-file-cache \
36     --enable-expires \
37     --enable-headers \
38     --enable-rewrite \
39     --enable-ssl \
40     --with-openssl=$OPENSSL_ROOT \
41 egeland 1.2 --with-z=$ZLIB_ROOT \
42     --with-expat=$EXPAT_ROOT \
43     --with-uuid=$UUID_ROOT
44    
45 egeland 1.1
46    
47     # %makeprocesses is for multiple compile processes -j X
48     make %makeprocesses
49    
50     # Generates the dependencies-setup.{sh,csh} files so that
51     # sourcing init.{sh,csh} picks up also the environment of
52     # dependencies.
53    
54     rm -rf %i/etc/profile.d
55     mkdir -p %i/etc/profile.d
56     echo '#!/bin/sh' > %{i}/etc/profile.d/dependencies-setup.sh
57     echo '#!/bin/tcsh' > %{i}/etc/profile.d/dependencies-setup.csh
58     echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
59     for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'`
60     do
61     case X$tool in
62     Xdistcc|Xccache )
63     ;;
64     * )
65     toolcap=`echo $tool | tr a-z- A-Z_`
66     eval echo ". $`echo ${toolcap}_ROOT`/etc/profile.d/init.sh" >> %{i}/etc/profile.d/dependencies-setup.sh
67     eval echo "source $`echo ${toolcap}_ROOT`/etc/profile.d/init.csh" >> %{i}/etc/profile.d/dependencies-setup.csh
68     ;;
69     esac
70     done
71    
72     perl -p -i -e 's|\. /etc/profile\.d/init\.sh||' %{i}/etc/profile.d/dependencies-setup.sh
73     perl -p -i -e 's|source /etc/profile\.d/init\.csh||' %{i}/etc/profile.d/dependencies-setup.csh
74    
75 egeland 1.2 find -type f | xargs perl -p -i -e "s|#\!.*perl(.*)|#!/usr/bin/env perl$1|"
76 egeland 1.1
77     %install
78     make install
79    
80     %post
81     %{relocateConfig}etc/profile.d/dependencies-setup.sh
82     %{relocateConfig}etc/profile.d/dependencies-setup.csh
83     # Relocate the configuration files.
84     %{relocateConfig}/bin/apachectl
85     %{relocateConfig}/bin/apr-1-config
86     %{relocateConfig}/bin/apu-1-config
87     %{relocateConfig}/bin/apxs
88     %{relocateConfig}/bin/envvars
89     %{relocateConfig}/bin/envvars-std
90     %{relocateConfig}/build/apr_rules.mk
91     %{relocateConfig}/build/config.nice
92     %{relocateConfig}/build/config_vars.mk
93     %{relocateConfig}/build/libtool
94     %{relocateConfig}/conf/extra/httpd-autoindex.conf
95     %{relocateConfig}/conf/extra/httpd-dav.conf
96     %{relocateConfig}/conf/extra/httpd-manual.conf
97     %{relocateConfig}/conf/extra/httpd-multilang-errordoc.conf
98     %{relocateConfig}/conf/extra/httpd-ssl.conf
99     %{relocateConfig}/conf/extra/httpd-vhosts.conf
100     %{relocateConfig}/conf/httpd.conf
101     %{relocateConfig}/conf/original/extra/httpd-autoindex.conf
102     %{relocateConfig}/conf/original/extra/httpd-dav.conf
103     %{relocateConfig}/conf/original/extra/httpd-manual.conf
104     %{relocateConfig}/conf/original/extra/httpd-multilang-errordoc.conf
105     %{relocateConfig}/conf/original/extra/httpd-ssl.conf
106     %{relocateConfig}/conf/original/extra/httpd-vhosts.conf
107     %{relocateConfig}/conf/original/httpd.conf
108     %{relocateConfig}/include/ap_config_auto.h
109     %{relocateConfig}/include/ap_config_layout.h
110     %{relocateConfig}/lib/libapr-1.la
111     %{relocateConfig}/lib/libaprutil-1.la
112     %{relocateConfig}/lib/pkgconfig/apr-1.pc
113     %{relocateConfig}/lib/pkgconfig/apr-util-1.pc