File project.diff of Package piper
--- piper.spec.orig
+++ piper.spec
@@ -1,7 +1,7 @@
#
# spec file for package piper
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2019 Matthias Bach <marix@marix.org>.
#
# All modifications and additions to the file contributed by third parties
@@ -17,6 +17,10 @@
#
+%if 0%{suse_version} == 1500
+%global primary_python python3
+%endif
+
Name: piper
Version: 0.8
Release: 0
@@ -28,25 +32,27 @@ Source0: %{name}-%{version}.tar.x
Source1: README.SUSE
Patch1: shebang-env.patch
Patch2: use-python-3.6.patch
+BuildRequires: %{primary_python}-cairo
+BuildRequires: %{primary_python}-evdev
+BuildRequires: %{primary_python}-flake8
+BuildRequires: %{primary_python}-gobject-devel
+BuildRequires: %{primary_python}-lxml
BuildRequires: AppStream
BuildRequires: fdupes
BuildRequires: gtk3-tools
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
-BuildRequires: python3-cairo
-BuildRequires: python3-evdev
-BuildRequires: python3-flake8
-BuildRequires: python3-gobject-devel
-BuildRequires: python3-lxml
BuildRequires: ratbagd >= 0.18
BuildRequires: update-desktop-files
-Requires: python3-cairo
-Requires: python3-evdev
-Requires: python3-gobject
-Requires: python3-gobject-Gdk
-Requires: python3-lxml
+Requires: %{primary_python}-cairo
+Requires: %{primary_python}-evdev
+Requires: %{primary_python}-gobject
+Requires: %{primary_python}-gobject-Gdk
+Requires: %{primary_python}-lxml
+BuildRequires: typelib-1_0-Gtk-3_0
Requires: ratbagd >= 0.18
+Requires: typelib-1_0-Gtk-3_0
BuildArch: noarch
%description
@@ -72,7 +78,7 @@ PATH="${PATH}:%{_sbindir}" %meson
%install
%meson_install
%fdupes %{buildroot}/%{_prefix}
-%suse_update_desktop_file -r org.freedesktop.Piper Settings HardwareSettings
+#suse_update_desktop_file -r org.freedesktop.Piper Settings HardwareSettings
%find_lang %{name}
%files -f %{name}.lang