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.8 by muzaffar, Tue Aug 10 15:14:03 2010 UTC

# Line 1 | Line 1
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
3 + ## INITENV +PATH LD_LIBRARY_PATH %i/lib
4   Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz
5 < Requires: openssl db4
6 < Provides: libsasl2.so.2
5 > Patch0: openldap-2.3.39-gcc44
6 > Requires: openssl db4
7 > #cyrus-sasl
8 > Provides: libsasl2.so.2 libsasl2.so.2()(64bit)
9  
10   #http://www.openssl.org/source/%n-%realversion.tar.gz
11  
12   %prep
13   %setup -q -n %n-%{realversion}
14   pwd
15 + %patch0 -p1
16 +
17   %build
18  
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 +
26   #  CC          C compiler command
27   #  CFLAGS      C compiler flags
28   #  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
# Line 18 | Line 31 | pwd
31   #              headers in a nonstandard directory <include dir>
32   #  CPP         C preprocessor
33  
34 < %define gcc_setup CC=$GCC_ROOT/bin/cc
35 < %define ssl_setup CPPFLAGS=-I$OPENSSL_ROOT/include LDFLAGS=-L$OPENSSL_ROOT/lib
36 < %define db4_setup CPPFLAGS=-I$DB4_ROOT/include LDFLAGS=-L$DB4_ROOT/lib
34 > export CPPFLAGS="-I$OPENSSL_ROOT/include -I$DB4_ROOT/include -I$CYRUS_SASL_ROOT/include"
35 > export LDFLAGS="-L$OPENSSL_ROOT/lib -L$DB4_ROOT/lib -L$CYRUS_SASL_ROOT/lib -L%{_builddir}/%n-%{realversion}/sasl2lib"
36 > echo $CPPFLAGS
37 > which cc
38 > which gcc
39  
40 < %gcc_setup %ssl_setup %db4_setup ./configure --prefix=%i --with-cyrus-sasl --with-tls
40 > ./configure --prefix=%i --with-cyrus-sasl --with-tls
41   make depend
42   make
43   %install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines