2007-01-15 23:34:04 +00:00
|
|
|
#
|
2011-03-08 09:31:03 +00:00
|
|
|
# spec file for package python-ldap
|
2007-01-15 23:34:04 +00:00
|
|
|
#
|
2014-03-28 13:50:51 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:34:04 +00:00
|
|
|
#
|
2008-09-06 01:15:19 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-15 23:34:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2008-04-03 23:44:24 +00:00
|
|
|
|
2007-01-15 23:34:04 +00:00
|
|
|
Name: python-ldap
|
2017-10-09 15:16:04 +00:00
|
|
|
Version: 2.4.45
|
2013-06-18 11:32:48 +00:00
|
|
|
Release: 0
|
2007-01-15 23:34:04 +00:00
|
|
|
Summary: Python LDAP interface
|
2014-03-28 13:50:51 +00:00
|
|
|
License: Python-2.0
|
2012-03-16 14:35:11 +00:00
|
|
|
Group: Development/Libraries/Python
|
2016-02-23 10:25:22 +00:00
|
|
|
Url: https://www.python-ldap.org/
|
2017-01-25 20:14:59 +00:00
|
|
|
Source0: https://pypi.io/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
|
|
|
|
|
Source1: https://pypi.io/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz.asc
|
|
|
|
|
Source2: %{name}.keyring
|
2013-06-18 11:32:48 +00:00
|
|
|
BuildRequires: cyrus-sasl-devel >= 2.1
|
2012-03-16 14:35:11 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: krb5-devel
|
2013-06-18 11:32:48 +00:00
|
|
|
BuildRequires: libopenssl-devel >= 0.9.7
|
2017-04-27 08:50:05 +00:00
|
|
|
BuildRequires: openldap2
|
|
|
|
|
BuildRequires: openldap2-client
|
2012-03-16 14:35:11 +00:00
|
|
|
BuildRequires: openldap2-devel >= 2.4.11
|
2013-06-18 11:32:48 +00:00
|
|
|
BuildRequires: python-devel >= 2.3
|
2017-04-27 08:50:05 +00:00
|
|
|
BuildRequires: python-setuptools
|
2012-03-16 14:35:11 +00:00
|
|
|
Requires: libldap-2_4-2 >= 2.4.11
|
2012-03-23 11:50:02 +00:00
|
|
|
Requires: python-pyasn1
|
|
|
|
|
Requires: python-pyasn1-modules
|
2007-01-15 23:34:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-03-16 14:35:11 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
%endif
|
2007-01-15 23:34:04 +00:00
|
|
|
|
2017-05-18 15:06:32 +00:00
|
|
|
# for singlespec
|
|
|
|
|
Provides: python2-ldap
|
|
|
|
|
|
2007-01-15 23:34:04 +00:00
|
|
|
%description
|
2016-02-10 17:20:20 +00:00
|
|
|
python-ldap provides an object-oriented API to access LDAP directory
|
|
|
|
|
servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs
|
|
|
|
|
for that purpose. Additionally the package contains modules for other
|
|
|
|
|
LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
|
2007-01-15 23:34:04 +00:00
|
|
|
|
|
|
|
|
%prep
|
2012-03-16 14:35:11 +00:00
|
|
|
%setup -q
|
2008-04-03 23:44:24 +00:00
|
|
|
cp Build/setup.cfg.suse-linux setup.cfg
|
2007-01-15 23:34:04 +00:00
|
|
|
|
|
|
|
|
%build
|
2016-02-10 17:20:20 +00:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2007-01-15 23:34:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2012-03-16 14:35:11 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
%fdupes %{buildroot}/%{_libdir}
|
2007-01-15 23:34:04 +00:00
|
|
|
|
2012-03-16 14:35:11 +00:00
|
|
|
%files
|
2007-01-15 23:34:04 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README Demo CHANGES TODO LICENCE
|
2012-03-16 14:35:11 +00:00
|
|
|
%{python_sitearch}/*
|
2007-01-15 23:34:04 +00:00
|
|
|
|
2007-08-02 21:30:14 +00:00
|
|
|
%changelog
|