ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/openldap.spec
Revision: 1.1
Committed: Thu Jul 10 21:26:05 2008 UTC (16 years, 9 months ago) by ratnik
Branch: MAIN
Log Message:
Configured as required for python-ldap.
Depends on openssl, db4 , and system version of cyrus-sasl.

File Contents

# Content
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
4 Provides: libsasl2.so.2
5
6 #http://www.openssl.org/source/%n-%realversion.tar.gz
7
8 %prep
9 %setup -q -n %n-%{realversion}
10 pwd
11 %build
12
13 # CC C compiler command
14 # CFLAGS C compiler flags
15 # LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
16 # nonstandard directory <lib dir>
17 # CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
18 # headers in a nonstandard directory <include dir>
19 # CPP C preprocessor
20
21 %define gcc_setup CC=$GCC_ROOT/bin/cc
22 %define ssl_setup CPPFLAGS=-I$OPENSSL_ROOT/include LDFLAGS=-L$OPENSSL_ROOT/lib
23 %define db4_setup CPPFLAGS=-I$DB4_ROOT/include LDFLAGS=-L$DB4_ROOT/lib
24
25 %gcc_setup %ssl_setup %db4_setup ./configure --prefix=%i --with-cyrus-sasl --with-tls
26 make depend
27 make
28 %install
29 make install