2020-11-19 10:08:27 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-copr
|
|
|
|
|
#
|
2026-01-12 10:09:51 +00:00
|
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
2020-11-19 10:08:27 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2025-04-07 12:17:17 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2020-11-19 10:08:27 +00:00
|
|
|
Name: python-copr
|
2026-01-12 10:09:51 +00:00
|
|
|
Version: 2.5
|
2020-11-19 10:08:27 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python client for copr service
|
2022-03-07 13:56:11 +00:00
|
|
|
License: GPL-2.0-or-later
|
2022-12-09 00:13:44 +00:00
|
|
|
URL: https://github.com/fedora-copr/copr
|
2020-11-19 10:08:27 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/copr/copr-%{version}.tar.gz
|
2023-06-20 05:56:37 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-11-19 10:08:27 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-06-20 05:56:37 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2022-12-09 00:14:07 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-07 13:56:11 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-06-20 05:56:37 +00:00
|
|
|
Requires: python-filelock
|
2022-12-09 00:14:07 +00:00
|
|
|
Requires: python-munch
|
|
|
|
|
Requires: python-requests
|
|
|
|
|
Requires: python-requests-toolbelt
|
2023-09-08 04:09:01 +00:00
|
|
|
Requires: python-setuptools
|
2022-12-09 00:14:07 +00:00
|
|
|
BuildArch: noarch
|
2020-11-19 10:08:27 +00:00
|
|
|
# SECTION test requirements
|
2022-04-22 12:15:52 +00:00
|
|
|
BuildRequires: %{python_module filelock}
|
2020-11-19 10:08:27 +00:00
|
|
|
BuildRequires: %{python_module munch}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-04-22 12:15:52 +00:00
|
|
|
BuildRequires: %{python_module requests-gssapi}
|
2020-11-19 10:08:27 +00:00
|
|
|
BuildRequires: %{python_module requests-toolbelt}
|
2022-03-07 13:56:11 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2023-06-20 05:56:37 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2020-11-19 10:08:27 +00:00
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python client for copr service.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n copr-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2023-06-20 05:56:37 +00:00
|
|
|
%pyproject_wheel
|
2020-11-19 10:08:27 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-06-20 05:56:37 +00:00
|
|
|
%pyproject_install
|
2020-11-19 10:08:27 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
2022-12-09 00:13:44 +00:00
|
|
|
%{python_sitelib}/copr
|
2023-09-08 04:09:01 +00:00
|
|
|
%{python_sitelib}/copr-%{version}.dist-info
|
2020-11-19 10:08:27 +00:00
|
|
|
|
|
|
|
|
%changelog
|