]> git.pld-linux.org Git - packages/python-ldap.git/blob - python-ldap.spec
- fixed requirements
[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:        1.10alpha3
5 Release:        1
6 License:        Public Domain 
7 Group:          Development/Libraries
8 Group(de):      Entwicklung/Libraries
9 Group(es):      Desarrollo/Bibliotecas
10 Group(fr):      Development/Librairies
11 Group(pl):      Programowanie/Biblioteki
12 Group(pt_BR):   Desenvolvimento/Bibliotecas
13 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
14 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
15 Source0:        http://prdownloads.sourceforge.net/python-ldap/%{name}-%{version}-src.tar.gz
16 Patch0:         %{name}-openldap2.x.patch
17 Patch1:         %{name}-Makefile.patch
18 Patch2:         %{name}-no_ufn.patch
19 URL:            http://python-ldap.sourceforge.net/
20 BuildRequires:  python-devel >= 2.1
21 BuildRequires:  openldap-devel >= 1.2.6
22 %requires_eq    python
23 Requires:       openldap >= 1.2.6
24 Provides:       ldapmodule
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Obsoletes:      ldapmodule
27 Obsoletes:      python-ldapmodule
28
29 %include /usr/lib/rpm/macros.python
30
31 %description
32 This module provides access to the LDAP (C language) library.
33
34 %description -l pl
35 Modu³ ten umo¿liwia dostêp do bibliotek LDAP.
36
37 %prep        
38 %setup -q
39 %patch0 -p1
40 %patch1 -p1
41 %patch2 -p1
42
43 %build
44 # %%configure will not work!
45 CFLAGS="%{rpmcflags}" sh configure --prefix=%{_prefix}
46 %{__make}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}}
51
52 %{__make} install DESTDIR="$RPM_BUILD_ROOT"
53 install Demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
54
55 gzip -9fn README TODO ChangeLog Doc/_ldap/*
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Doc/_ldap/*.gz *.gz
63 %dir %{py_sitedir}/%{name}/*.py?
64 %attr(755,root,root) %{py_sitedir}/*.so
65 %{py_sitedir}/*.pth
66 %{_examplesdir}/%{name}
This page took 0.034215 seconds and 3 git commands to generate.