File python3-yaookctl.spec of Package python3-yaookctl

#
# spec file for package python3-kubernetes_asyncio
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#

%define babel Babel
%if 0%{?sle_version} == 150600
%define py3 python311
%define py3b python3.11
%define python_version 3.11
%define python_sitelib /usr/lib/python3.11/site-packages
%else
%define py3 python3
%define py3b python3
%endif
%if 0%{?fedora} == 42
%define python_version 3.13
%define python_sitelib /usr/lib/python3.13/site-packages
%global debug_package %{nil}
%define babel babel
%endif

Name:           %{py3}-yaookctl
Version:        0.0.1
Release:        0
Summary:	Yaook CLI tool
License:        Apache-2.0
URL:            https://gitlab.com/yaook/yaookctl
Source0:        yaookctl.tar.gz
BuildRequires:  %{py3}-setuptools
BuildRequires:	%{py3}-click
BuildRequires:	%{py3}-click-option-group
BuildRequires:	%{py3}-prettytable
BuildRequires:	%{py3}-kubernetes_asyncio
BuildRequires:	%{py3}-%{babel}
BuildRequires:	%{py3}-typing-extensions
Requires:	%{py3}-prettytable %{py3}-click %{py3}-click-option-group %{py3}-kubernetes_asyncio

%description
A command-line tool to inspect the health of a Yaook cluster using information
obtained from Kubernetes.


%prep
%autosetup -p1 -n yaookctl

%build
%{py3b} setup.py build

%install
%{py3b} setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%license LICENSE
%doc README.md
%{python_sitelib}/yaookctl-%{version}-py%{python_version}.egg-info
%{python_sitelib}/yaookctl
%{_bindir}/yaookctl
%{_bindir}/kubectl-yaook

%changelog

openSUSE Build Service is sponsored by