# # spec file for package python-rivalcfg # # 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 skip_python311 1 %define skip_python312 1 %define base_name rivalcfg Name: python-rivalcfg Version: 4.15.0 Release: 0 Summary: Configure SteelSeries gaming mice License: WTFPL URL: https://github.com/flozz/rivalcfg Source: https://files.pythonhosted.org/packages/source/r/rivalcfg/rivalcfg-%{version}.tar.gz BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: %{python_module hidapi >= 0.7.99.post20} BuildRequires: %{python_module setuptools} BuildRequires: fdupes Requires: python-hidapi >= 0.7.99.post20 Requires: python-setuptools Requires(post): update-alternatives Requires(postun): update-alternatives Suggests: python-flake8 Suggests: python-pytest Suggests: python-Sphinx Suggests: python-sphinx-rtd-theme Suggests: python-nox Suggests: python-black BuildArch: noarch %python_subpackages %description Configure SteelSeries gaming mice %prep %setup -q -n rivalcfg-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/rivalcfg %python_expand %fdupes %{buildroot}%{$python_sitelib} %post %python_install_alternative rivalcfg %postun %python_uninstall_alternative rivalcfg %files %{python_files} %doc README.rst %license LICENSE %python_alternative %{_bindir}/rivalcfg %{python_sitelib}/%{base_name}* %changelog