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.2 by ratnik, Fri Jul 11 21:30:29 2008 UTC vs.
Revision 1.5 by lat, Sat Oct 31 21:49:51 2009 UTC

# Line 1 | Line 1
1   ### RPM external python-ldap 2.3.5
2   Source: http://voxel.dl.sourceforge.net/sourceforge/python-ldap/python-ldap-%{realversion}.tar.gz
3 + Patch0: python-ldap-2.3.5-gcc44
4   Requires: python
5   Requires: openssl
6   Requires: openldap
# Line 7 | Line 8 | Requires: openldap
8   %prep
9   %setup -q -n %n-%{realversion}
10   pwd
11 + %patch0 -p1
12 +
13   %build
14   pwd
15  
# Line 26 | 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>
36   <use name=python>
37   <Runtime name=PYTHONPATH value="$PYTHON_LDAP_PYPATH" type=path>
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