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: b080feba004e626b6d4972d19914140b
11 Patch0: %{name}-sasl2.patch
12 URL: http://python-ldap.sourceforge.net/
13 BuildRequires: python-devel >= 1:2.5
14 BuildRequires: openldap-devel >= 2.4.6
15 BuildRequires: cyrus-sasl >= 2.1.0
16 %pyrequires_eq python-modules
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes: python-ldapmodule
23 This module provides access to the LDAP (C language) library.
25 %description -l pl.UTF-8
26 Moduł ten umożliwia dostęp do bibliotek LDAP.
36 rm -rf $RPM_BUILD_ROOT
38 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
41 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
42 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
50 %attr(755,root,root) %{py_sitedir}/*.so
51 %{py_sitedir}/*.py[co]
53 %{py_sitedir}/*.egg-info