aboutsummaryrefslogtreecommitdiffstats
path: root/extras/rpm
diff options
context:
space:
mode:
authorIgor Mikhailov (imichail) <imichail@cisco.com>2017-05-18 19:46:17 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-05-20 16:32:52 +0000
commitc442e6197399f65b02a9c97fe040af7f442bdea9 (patch)
tree209b8180631b1dc4c197974801fbfba7a1b64d89 /extras/rpm
parentcada2a0ae4d1c1add4ad1b37649555ae7e9afc14 (diff)
Restore possibility to build vpp in debug mode for rpms
Change-Id: I3935b3f312852e0f032c48726651561fb8616273 Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
Diffstat (limited to 'extras/rpm')
-rw-r--r--extras/rpm/vpp.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec
index 55b20109e78..56d389145b3 100644
--- a/extras/rpm/vpp.spec
+++ b/extras/rpm/vpp.spec
@@ -3,7 +3,11 @@
%define _topdir %(pwd)
%define _builddir %{_topdir}
%define _mu_build_dir %{_topdir}/%{name}-%{_version}/build-root
-%define _vpp_install_dir install-vpp-native
+%define _vpp_tag %{getenv:TAG}
+%if "%{_vpp_tag}" == ""
+%define _vpp_tag vpp
+%endif
+%define _vpp_install_dir install-%{_vpp_tag}-native
# Failsafe backport of Python2-macros for RHEL <= 6
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
@@ -102,7 +106,7 @@ groupadd -f -r vpp
%build
make bootstrap
-make -C build-root PLATFORM=vpp TAG=vpp install-packages
+make -C build-root PLATFORM=vpp TAG=%{_vpp_tag} install-packages
cd %{_mu_build_dir}/../src/vpp-api/python && %py2_build
%install