aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build-data/platforms.mk3
-rw-r--r--build-root/rpm/vpp.spec2
2 files changed, 3 insertions, 2 deletions
diff --git a/build-data/platforms.mk b/build-data/platforms.mk
index 8a18ec14..625006b4 100644
--- a/build-data/platforms.mk
+++ b/build-data/platforms.mk
@@ -72,6 +72,7 @@ install-rpm: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
$(ROOT_PACKAGES)) || exit 1; \
\
cd rpm ; \
- rpmbuild -bb --define "_topdir $$PWD" vpp.spec ; \
+ rpmbuild -bb --define "_topdir $$PWD" --define \
+ "_install_dir $(INSTALL_PREFIX)$(ARCH)" vpp.spec ; \
mv $$(find RPMS -name \*.rpm -type f) ..
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index b02b2bfe..4a666e68 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -1,4 +1,4 @@
-%define _vpp_install_dir ../install-vpp-native
+%define _vpp_install_dir ../%{_install_dir}
%define _vpp_build_dir ../build-tool-native
%define _unitdir /lib/systemd/system
%define _topdir %(pwd)