summaryrefslogtreecommitdiffstats
path: root/extras/rpm/Makefile
diff options
context:
space:
mode:
authorLaszlo Kiraly <laszlo.kiraly@est.tech>2021-11-02 11:07:19 +0100
committerBeno�t Ganne <bganne@cisco.com>2021-11-19 15:06:08 +0000
commite56008519b87d7ac8d4e5e5cce7be3233ee1727b (patch)
tree5302811438e902f9647a0d2487475ecb37a168ef /extras/rpm/Makefile
parent6fdcc3daa40ebfcb793998b6e4527dd6db03cfb7 (diff)
build: (opensuse) Revert build remove opensuse build infra
Added missing deps Removed Thumbleweed support Changed python2 to python3 Added Dockerfile for suse-leap build Type: make Change-Id: Ie73d2382a73ebc9d4475ace1a8f818fe38cf40c0 Signed-off-by: Laszlo Kiraly <laszlo.kiraly@est.tech>
Diffstat (limited to 'extras/rpm/Makefile')
-rw-r--r--extras/rpm/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/extras/rpm/Makefile b/extras/rpm/Makefile
index b06c9fb9675..0c422c7994c 100644
--- a/extras/rpm/Makefile
+++ b/extras/rpm/Makefile
@@ -26,6 +26,13 @@ PC=%
all: RPM
+# SUSE osleap15
+ifeq ($(filter opensuse-leap,$(OS_ID)),$(OS_ID))
+SRC_SPEC_DIR="opensuse"
+else
+SRC_SPEC_DIR="."
+endif
+
SPEC_FILE='vpp.spec'
spec:
@@ -33,7 +40,7 @@ spec:
mkdir -p $(RPMBUILD)/RPMS $(RPMBUILD)/SRPMS $(RPMBUILD)/BUILD \
$(RPMBUILD)/SOURCES $(RPMBUILD)/SPECS
cp $(TARBALL) $(RPMBUILD)/SOURCES/vpp-$(VERSION)-$(RELEASE).tar.xz
- cp $(SPEC_FILE) $(RPMBUILD)/SPECS
+ cp $(SRC_SPEC_DIR)/$(SPEC_FILE) $(RPMBUILD)/SPECS
srpm: spec
rpmbuild -bs \