1 |
|
### RPM external openldap 2.3.39 |
2 |
|
Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz |
3 |
< |
Requires: openssl db4 |
3 |
> |
Requires: openssl db4 |
4 |
> |
#cyrus-sasl |
5 |
|
Provides: libsasl2.so.2 |
6 |
|
|
7 |
|
#http://www.openssl.org/source/%n-%realversion.tar.gz |
11 |
|
pwd |
12 |
|
%build |
13 |
|
|
14 |
+ |
pwd |
15 |
+ |
|
16 |
+ |
# Fix missing sasl2 library link on 64-bit SLC4: |
17 |
+ |
|
18 |
+ |
mkdir -p sasl2lib |
19 |
+ |
ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so |
20 |
+ |
|
21 |
|
# CC C compiler command |
22 |
|
# CFLAGS C compiler flags |
23 |
|
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
26 |
|
# headers in a nonstandard directory <include dir> |
27 |
|
# CPP C preprocessor |
28 |
|
|
29 |
< |
%define gcc_setup CC=$GCC_ROOT/bin/cc |
30 |
< |
%define ssl_setup CPPFLAGS=-I$OPENSSL_ROOT/include LDFLAGS=-L$OPENSSL_ROOT/lib |
31 |
< |
%define db4_setup CPPFLAGS=-I$DB4_ROOT/include LDFLAGS=-L$DB4_ROOT/lib |
29 |
> |
export CPPFLAGS="-I$OPENSSL_ROOT/include -I$DB4_ROOT/include -I$CYRUS_SASL_ROOT/include" |
30 |
> |
export LDFLAGS="-L$OPENSSL_ROOT/lib -L$DB4_ROOT/lib -L$CYRUS_SASL_ROOT/lib -L%{_builddir}/%n-%{realversion}/sasl2lib" |
31 |
> |
echo $CPPFLAGS |
32 |
> |
which cc |
33 |
> |
which gcc |
34 |
|
|
35 |
< |
%gcc_setup %ssl_setup %db4_setup ./configure --prefix=%i --with-cyrus-sasl --with-tls |
35 |
> |
./configure --prefix=%i --with-cyrus-sasl --with-tls |
36 |
|
make depend |
37 |
|
make |
38 |
|
%install |