summaryrefslogtreecommitdiffstats
path: root/packaging/rpm
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/rpm')
-rw-r--r--packaging/rpm/honeycomb.spec3
-rwxr-xr-xpackaging/rpm/vpp_dependencies6
2 files changed, 8 insertions, 1 deletions
diff --git a/packaging/rpm/honeycomb.spec b/packaging/rpm/honeycomb.spec
index 7047a340c..3c4e7efde 100644
--- a/packaging/rpm/honeycomb.spec
+++ b/packaging/rpm/honeycomb.spec
@@ -2,6 +2,7 @@
%define __jar_repack 0
%define _version %(./version)
%define _release %(./release)
+%define _vpp_dependencies %(./vpp_dependencies)
Name: honeycomb
Version: %{_version}
@@ -18,7 +19,7 @@ License: Apache-1.0
URL: http://www.fd.io
Source0: vpp-integration-distribution-%{_version}-SNAPSHOT-hc.zip
Source1: honeycomb.service
-Requires: vpp >= 17.04, vpp < 17.08, vpp-plugins >= 17.04, vpp-plugins < 17.08, java >= 1:1.8.0
+Requires: %{_vpp_dependencies}, java >= 1:1.8.0
# Required for creating honeycomb group
Requires(pre): shadow-utils
# Required for configuring systemd
diff --git a/packaging/rpm/vpp_dependencies b/packaging/rpm/vpp_dependencies
new file mode 100755
index 000000000..5090544b6
--- /dev/null
+++ b/packaging/rpm/vpp_dependencies
@@ -0,0 +1,6 @@
+#!/bin/bash
+# defines vpp and vpp-plugins dependencies for rpm packages
+# using range
+echo "vpp >= 17.04, vpp < 17.07, vpp-plugins >= 17.04, vpp-plugins < 17.07"
+# or specific vpp version
+#echo "vpp = 17.04-rc1, vpp-plugins = 17.04-rc1"