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