ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/openldap.spec
(Generate patch)

Comparing COMP/CMSDIST/openldap.spec (file contents):
Revision 1.1 by ratnik, Thu Jul 10 21:26:05 2008 UTC vs.
Revision 1.9 by eulisse, Tue Aug 24 10:28:01 2010 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines