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.3 by ratnik, Thu Aug 7 13:04:38 2008 UTC vs.
Revision 1.10 by elmer, Fri Aug 27 07:49:51 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 + Patch0: openldap-2.3.39-gcc44
5   Requires: openssl db4
6   #cyrus-sasl
7 < Provides: libsasl2.so.2
7 <
8 < #http://www.openssl.org/source/%n-%realversion.tar.gz
7 > Provides: libsasl2.so.2 libsasl2.so.2()(64bit)
8  
9   %prep
10   %setup -q -n %n-%{realversion}
11 < pwd
13 < %build
14 <
15 < pwd
16 <
17 < # Fix missing sasl2 library link on 64-bit SLC4:
11 > %patch0 -p1
12  
13 < mkdir -p sasl2lib
20 < ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so
13 > %build
14  
15   #  CC          C compiler command
16   #  CFLAGS      C compiler flags
# Line 30 | Line 23 | ln -s /usr/lib/libsasl2.so.2.0.19 sasl2l
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
33 which cc
34 which gcc
26  
27   ./configure --prefix=%i --with-cyrus-sasl --with-tls
28   make depend
29   make
30   %install
31   make install
41
42 # SCRAM ToolBox toolfile
43 mkdir -p %i/etc/scram.d
44 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
45 <doc type=BuildSystem::ToolDoc version=1.0>
46 <Tool name=%n version=%v>
47 <Client>
48 <Environment name=OPENLDAP_BASE default="%i"></Environment>
49 <Environment name=LIBDIR default="$OPENLDAP_BASE/lib"></Environment>
50 </Client>
51 </Tool>
52 EOF_TOOLFILE
53
54 %post
55 %{relocateConfig}etc/scram.d/%n
56

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines