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.6 by elmer, Wed May 6 03:36:57 2009 UTC vs.
Revision 1.10 by elmer, Fri Aug 27 07:49:51 2010 UTC

# Line 6 | Line 6 | 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
9   %prep
10   %setup -q -n %n-%{realversion}
13 pwd
11   %patch0 -p1
12  
13   %build
14  
18 pwd
19
20 # Fix missing sasl2 library link on 64-bit SLC4:
21
22 mkdir -p sasl2lib
23 ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so
24
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
# Line 33 | 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
36 which cc
37 which gcc
26  
27   ./configure --prefix=%i --with-cyrus-sasl --with-tls
28   make depend
29   make
30   %install
31   make install
44
45 # SCRAM ToolBox toolfile
46 mkdir -p %i/etc/scram.d
47 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
48 <doc type=BuildSystem::ToolDoc version=1.0>
49 <Tool name=%n version=%v>
50 <Client>
51 <Environment name=OPENLDAP_BASE default="%i"></Environment>
52 <Environment name=LIBDIR default="$OPENLDAP_BASE/lib"></Environment>
53 </Client>
54 <use name=openssl>
55 <use name=db4>
56 </Tool>
57 EOF_TOOLFILE
58
59 %post
60 %{relocateConfig}etc/scram.d/%n
61

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines