hs-test: point gdb to vpp source files
[vpp.git] / extras / rpm / Makefile
index 4bbeab5..0c422c7 100644 (file)
@@ -26,17 +26,21 @@ PC=%
 
 all: RPM
 
-ifeq ($(filter opensuse,$(OS_ID)),$(OS_ID))
-SPEC_FILE='vpp-suse.spec'
+# SUSE osleap15
+ifeq ($(filter opensuse-leap,$(OS_ID)),$(OS_ID))
+SRC_SPEC_DIR="opensuse"
 else
-SPEC_FILE='vpp.spec'
+SRC_SPEC_DIR="."
 endif
 
+SPEC_FILE='vpp.spec'
+
 spec:
        @echo $(TARBALL)
-       mkdir -p $(RPMBUILD)/{RPMS,SRPMS,BUILD,SOURCES,SPECS}
+       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 \