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

Comparing COMP/CMSDIST/python-ldap.spec (file contents):
Revision 1.4 by elmer, Thu May 7 20:22:31 2009 UTC vs.
Revision 1.5 by lat, Sat Oct 31 21:49:51 2009 UTC

# Line 29 | Line 29 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
29   <info url="http://python-ldap.sourceforge.net/"></info>
30   <Client>
31   <Environment name=PYTHON_LDAP_BASE default="%i"></Environment>
32 < <Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python2.4/site-packages"></Environment>
32 > <Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python@PYTHONV@/site-packages"></Environment>
33   </Client>
34   <use name=openssl>
35   <use name=openldap>
# Line 38 | Line 38 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
38   </Tool>
39   EOF_TOOLFILE
40  
41 + export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
42 + perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
43 +
44   %post
45   %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines