2019-12-03 12:10:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-osc-tiny
|
|
|
|
#
|
2025-06-20 12:33:16 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-12-03 12:10:50 +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.
|
|
|
|
|
2019-12-03 12:11:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-12-03 12:10:50 +00:00
|
|
|
|
|
|
|
|
2021-01-07 11:37:34 +00:00
|
|
|
%define skip_python2 1
|
2024-05-13 11:38:30 +00:00
|
|
|
%{?sle15allpythons}
|
2019-12-03 12:10:50 +00:00
|
|
|
Name: python-osc-tiny
|
2025-07-01 09:24:41 +00:00
|
|
|
Version: 0.10.8
|
2019-12-03 12:10:50 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Client API for openSUSE BuildService
|
2019-12-03 12:11:52 +00:00
|
|
|
License: MIT
|
2019-12-03 12:10:50 +00:00
|
|
|
Group: Development/Languages/Python
|
2024-05-13 12:16:36 +00:00
|
|
|
URL: https://github.com/SUSE/osc-tiny
|
2024-08-13 12:59:57 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/o/osc-tiny/osc_tiny-%{version}.tar.gz
|
2021-01-07 11:37:34 +00:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
2019-12-03 12:10:50 +00:00
|
|
|
BuildRequires: %{python_module lxml}
|
2024-12-11 10:34:55 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-03-27 13:53:56 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-01-13 12:03:45 +00:00
|
|
|
BuildRequires: %{python_module python-dateutil}
|
2020-01-02 08:56:37 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
2019-12-03 12:10:50 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2022-08-02 08:23:11 +00:00
|
|
|
BuildRequires: %{python_module responses}
|
2019-12-03 12:11:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2024-12-11 10:34:55 +00:00
|
|
|
BuildRequires: %{python_module urllib3}
|
2019-12-03 12:10:50 +00:00
|
|
|
BuildRequires: fdupes
|
2019-12-03 12:11:52 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-08-02 15:45:54 +00:00
|
|
|
Requires: python-PyYAML
|
2019-12-03 12:10:50 +00:00
|
|
|
Requires: python-lxml
|
2020-01-13 12:03:45 +00:00
|
|
|
Requires: python-python-dateutil
|
2020-01-02 08:56:37 +00:00
|
|
|
Requires: python-pytz
|
2019-12-03 12:10:50 +00:00
|
|
|
Requires: python-requests
|
2024-12-11 10:34:55 +00:00
|
|
|
Requires: python-urllib3
|
2022-06-09 15:20:24 +00:00
|
|
|
Suggests: openssh
|
2020-01-13 12:04:20 +00:00
|
|
|
BuildArch: noarch
|
2022-08-03 12:49:07 +00:00
|
|
|
# Using 'if' instead of 'with' because the latter requires rpm >= 4.14
|
2022-08-06 15:05:13 +00:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2022-08-03 12:50:45 +00:00
|
|
|
BuildRequires: %{python_module cached-property if %python-base < 3.8}
|
2022-08-06 15:05:13 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: %{python_module cached-property}
|
|
|
|
%endif
|
2025-07-15 12:53:41 +00:00
|
|
|
Requires: %{python_module cached-property if %python-base < 3.8}
|
|
|
|
|
2019-12-03 12:10:50 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-12-03 12:11:52 +00:00
|
|
|
OSC Tiny provides a minimalistic, transparent and class based client for
|
2019-12-03 12:10:50 +00:00
|
|
|
accessing the OpenBuildService API.
|
|
|
|
|
|
|
|
For further details see:
|
|
|
|
|
2022-08-02 08:22:03 +00:00
|
|
|
* https://osc-tiny.readthedocs.io/en/latest/
|
|
|
|
* https://openbuildservice.org/
|
|
|
|
* https://build.opensuse.org/apidocs/index
|
2019-12-03 12:10:50 +00:00
|
|
|
|
|
|
|
%prep
|
2024-12-11 10:34:55 +00:00
|
|
|
%autosetup -p1 -n osc_tiny-%{version}
|
2019-12-03 12:10:50 +00:00
|
|
|
|
|
|
|
%build
|
2024-12-11 10:34:55 +00:00
|
|
|
%pyproject_wheel
|
2019-12-03 12:10:50 +00:00
|
|
|
|
|
|
|
%install
|
2024-12-11 10:34:55 +00:00
|
|
|
%pyproject_install
|
2019-12-03 12:10:50 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2022-08-02 08:22:03 +00:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2019-12-03 12:10:50 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
2022-11-02 15:19:31 +00:00
|
|
|
%{python_sitelib}/osctiny
|
|
|
|
%{python_sitelib}/osc_tiny-%{version}*-info
|
2019-12-03 12:10:50 +00:00
|
|
|
|
|
|
|
%changelog
|