pgreco / rpms / cockpit

Forked from forks/areguera/rpms/cockpit 4 years ago
Clone

Blame SOURCES/0002-tools-Update-packaging-files-for-stable-0.114-releas.patch

0af617
From 2ab6a1716eca40c1a1c16aa1ac5457959b54fb82 Mon Sep 17 00:00:00 2001
0af617
From: Stef Walter <stefw@redhat.com>
0af617
Date: Thu, 14 Jul 2016 10:25:36 +0200
0af617
Subject: [PATCH 2/2] tools: Update packaging files for stable 0.114 release
0af617
0af617
The internal javascript API in 0.114 is considered stable
0af617
in the base1 package. So subpackages can use any version of
0af617
cockpit-bridge and cockpit-shell 0.114 or later.
0af617
0af617
Closes #4736
0af617
Reviewed-by: Peter <petervo@redhat.com>
0af617
---
0af617
 tools/cockpit.spec | 33 +++++++++++++++++++++++----------
0af617
 1 file changed, 23 insertions(+), 10 deletions(-)
0af617
0af617
diff --git a/tools/cockpit.spec b/tools/cockpit.spec
0af617
index 5a0ad60..655cf8a 100644
0af617
--- a/tools/cockpit.spec
0af617
+++ b/tools/cockpit.spec
0af617
@@ -16,6 +16,10 @@
0af617
 
0af617
 %if %{defined gitcommit}
0af617
 %define extra_flags CFLAGS='-O2 -Wall -Werror -fPIC -g -DWITH_DEBUG'
0af617
+%define stable_api %{gitcommit}
0af617
+%else
0af617
+# The first version with a stable APIs
0af617
+%define stable_api 0.114
0af617
 %endif
0af617
 
0af617
 %if 0%{?centos}
0af617
@@ -344,7 +348,7 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
0af617
 
0af617
 %package shell
0af617
 Summary: Cockpit Shell user interface package
0af617
-Requires: %{name}-bridge = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
 Requires: shadow-utils
0af617
 Requires: grep
0af617
 Requires: libpwquality
0af617
@@ -366,7 +370,8 @@ This package contains the Cockpit shell UI assets.
0af617
 
0af617
 %package storaged
0af617
 Summary: Cockpit user interface for storage, using Storaged
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: storaged >= 2.1.1
0af617
 %if 0%{?fedora} >= 24 || 0%{?rhel} >= 8
0af617
 Recommends: storaged-lvm2 >= 2.1.1
0af617
@@ -386,7 +391,8 @@ The Cockpit component for managing storage.  This package uses Storaged.
0af617
 
0af617
 %package ostree
0af617
 Summary: Cockpit user interface for rpm-ostree
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 %if 0%{?fedora} > 0 && 0%{?fedora} < 24
0af617
 Requires: rpm-ostree >= 2015.10-1
0af617
 %else
0af617
@@ -404,7 +410,8 @@ The Cockpit components for managing software updates for ostree based systems.
0af617
 
0af617
 %package sosreport
0af617
 Summary: Cockpit user interface for diagnostic reports
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: sos
0af617
 BuildArch: noarch
0af617
 
0af617
@@ -416,7 +423,8 @@ sosreport tool.
0af617
 
0af617
 %package subscriptions
0af617
 Summary: Cockpit subscription user interface package
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: subscription-manager >= 1.13
0af617
 BuildArch: noarch
0af617
 
0af617
@@ -428,7 +436,8 @@ subscription management.
0af617
 
0af617
 %package networkmanager
0af617
 Summary: Cockpit user interface for networking, using NetworkManager
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: NetworkManager
0af617
 BuildArch: noarch
0af617
 
0af617
@@ -443,7 +452,8 @@ The Cockpit component for managing networking.  This package uses NetworkManager
0af617
 
0af617
 %package selinux
0af617
 Summary: Cockpit SELinux package
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: setroubleshoot-server >= 3.3.3
0af617
 BuildArch: noarch
0af617
 
0af617
@@ -459,7 +469,8 @@ utility setroubleshoot to diagnose and resolve SELinux issues.
0af617
 
0af617
 %package docker
0af617
 Summary: Cockpit user interface for Docker containers
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: docker >= 1.3.0
0af617
 
0af617
 %description docker
0af617
@@ -475,7 +486,8 @@ This package is not yet complete.
0af617
 %package kubernetes
0af617
 Summary: Cockpit user interface for Kubernetes cluster
0af617
 Requires: /usr/bin/kubectl
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 BuildRequires: golang-bin
0af617
 BuildRequires: golang-src
0af617
 
0af617
@@ -493,7 +505,8 @@ cluster. Installed on the Kubernetes master. This package is not yet complete.
0af617
 
0af617
 %package test-assets
0af617
 Summary: Additional stuff for testing Cockpit
0af617
-Requires: %{name}-shell = %{version}-%{release}
0af617
+Requires: %{name}-bridge >= %{stable_api}
0af617
+Requires: %{name}-shell >= %{stable_api}
0af617
 Requires: openssh-clients
0af617
 
0af617
 %description test-assets
0af617
-- 
0af617
1.8.3.1
0af617