1 Summary: LDAP Module for Python
2 Summary(pl.UTF-8): Moduł LDAP dla Pythona
8 Group: Libraries/Python
9 Source0: http://pypi.python.org/packages/source/p/python-ldap/%{name}-%{version}.tar.gz
10 # Source0-md5: 564d741a7c6d5fdcb45322fe9262d1a5
11 Patch0: %{name}-sasl2.patch
12 URL: http://python-ldap.sourceforge.net/
13 BuildRequires: cyrus-sasl >= 2.1.0
14 BuildRequires: openldap-devel >= 2.4.6
15 BuildRequires: python-devel >= 1:2.5
16 BuildRequires: python-modules
17 BuildRequires: rpm-pythonprov
18 %pyrequires_eq python-modules
21 Obsoletes: python-ldapmodule
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides access to the LDAP (C language) library.
27 %description -l pl.UTF-8
28 Moduł ten umożliwia dostęp do bibliotek LDAP.
38 rm -rf $RPM_BUILD_ROOT
40 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
43 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
44 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %attr(755,root,root) %{py_sitedir}/*.so
53 %{py_sitedir}/*.py[co]
55 %{py_sitedir}/*.egg-info