1 Summary: LDAP Module for Python
2 Summary(pl): Modu³ LDAP dla Pythona
8 Group: Libraries/Python
9 Source0: http://dl.sourceforge.net/python-ldap/%{name}-%{version}.tar.gz
10 # Source0-md5: 59fd9345a77451b7749a28a458406695
11 Patch0: %{name}-sasl2.patch
12 URL: http://python-ldap.sourceforge.net/
13 BuildRequires: python-devel >= 2.2.1
14 BuildRequires: rpm-pythonprov
15 BuildRequires: openldap-devel >= 2.1.3
16 BuildRequires: cyrus-sasl >= 2.1.0
17 %pyrequires_eq python-modules
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes: python-ldapmodule
24 This module provides access to the LDAP (C language) library.
27 Modu³ ten umo¿liwia dostêp do bibliotek LDAP.
37 rm -rf $RPM_BUILD_ROOT
39 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
42 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
43 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
51 %attr(755,root,root) %{py_sitedir}/*.so
52 %{py_sitedir}/*.py[co]