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.12 by davidlt, Fri Mar 29 10:14:16 2013 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 < Requires: python
4 < Requires: openssl
5 < Requires: openldap
1 > ### RPM external python-ldap 2.4.10
2 > ## INITENV +PATH PYTHONPATH %{i}/${PYTHON_LIB_SITE_PACKAGES}
3 >
4 > Source: http://pypi.python.org/packages/source/p/%{n}/%{n}-%{realversion}.tar.gz
5 > Requires: python openssl openldap
6 >
7 > %define isfc %(case %{cmsplatf} in (fc*) echo 1 ;; (*) echo 0 ;; esac)
8  
9   %prep
10 < %setup -q -n %n-%{realversion}
9 < pwd
10 < %build
11 < pwd
10 > %setup -q -n %{n}-%{realversion}
11  
12 < mkdir -p sasl2lib
13 < ln -s /usr/lib/libsasl2.so.2.0.19 sasl2lib/libsasl2.so
12 > %build
13 > sed -i'' "s:\(library_dirs =\)\(.*\):\1 ${OPENSSL_ROOT}\/lib ${PYTHON_ROOT}\/lib ${OPENLDAP_ROOT}\/lib:g" setup.cfg
14 > sed -i'' "s:\(include_dirs =\)\(.*\):\1 ${OPENSSL_ROOT}\/include ${PYTHON_ROOT}\/include ${OPENLDAP_ROOT}\/include:g" setup.cfg
15 > sed -i'' "s:\(defines = \)\(.*\):\1 HAVE_TLS HAVE_LIBLDAP_R:g" setup.cfg
16  
16 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
17   python setup.py build
18 +
19   %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
24 < <doc type=BuildSystem::ToolDoc version=1.0>
25 < <Tool name=%n version=%v>
26 < <info url="http://python-ldap.sourceforge.net/"></info>
27 < <Client>
28 < <Environment name=PYTHON_LDAP_BASE default="%i"></Environment>
29 < <Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python2.4/site-packages"></Environment>
30 < </Client>
31 < <use name=python>
32 < <Runtime name=PYTHONPATH value="$PYTHON_LDAP_PYPATH" type=path>
33 < </Tool>
34 < EOF_TOOLFILE
21 > %if %isfc
22 >  mkdir -p %{i}/${PYTHON_LIB_SITE_PACKAGES}
23 >  export PYTHONPATH=%{i}/${PYTHON_LIB_SITE_PACKAGES}:${PYTHONPATH}
24 > %endif
25  
26 < %post
37 < %{relocateConfig}etc/scram.d/%n
26 > python setup.py install --skip-build --prefix=%{i}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines