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
|
|
|
#
|
2011-03-08 09:31:03 +00:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
2008-04-03 23:44:24 +00:00
|
|
|
|
2007-01-15 23:34:04 +00:00
|
|
|
Name: python-ldap
|
2011-10-11 12:53:10 +00:00
|
|
|
BuildRequires: fdupes krb5-devel openldap2-devel >= 2.4.11 python-devel
|
|
|
|
|
Requires: openldap2-client >= 2.4.11
|
2009-08-07 20:56:56 +00:00
|
|
|
License: Public Domain, Freeware
|
2007-01-15 23:34:04 +00:00
|
|
|
Group: Development/Libraries/Python
|
2008-04-03 23:44:24 +00:00
|
|
|
AutoReqProv: on
|
2011-10-11 12:53:10 +00:00
|
|
|
Version: 2.4.3
|
2007-08-02 21:30:14 +00:00
|
|
|
Release: 1
|
2007-01-15 23:34:04 +00:00
|
|
|
Summary: Python LDAP interface
|
2011-10-11 12:53:10 +00:00
|
|
|
Url: http://www.python-ldap.org/
|
|
|
|
|
Source: http://pypi.python.org/packages/source/p/python-ldap/python-ldap-%{version}.tar.gz
|
2007-01-15 23:34:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%{py_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
python-ldap provides an LDAP client API for Python in the spirit of
|
|
|
|
|
RFC1823. It includes a Python module called _ldapmodule that wraps an
|
|
|
|
|
LDAP C library, an object-oriented API for X.500 directories. See
|
|
|
|
|
python-ldap pages on http://python-ldap.sourceforge.net/
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup
|
2008-04-03 23:44:24 +00:00
|
|
|
cp Build/setup.cfg.suse-linux setup.cfg
|
2008-09-06 01:15:19 +00:00
|
|
|
find -name ".CVS" -o -name ".cvsignore" -exec rm -rf {} ";"
|
2007-01-15 23:34:04 +00:00
|
|
|
|
|
|
|
|
%build
|
2011-10-11 12:53:10 +00:00
|
|
|
#export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED"
|
2007-01-15 23:34:04 +00:00
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
|
2008-04-03 23:44:24 +00:00
|
|
|
%fdupes $RPM_BUILD_ROOT/%{_libdir}
|
2007-01-15 23:34:04 +00:00
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2011-03-08 09:31:03 +00:00
|
|
|
%files -f INSTALLED_FILES
|
2007-01-15 23:34:04 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README Demo CHANGES TODO LICENCE
|
|
|
|
|
|
2007-08-02 21:30:14 +00:00
|
|
|
%changelog
|