From 3684b7ff61f3ac40d6f7bd0cf18a105fb27c8b82 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 16 Jan 2024 17:08:21 +0200 Subject: [PATCH] Build Dangerzone RPM with PySide6 dependency Update our RPM spec file to include PySide6 as a dependency, for Fedora 39 onward. --- install/linux/dangerzone.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install/linux/dangerzone.spec b/install/linux/dangerzone.spec index 0e0e10d..137f2f8 100644 --- a/install/linux/dangerzone.spec +++ b/install/linux/dangerzone.spec @@ -222,11 +222,13 @@ convert the documents within a secure sandbox. %autosetup -p1 -n dangerzone-%{version} # XXX: Replace the PySide6 dependency in the pyproject.toml file with PySide2, -# since the former does not exist in Fedora. Once we can completely migrate to -# Qt6, we should remove this. For more details, see: +# since the former did not exist until Fedora 39, where we packaged PySide6 [1]. +# Once Fedora 38 is no longer supported, we should remove this. # -# https://github.com/freedomofpress/dangerzone/issues/211 +# [1]: https://github.com/freedomofpress/dangerzone/issues/606 +%if 0%{?fedora} == 38 sed -i 's/^PySide6.*$/PySide2 = "*"/' pyproject.toml +%endif %generate_buildrequires