]> git.pld-linux.org Git - packages/python-ldap.git/blob - python-ldap.spec
- 2.3.7
[packages/python-ldap.git] / python-ldap.spec
1 Summary:        LDAP Module for Python
2 Summary(pl.UTF-8):      Moduł LDAP dla Pythona
3 Name:           python-ldap
4 Version:        2.3.7
5 Release:        1
6 Epoch:          1
7 License:        Public Domain
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
17 Provides:       ldapmodule
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      ldapmodule
20 Obsoletes:      python-ldapmodule
21
22 %description
23 This module provides access to the LDAP (C language) library.
24
25 %description -l pl.UTF-8
26 Moduł ten umożliwia dostęp do bibliotek LDAP.
27
28 %prep
29 %setup -q
30 %patch0 -p1
31
32 %build
33 python setup.py build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37
38 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
39 export PYTHONPATH
40
41 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
42 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %attr(755,root,root) %{py_sitedir}/*.so
51 %{py_sitedir}/*.py[co]
52 %{py_sitedir}/ldap
53 %{py_sitedir}/*.egg-info
This page took 0.026629 seconds and 3 git commands to generate.