3 %bcond_with tests # do not perform "make test"
6 Summary: LDAP client API for Python
7 Summary(pl.UTF-8): API klienckie LDAP dla Pythona
13 Group: Libraries/Python
14 Source0: https://pypi.python.org/packages/67/d9/fa0ea70d1792875745116ad62ac8d4bcb07550b15cded591bb57df6a6d9a/%{name}-%{version}.tar.gz
15 # Source0-md5: 7c46c8a04acc227a778c7900c87cdfc7
16 Patch0: %{name}-sasl2.patch
17 URL: http://python-ldap.sourceforge.net/
18 BuildRequires: rpmbuild(macros) >= 1.710
19 BuildRequires: cyrus-sasl >= 2.1.0
20 BuildRequires: openldap-devel >= 2.4.6
21 BuildRequires: python-devel >= 1:2.5
22 BuildRequires: python-modules >= 1:2.5
23 BuildRequires: rpm-pythonprov
24 Requires: python-modules
27 Obsoletes: python-ldapmodule
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 python-ldap provides an object-oriented API to access LDAP directory
32 servers from Python programs. Mainly it wraps the OpenLDAP client libs
35 Additionally the package contains modules for other LDAP-related stuff
36 (e.g. processing LDIF, LDAPURLs, LDAPv3 sub-schema, etc.).
38 %description -l pl.UTF-8
39 Moduł python-ldap dostarcza zorientowane obiektowo API pozwalające na
40 dostęp do usług katalogowych LDAP z poziomu programów w Pythonie.
41 Głównie obudowuje w tym celu biblioteki klienckie OpenLDAP.
43 Dodatkowo pakiet zawiera moduły do innych zadań związanych z LDAP (jak
44 przetwarzanie LDIF, LDAPURL, podschematy LDAPv3 itp.).
54 %{__python} setup.py test
57 PYTHONPATH=$(echo build-2/lib.linux-*/) \
58 %{__python} -c "import ldap; print ldap.__version__; ldapo = ldap.initialize('ldap://localhost')"
62 rm -rf $RPM_BUILD_ROOT
63 #PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc CHANGES LICENCE README TODO
74 %attr(755,root,root) %{py_sitedir}/_ldap.so
75 %{py_sitedir}/dsml.py[co]
76 %{py_sitedir}/ldapurl.py[co]
77 %{py_sitedir}/ldif.py[co]
79 %{py_sitedir}/python_ldap-%{version}-py*.egg-info