Build Dangerzone RPM with PySide6 dependency

Update our RPM spec file to include PySide6 as a dependency, for Fedora
39 onward.
This commit is contained in:
Alex Pyrgiotis 2024-01-16 17:08:21 +02:00
parent d7ee162852
commit 3684b7ff61
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -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