|
|
|
@@ -17,6 +17,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%define stable_version 0.1.1
|
|
|
|
%define stable_version 0.1.1
|
|
|
|
%define reponame inputmodule-rs
|
|
|
|
%define reponame inputmodule-rs
|
|
|
|
%{?sle15_python_module_python}
|
|
|
|
%{?sle15_python_module_python}
|
|
|
|
@@ -32,8 +33,10 @@ BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module hatchling}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pyserial}
|
|
|
|
BuildRequires: %{python_module pyserial}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
|
|
|
Requires: alts
|
|
|
|
Requires: framework-inputmodule-control
|
|
|
|
Requires: framework-inputmodule-control
|
|
|
|
Requires: python-Pillow
|
|
|
|
Requires: python-Pillow
|
|
|
|
Requires: python-base >= 3.7
|
|
|
|
Requires: python-base >= 3.7
|
|
|
|
@@ -41,8 +44,6 @@ Requires: python-getkey
|
|
|
|
Requires: python-pygame
|
|
|
|
Requires: python-pygame
|
|
|
|
Requires: python-pyserial
|
|
|
|
Requires: python-pyserial
|
|
|
|
Requires: python-tk
|
|
|
|
Requires: python-tk
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
@@ -66,11 +67,11 @@ cd python/
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ledmatrixgui
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/ledmatrixgui
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%pre
|
|
|
|
%python_install_alternative ledmatrixctl ledmatrixgui
|
|
|
|
# removing old update-alternatives entries
|
|
|
|
|
|
|
|
%python_libalternatives_reset_alternative ledmatrixctl ledmatrixgui
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
# post and postun macro call is not needed with only libalternatives
|
|
|
|
%python_uninstall_alternative ledmatrixctl ledmatrixgui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
|