1 |
|
### RPM external openldap 2.3.39 |
2 |
– |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
2 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib |
3 |
|
Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz |
4 |
|
Patch0: openldap-2.3.39-gcc44 |
6 |
|
#cyrus-sasl |
7 |
|
Provides: libsasl2.so.2 libsasl2.so.2()(64bit) |
8 |
|
|
10 |
– |
#http://www.openssl.org/source/%n-%realversion.tar.gz |
11 |
– |
|
9 |
|
%prep |
10 |
|
%setup -q -n %n-%{realversion} |
14 |
– |
pwd |
11 |
|
%patch0 -p1 |
12 |
|
|
13 |
|
%build |
14 |
|
|
19 |
– |
pwd |
20 |
– |
|
21 |
– |
# Fix missing sasl2 library link on 64-bit SLC4: |
22 |
– |
|
23 |
– |
mkdir -p sasl2lib |
24 |
– |
ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so |
25 |
– |
|
15 |
|
# CC C compiler command |
16 |
|
# CFLAGS C compiler flags |
17 |
|
# LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
23 |
|
export CPPFLAGS="-I$OPENSSL_ROOT/include -I$DB4_ROOT/include -I$CYRUS_SASL_ROOT/include" |
24 |
|
export LDFLAGS="-L$OPENSSL_ROOT/lib -L$DB4_ROOT/lib -L$CYRUS_SASL_ROOT/lib -L%{_builddir}/%n-%{realversion}/sasl2lib" |
25 |
|
echo $CPPFLAGS |
37 |
– |
which cc |
38 |
– |
which gcc |
26 |
|
|
27 |
|
./configure --prefix=%i --with-cyrus-sasl --with-tls |
28 |
|
make depend |