[gtk-vnc] rpm: make gtk3 sub-RPMs obsolete the gtk2 sub-RPMs



commit 1a8d3f2375c4551a205bb69bb02fbbe91dbb7585
Author: Daniel P. Berrangé <berrange redhat com>
Date:   Wed Aug 7 15:39:23 2019 +0100

    rpm: make gtk3 sub-RPMs obsolete the gtk2 sub-RPMs
    
    Adding Obsoletes: lines ensures the GTK2 version of gtk-vnc gets erased
    during upgrade.
    
    Signed-off-by: Daniel P. Berrangé <berrange redhat com>

 gtk-vnc.spec.in       | 2 ++
 mingw-gtk-vnc.spec.in | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/gtk-vnc.spec.in b/gtk-vnc.spec.in
index 3af2b6a..3bafa6e 100644
--- a/gtk-vnc.spec.in
+++ b/gtk-vnc.spec.in
@@ -91,6 +91,7 @@ screenshots of a VNC desktop
 %package -n gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: gvnc = %{version}-%{release}
+Obsoletes: gtk-vnc
 
 %description -n gtk-vnc2
 gtk-vnc is a VNC viewer widget for GTK3. It is built using coroutines
@@ -101,6 +102,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
 
 %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 857e5b9..acfcd92 100644
--- a/mingw-gtk-vnc.spec.in
+++ b/mingw-gtk-vnc.spec.in
@@ -50,6 +50,7 @@ Summary: Command line VNC tools
 %package -n mingw32-gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: pkgconfig
+Obsoletes: mingw32-gtk-vnc
 
 %description -n mingw32-gvnc
 gvnc is a GObject for managing a VNC connection. It provides all the
@@ -75,6 +76,7 @@ Summary: Command line VNC tools
 %package -n mingw64-gtk-vnc2
 Summary: A GTK3 widget for VNC clients
 Requires: pkgconfig
+Obsoletes: mingw64-gtk-vnc
 
 %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]