forked from pool/python-ldap
Accepting request 567662 from home:bergmannf:branches:devel:languages:python
Reworked changes file to be more concise. OBS-URL: https://build.opensuse.org/request/show/567662 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=110
This commit is contained in:
committed by
Git OBS Bridge
parent
2bbcf2c394
commit
58f65a7410
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ldap
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,16 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-ldap
|
||||
Version: 2.5.2
|
||||
Version: 3.0.0b4
|
||||
Release: 0
|
||||
Summary: Python LDAP interface
|
||||
License: Python-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Url: https://www.python-ldap.org/
|
||||
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
|
||||
BuildRequires: %{python_module devel >= 2.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: cyrus-sasl-devel >= 2.1
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: krb5-devel
|
||||
@@ -33,18 +34,13 @@ BuildRequires: libopenssl-devel >= 0.9.7
|
||||
BuildRequires: openldap2
|
||||
BuildRequires: openldap2-client
|
||||
BuildRequires: openldap2-devel >= 2.4.11
|
||||
BuildRequires: python-devel >= 2.7
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: libldap-2_4-2 >= 2.4.11
|
||||
Requires: python-pyasn1 >= 0.3.7
|
||||
Requires: python-pyasn1-modules >= 0.1.5
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%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
|
||||
|
||||
# for singlespec
|
||||
Provides: python2-ldap
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
python-ldap provides an object-oriented API to access LDAP directory
|
||||
@@ -57,13 +53,13 @@ LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
|
||||
cp Build/setup.cfg.suse-linux setup.cfg
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
CFLAGS="%{optflags}" %python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%fdupes %{buildroot}/%{_libdir}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc README Demo CHANGES TODO LICENCE
|
||||
%{python_sitearch}/*
|
||||
|
||||
Reference in New Issue
Block a user