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