install: Add conflict if Dangerzone is installed

Add a "Conflicts:" entry in the RPM spec, in case another version of
Dangerzone is already installed.
This commit is contained in:
Alex Pyrgiotis 2023-09-07 12:33:10 +03:00
parent 81b4a8deb5
commit 215fa8b558
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -50,6 +50,19 @@ URL: https://dangerzone.rocks
# https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_troublesome_urls
Source0: https://github.com/freedomofpress/dangerzone/archive/refs/tags/v%{version}.tar.gz#/dangerzone-%{version}.tar.gz
################################################################################
# Package Replacements
%if 0%{?_qubes}
# Users who install Dangerzone with native Qubes support must uninstall
# Dangerzone with container support.
Conflicts: dangerzone
%else
# Users who install Dangerzone with container support must uninstall Dangerzone
# with native Qubes support.
Conflicts: dangerzone-qubes
%endif
################################################################################
# Package Requirements