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.5 by lat, Sat Oct 31 21:49:51 2009 UTC vs.
Revision 1.9 by elmer, Sun Aug 29 09:56:10 2010 UTC

# Line 1 | Line 1
1   ### RPM external python-ldap 2.3.5
2 + ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
3 +
4   Source: http://voxel.dl.sourceforge.net/sourceforge/python-ldap/python-ldap-%{realversion}.tar.gz
5   Patch0: python-ldap-2.3.5-gcc44
6 < Requires: python
5 < Requires: openssl
6 < Requires: openldap
6 > Requires: python openssl openldap
7  
8   %prep
9   %setup -q -n %n-%{realversion}
10 pwd
10   %patch0 -p1
11  
12   %build
14 pwd
15
16 mkdir -p sasl2lib
17 ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so
13  
14 < perl -p -i -e 's|/usr/local/openldap-2.3/|$ENV{OPENLDAP_ROOT}/|; s|(library_dirs = .*)|$1 /usr/lib/sasl2 %{_builddir}/%n-%{realversion}/sasl2lib $ENV{OPENSSL_ROOT}/lib|;' setup.cfg
14 > perl -p -i -e 's|/usr/local/openldap-2.3/|$ENV{OPENLDAP_ROOT}/|; s|(library_dirs = .*)|$1 /usr/lib/sasl2 $ENV{OPENSSL_ROOT}/lib|;' setup.cfg
15   python setup.py build
16   %install
17   python setup.py install --prefix=%i
18  
19 < # SCRAM ToolBox toolfile
20 < mkdir -p %i/etc/scram.d
21 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
22 < <doc type=BuildSystem::ToolDoc version=1.0>
23 < <Tool name=%n version=%v>
24 < <info url="http://python-ldap.sourceforge.net/"></info>
25 < <Client>
26 < <Environment name=PYTHON_LDAP_BASE default="%i"></Environment>
27 < <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
19 > # Dependencies environment
20 > rm -rf %i/etc/profile.d
21 > mkdir -p %i/etc/profile.d
22 > for x in %pkgreqs; do
23 >  case $x in /* ) continue ;; esac
24 >  p=%{instroot}/%{cmsplatf}/$(echo $x | sed 's/\([^+]*\)+\(.*\)+\([A-Z0-9].*\)/\1 \2 \3/' | tr ' ' '/')
25 >  echo ". $p/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh
26 >  echo "source $p/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh
27 > done
28  
41 export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.)
42 perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/*
29  
30   %post
31 < %{relocateConfig}etc/scram.d/%n
31 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
32 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
33 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines