File kirk.spec of Package kirk
#
# spec file for package kirk
#
# Copyright (c) 2023 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/
#
%bcond_with test
%define pythons python3
Name: kirk
Version: 2.0
Release: 0
Summary: All-in-one Linux Testing Framework
License: GPL-2.0-or-later
URL: https://github.com/linux-test-project/kirk
Source: https://github.com/linux-test-project/kirk/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: fdupes
%if %{with test}
BuildRequires: python3-pytest
BuildRequires: python3-pytest-asyncio
%endif
Recommends: python3-asyncssh
Recommends: python3-msgpack
BuildArch: noarch
%description
Kirk application is a fork of runltp-ng and it aims to merge multiple Linux
testing frameworks in one tool, providing support for remote testing via Qemu,
SSH, LTX, parallel execution and much more.
%prep
%autosetup -p1 -n kirk-%{version}
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%if %{with test}
%pytest
%endif
%files
%{_bindir}/kirk
%{python_sitelib}/libkirk
%{python_sitelib}/kirk-%{version}.dist-info
%doc README.md
%license LICENSE
%changelog