]> git.pld-linux.org Git - packages/python-ldap.git/blob - python-ldap.spec
992c8589512000cc5930b7ea67f45a1647de3db5
[packages/python-ldap.git] / python-ldap.spec
1 Summary:        LDAP Module for Python
2 Summary(pl):    Modu³ LDAP dla Pythona
3 Name:           python-ldap
4 Version:        2.0.6
5 Release:        1
6 Epoch:          1
7 License:        Public Domain
8 Group:          Libraries/Python
9 Source0:        http://dl.sourceforge.net/python-ldap/%{name}-%{version}.tar.gz
10 # Source0-md5:  59fd9345a77451b7749a28a458406695
11 Patch0:         %{name}-sasl2.patch
12 URL:            http://python-ldap.sourceforge.net/
13 BuildRequires:  python-devel >= 2.2.1
14 BuildRequires:  rpm-pythonprov
15 BuildRequires:  openldap-devel >= 2.1.3
16 BuildRequires:  cyrus-sasl >= 2.1.0
17 %pyrequires_eq  python-modules
18 Provides:       ldapmodule
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      ldapmodule
21 Obsoletes:      python-ldapmodule
22
23 %description
24 This module provides access to the LDAP (C language) library.
25
26 %description -l pl
27 Modu³ ten umo¿liwia dostêp do bibliotek LDAP.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
34 python setup.py build
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38
39 PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
40 export PYTHONPATH
41
42 python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
43 find $RPM_BUILD_ROOT%{py_sitedir} -name "*.py" | xargs rm
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README
51 %attr(755,root,root) %{py_sitedir}/*.so
52 %{py_sitedir}/*.py[co]
53 %{py_sitedir}/ldap/*
This page took 0.019647 seconds and 2 git commands to generate.