ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/python-ldap.spec
Revision: 1.1
Committed: Thu Jul 10 20:30:34 2008 UTC (16 years, 9 months ago) by ratnik
Branch: MAIN
Log Message:
Requested for crab developments. Requires openldap.

File Contents

# Content
1 ### RPM external python-ldap 2.3.5
2 Source: http://voxel.dl.sourceforge.net/sourceforge/python-ldap/python-ldap-%{realversion}.tar.gz
3 Requires: python
4 Requires: openldap
5
6 %prep
7 %setup -q -n %n-%{realversion}
8 pwd
9 %build
10 pwd
11 perl -p -i -e 's|/usr/local/openldap-2.3/|$ENV{OPENLDAP_ROOT}/|; s|(library_dirs = .*)|$1 /usr/lib/sasl2|;' setup.cfg
12 python setup.py build
13 %install
14 python setup.py install --prefix=%i
15
16 # SCRAM ToolBox toolfile
17 mkdir -p %i/etc/scram.d
18 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
19 <doc type=BuildSystem::ToolDoc version=1.0>
20 <Tool name=%n version=%v>
21 <info url="http://python-ldap.sourceforge.net/"></info>
22 <Client>
23 <Environment name=PYTHON_LDAP_BASE default="%i"></Environment>
24 <Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python2.4/site-packages"></Environment>
25 </Client>
26 <use name=python>
27 <Runtime name=PYTHONPATH value="$PYTHON_LDAP_PYPATH" type=path>
28 </Tool>
29 EOF_TOOLFILE
30
31 %post
32 %{relocateConfig}etc/scram.d/%n