File python-launchpadlib.spec of Package python-launchpadlib

#
# spec file for package python-launchpadlib
#
# Copyright (c) 2020 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-launchpadlib
Version:        1.10.9
Release:        0
License:        LGPL v3 (FIXME:No SPDX)
Summary:        Script Launchpad through its web services interfaces.  Officially supported
Url:            https://help.launchpad.net/API/launchpadlib
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/l/launchpadlib/launchpadlib-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module setuptools}
# SECTION test requirements
BuildRequires:  %{python_module httplib2}
BuildRequires:  %{python_module keyring}
BuildRequires:  %{python_module lazr.restfulclient >= 0.9.19}
BuildRequires:  %{python_module lazr.uri}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module testresources}
BuildRequires:  %{python_module wadllib}
# /SECTION
BuildRequires:  fdupes
Requires:       python-httplib2
Requires:       python-keyring
Requires:       python-lazr.restfulclient >= 0.9.19
Requires:       python-lazr.uri
Requires:       python-setuptools
Requires:       python-testresources
Requires:       python-wadllib
Suggests:       python-Sphinx
BuildArch:      noarch

%python_subpackages

%description
Script Launchpad through its web services interfaces.  Officially supported.

%prep
%setup -q -n launchpadlib-%{version}

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test

%files %{python_files}
%doc NEWS.rst README.rst
%license COPYING.txt
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by