]> git.pld-linux.org Git - packages/python-ldap.git/blame - python-ldap.spec
blah, that odd error was from wrong url syntax!
[packages/python-ldap.git] / python-ldap.spec
CommitLineData
e6641613
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define module ldap
4c8655fe 6Summary: LDAP Module for Python
cb70dfae 7Summary(pl.UTF-8): Moduł LDAP dla Pythona
e6641613
ER
8Name: python-%{module}
9Version: 2.4.10
f7d837db 10Release: 1
230a14c8 11Epoch: 1
c7fa9053 12License: Public Domain
9716bb47 13Group: Libraries/Python
31b8d43c 14Source0: http://pypi.python.org/packages/source/p/python-ldap/%{name}-%{version}.tar.gz
1bb8b449 15# Source0-md5: d76131af192771567d3f2d2aff9469a9
cdde2ccc 16Patch0: %{name}-sasl2.patch
fec0f309 17Patch1: build.patch
4c8655fe 18URL: http://python-ldap.sourceforge.net/
271575cb 19BuildRequires: cyrus-sasl >= 2.1.0
fac291d8 20BuildRequires: openldap-devel >= 2.4.6
21BuildRequires: python-devel >= 1:2.5
22BuildRequires: python-modules
23BuildRequires: rpm-pythonprov
e6641613 24Requires: python-modules
4c8655fe 25Provides: ldapmodule
4c8655fe
JK
26Obsoletes: ldapmodule
27Obsoletes: python-ldapmodule
fac291d8 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4c8655fe
JK
29
30%description
31This module provides access to the LDAP (C language) library.
32
e18fb2ee
JR
33%description -l pl.UTF-8
34Moduł ten umożliwia dostęp do bibliotek LDAP.
4c8655fe 35
c7fa9053 36%prep
4c8655fe 37%setup -q
271575cb 38%patch0 -p1
fec0f309 39%patch1 -p1
4c8655fe
JK
40
41%build
e6641613
ER
42CC="%{__cc}" \
43CFLAGS="%{rpmcflags}" \
44%{__python} setup.py build
45
04ae41e8
ER
46%if %{with tests}
47%{__python} setup.py test
48
bc02c391 49LDAPNOINIT=1 \
04ae41e8 50PYTHONPATH=$(echo build/lib.linux-*/) \
bc02c391 51%{__python} -c "import ldap; print ldap.__version__; ldapo = ldap.initialize('ldap://localhost')"
04ae41e8 52%endif
4c8655fe
JK
53
54%install
55rm -rf $RPM_BUILD_ROOT
e6641613
ER
56#PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
57%{__python} setup.py install \
58 --skip-build \
59 --optimize=2 \
60 --root=$RPM_BUILD_ROOT
4c8655fe 61
e6641613 62%py_postclean
4c8655fe 63
4c8655fe
JK
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
b2848440 69%doc README
26b44420 70%attr(755,root,root) %{py_sitedir}/*.so
7786ad65 71%{py_sitedir}/*.py[co]
96ac6477 72%{py_sitedir}/ldap
b575853b 73%{py_sitedir}/*.egg-info
This page took 0.04311 seconds and 4 git commands to generate.