File python-pyldap.spec of Package python-pyldap

#
# spec file for package python-pyldap
#
# Copyright (c) 2019 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
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyldap
Version:        3.0.0.post1
Release:        0
License:        Python-2.0
Summary:        DEPRECATED; use python-ldap instead
Url:            https://github.com/pyldap/pyldap/
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/79/c9/0943bd08c671ff2cb1007c88de628464dc6e0ca0798a64f1cdc805497dd0/pyldap-%{version}-py3-none-any.whl
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  unzip
Requires:       python-ldap >= 3.0.0
BuildArch:      noarch

%python_subpackages

%description

The pyldap fork was merged back into python-ldap,
and released as python-ldap 3.0.0.

Package pyldap 3.0 now exists only to require python-ldap.

%prep
unzip %{SOURCE0}

%build
# empty

%install
# Includes Requires-Dist: python-ldap (>=3.0.0b1)
%{python_expand mkdir -p %{buildroot}%{$python_sitelib}
cp -rp pyldap-3.0.0.post1.dist-info %{buildroot}%{$python_sitelib}
%fdupes %{buildroot}%{$python_sitelib}
}

%files %{python_files}
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by