1 |
|
### RPM external gridsite 1.0.0 |
2 |
– |
## INITENV CMD ln -sf $GRIDSITE_ROOT/lib/mod_python.so $APACHE_ROOT/modules |
3 |
– |
## INITENV CMD ln -sf $GRIDSITE_ROOT/gridsite.conf $APACHE_ROOT/conf.d |
4 |
– |
|
2 |
|
%define gridsite_major_version 1 |
3 |
|
%define gridsite_minor_version 0 |
4 |
|
%define gridsite_micro_version 0 |
5 |
|
%define gridsite_version %gridsite_major_version.%gridsite_minor_version.%gridsite_micro_version |
6 |
+ |
## INITENV CMD ln -sf $GRIDSITE_ROOT/lib/mod_gridsite.so $APACHE_ROOT/modules |
7 |
+ |
## INITENV CMD ln -sf $GRIDSITE_ROOT/etc/gridsite.conf $APACHE_ROOT/conf.d |
8 |
+ |
## INITENV +PATH LD_LIBRARY_PATH %i/lib |
9 |
+ |
|
10 |
|
|
11 |
< |
Source: http://www.gridsite.org/download/old-releases/%n-%v.src.tar.gz |
11 |
> |
Source: http://www.gridsite.org/download/old-releases/%{n}-%{v}.src.tar.gz |
12 |
|
Patch0: gridsite-makefiles |
13 |
|
Patch1: gridsite-flag |
14 |
|
Patch2: gridsite-purpose |
15 |
|
Patch3: gridsite-grst |
16 |
|
|
17 |
< |
Requires: libxml2 |
17 |
< |
Requires: apache |
17 |
> |
Requires: libxml2 apache |
18 |
|
|
19 |
|
%description |
20 |
|
GridSite adds GSI, VOMS and GACL support to Apache 2.0 (mod_gridsite), |
25 |
|
|
26 |
|
%prep |
27 |
|
|
28 |
< |
%setup |
28 |
> |
%setup -n %n-%v |
29 |
|
%patch0 -p0 |
30 |
|
%patch1 -p0 |
31 |
|
%patch2 -p0 |
33 |
|
|
34 |
|
%build |
35 |
|
cd lib |
36 |
< |
make prefix=%i install_prefix=%i |
36 |
> |
export CFLAGS="-I$OPENSSL_ROOT/include/openssl" |
37 |
> |
export LDFLAGS="-I$OPENSSL_ROOT/lib" |
38 |
> |
make MYCFLAGS="-I$OPENSSL_ROOT/include -I$OPENSSL_ROOT/include/openssl -I$APACHE_ROOT/include -DOPENSSL_NO_KRB5" prefix=%i install_prefix=%i |
39 |
|
cd ../mod |
40 |
< |
make prefix=%i install_prefix=%i |
40 |
> |
make MYCFLAGS="-I$OPENSSL_ROOT/include -I$OPENSSL_ROOT/include/openssl -I$APACHE_ROOT/include -DOPENSSL_NO_KRB5" prefix=%i install_prefix=%i |
41 |
|
|
42 |
|
%install |
43 |
|
|
57 |
|
ln -sf libgridsite.so.%{gridsite_version} \ |
58 |
|
libgridsite.so |
59 |
|
ln -sf libgridsite.so.%{gridsite_version} \ |
60 |
< |
libgridsite.so.%{major_gridsite_version} |
60 |
> |
libgridsite.so.%{gridsite_major_version} |
61 |
|
ln -sf libgridsite.so.%{gridsite_version} \ |
62 |
|
libgridsite.so.%{gridsite_major_version}.%{gridsite_minor_version} |
63 |
|
cd $BDIR |