SUSE: rpm-packaging fixes 86/14386/4
authorMarco Varlese <marco.varlese@suse.de>
Tue, 21 Aug 2018 09:51:19 +0000 (11:51 +0200)
committerDamjan Marion <dmarion@me.com>
Tue, 21 Aug 2018 14:46:28 +0000 (14:46 +0000)
Change-Id: Ic7ddc34bbb2fe414d41a083efd8caf35a12488ab
Signed-off-by: Marco Varlese <marco.varlese@suse.de>
extras/rpm/Makefile
extras/rpm/vpp-suse.spec

index 4bbeab5..423c420 100644 (file)
@@ -26,7 +26,14 @@ PC=%
 
 all: RPM
 
-ifeq ($(filter opensuse,$(OS_ID)),$(OS_ID))
+# SUSE rolling-release (a.k.a. Tumbleweed)
+ifeq ($(filter opensuse-tumbleweed,$(OS_ID)),$(OS_ID))
+SPEC_FILE='vpp-suse.spec'
+# SUSE osleap15
+else ifeq ($(filter opensuse-leap,$(OS_ID)),$(OS_ID))
+SPEC_FILE='vpp-suse.spec'
+# SUSE leap42.x
+else ifeq ($(filter opensuse,$(OS_ID)),$(OS_ID))
 SPEC_FILE='vpp-suse.spec'
 else
 SPEC_FILE='vpp.spec'
index 3da2383..e1b9bd7 100644 (file)
@@ -157,7 +157,7 @@ This package contains the python bindings for the vpp api
 export VPP_BUILD_USER=suse
 export VPP_BUILD_HOST=SUSE
 
-make V=1 PLATFORM=vpp build-release
+make V=1 PLATFORM=vpp vpp_uses_cmake=no build-release
 
 cd %{_vpp_build_dir}/../src/vpp-api/python && %{py2_build}