[gtk-vnc] rpm: ensure Obsoletes rules are versioned



commit 6baa746374e6c06c21ee41dfe465002b377ef46a
Author: Daniel P. Berrangé <dan berrange com>
Date:   Wed Mar 31 16:39:27 2021 +0100

    rpm: ensure Obsoletes rules are versioned
    
    Obsoletes are recommended to include the max version that is intended to
    be erased, to allow the package to be reintroduced more easily at a
    later date if required.
    
    Signed-off-by: Daniel P. Berrangé <berrange redhat com>

 gtk-vnc.spec.in       | 4 ++--
 mingw-gtk-vnc.spec.in | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk-vnc.spec.in b/gtk-vnc.spec.in
index 61ff948..fdf7bd0 100644
--- a/gtk-vnc.spec.in
+++ b/gtk-vnc.spec.in
@@ -80,7 +80,7 @@ screenshots of a VNC desktop
 %package -n gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: gvnc = %{version}-%{release}
-Obsoletes: gtk-vnc
+Obsoletes: gtk-vnc < 1.0.0
 
 %description -n gtk-vnc2
 gtk-vnc is a VNC viewer widget for GTK3. It is built using coroutines
@@ -91,7 +91,7 @@ Summary: Development files to build GTK3 applications with gtk-vnc
 Requires: gtk-vnc2 = %{version}-%{release}
 Requires: pkgconfig
 Requires: gtk3-devel
-Obsoletes: gtk-vnc-devel
+Obsoletes: gtk-vnc-devel < 1.0.0
 
 %description -n gtk-vnc2-devel
 gtk-vnc is a VNC viewer widget for GTK3. It is built using coroutines
diff --git a/mingw-gtk-vnc.spec.in b/mingw-gtk-vnc.spec.in
index 2c48837..2bb6fbe 100644
--- a/mingw-gtk-vnc.spec.in
+++ b/mingw-gtk-vnc.spec.in
@@ -52,7 +52,7 @@ Summary: Command line VNC tools
 %package -n mingw32-gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: pkgconfig
-Obsoletes: mingw32-gtk-vnc
+Obsoletes: mingw32-gtk-vnc < 1.0.0
 
 %description -n mingw32-gvnc
 gvnc is a GObject for managing a VNC connection. It provides all the
@@ -78,7 +78,7 @@ Summary: Command line VNC tools
 %package -n mingw64-gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: pkgconfig
-Obsoletes: mingw64-gtk-vnc
+Obsoletes: mingw64-gtk-vnc < 1.0.0
 
 %description -n mingw64-gvnc
 gvnc is a GObject for managing a VNC connection. It provides all the


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]