File streamdeck-linux-gui.spec of Package streamdeck-linux-gui
#
# spec file for package streamdeck-linux-gui
#
# 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 pythons python3
Name: streamdeck-linux-gui
Version: 4.1.3
Release: 0
Summary: Stream Deck tools (service, Web Interface, and UI)
License: MIT
URL: https://streamdeck-linux-gui.github.io/streamdeck-linux-gui/
Source: https://files.pythonhosted.org/packages/source/s/streamdeck-linux-gui/streamdeck_linux_gui-%{version}.tar.gz
Source1: 70-streamdeck.rules
# PATCH-FIX-OPENSUSE python313.patch to remove version restriction
Patch0: python313.patch
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-poetry
# SECTION test requirements
BuildRequires: python3-CairoSVG >= 2.5.2
BuildRequires: python3-Pillow >= 9.4.0
BuildRequires: python3-filetype >= 1.0.10
#BuildRequires: python3-pynput >= 1.7.6
BuildRequires: python3-pyside6 >= 6.4.2
BuildRequires: python3-python-xlib >= 0.33
BuildRequires: python3-streamdeck >= 0.9.5
# /SECTION
BuildRequires: fdupes
BuildRequires: udev
Requires: python3-CairoSVG >= 2.5.2
Requires: python3-Pillow >= 9.4.0
Requires: python3-evdev >= 1.3
Requires: python3-filetype >= 1.0.10
Requires: python3-importlib-metadata >= 6.8.0
Requires: python3-pynput >= 1.7.6
Requires: python3-pyside6 >= 6.4.2
Requires: python3-python-xlib >= 0.33
Requires: python3-streamdeck >= 0.9.3
BuildArch: noarch
Conflicts: streamdeck-ui
Provides: streamdeck-ui = %{version}
Obsoletes: streamdeck-ui < %{version}
%description
A service, Web Interface, and UI for interacting with your computer using a Stream Deck
%prep
%autosetup -p1 -n streamdeck_linux_gui-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
install -D -m0644 %{S:1} %{buildroot}%{_udevrulesdir}/70-streamdeck.rules
%files
%{_bindir}/streamdeck
%{_bindir}/streamdeckc
%{python_sitelib}/streamdeck_ui
%{python_sitelib}/streamdeck_linux_gui-*.dist-info
%{_udevrulesdir}/70-streamdeck.rules
%changelog