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.7 by muzaffar, Tue Apr 20 08:32:32 2010 UTC vs.
Revision 1.8 by muzaffar, Tue Aug 10 15:25:07 2010 UTC

# Line 18 | Line 18 | python setup.py build
18   %install
19   python setup.py install --prefix=%i
20  
21 # SCRAM ToolBox toolfile
22 mkdir -p %i/etc/scram.d
23 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n.xml
24  <tool name="%n" version="%v">
25    <info url="http://python-ldap.sourceforge.net/"/>
26    <client>
27      <environment name="PYTHON_LDAP_BASE" default="%i"/>
28      <environment name="PYTHON_LDAP_PYPATH" default="$PYTHON_LDAP_BASE/lib/python@PYTHONV@/site-packages"/>
29    </client>
30    <runtime name="PYTHONPATH" value="$PYTHON_LDAP_PYPATH" type="path"/>
31    <use name="openssl"/>
32    <use name="openldap"/>
33    <use name="python"/>
34  </tool>
35 EOF_TOOLFILE
36
37 export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
38 perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
39
21   # Dependencies environment
22   rm -rf %i/etc/profile.d
23   mkdir -p %i/etc/profile.d
# Line 49 | Line 30 | done
30  
31  
32   %post
52 %{relocateConfig}etc/scram.d/%n.xml
53 # The relocation below is also needed for dependencies
33   %{relocateConfig}etc/profile.d/dependencies-setup.sh
34   %{relocateConfig}etc/profile.d/dependencies-setup.csh
35  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines