File qmk.spec of Package qmk

#
# spec file for package qmk
#
# Copyright (c) 2021 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/
#

%if %{defined primary_python}
%define pythons %{primary_python}
%else
%define pythons python311
%endif

Name:           qmk
Version:        1.1.8
Release:        0
Summary:        A program to help users work with QMK Firmware
License:        MIT
Url:            https://docs.qmk.fm/#/
Source:         qmk-%{version}.tar.gz
BuildRequires:  %{pythons}-flit-core
BuildRequires:  %{pythons}-pip
BuildRequires:  %{pythons}-wheel
BuildRequires:  %{pythons}-poetry-core

BuildRequires:  python-rpm-macros
BuildRequires:  %{pythons}-devel >= 3.9
BuildRequires:  %{pythons}-setuptools
BuildRequires:  %{pythons}-hidapi
BuildRequires:  %{pythons}-milc >= 1.9.0
BuildRequires:  %{pythons}-pyusb
BuildRequires:  %{pythons}-setuptools >= 45
BuildRequires:  %{pythons}-dotty-dict
BuildRequires:  %{pythons}-hjson
BuildRequires:  %{pythons}-jsonschema >= 4
BuildRequires:  %{pythons}-Pillow
BuildRequires:  %{pythons}-pygments
BuildRequires:  %{pythons}-pyserial
Requires:       %{pythons}-hidapi
Requires:       %{pythons}-milc >= 1.9.0
Requires:       %{pythons}-pyusb
Requires:       %{pythons}-dotty-dict
Requires:       %{pythons}-hjson
Requires:       %{pythons}-jsonschema >= 4
Requires:       %{pythons}-Pillow
Requires:       %{pythons}-pygments
Requires:       %{pythons}-pyserial
Requires:       git-core

BuildRequires:  declarative-macros
BuildSystem:    pyproject
%description
Interact with your qmk_firmware tree from any location
Use qmk clone to pull down anyone's qmk_firmware fork
Setup your build environment with qmk setup
Check that your environment is correctly setup with qmk doctor
Integrates with qmk_firmware for additional functionality:
	qmk compile
	qmk console
	qmk flash
	qmk lint
	...and many more!

%files
%license LICENSE
%doc *.md
%{_bindir}/qmk
%{python3_sitelib}/qmk*

%changelog
openSUSE Build Service is sponsored by