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