Commit 4261f85f authored by Markus Frosch's avatar Markus Frosch
Browse files

rpm: Set buildroot for rpmbuild

So that older distributions can be used
parent 9187ece5
......@@ -116,9 +116,17 @@ get_rpmbuild() {
--define "vendor $ICINGA_BUILD_BRANDING_VENDOR" \
--define "dist $dist" \
--define "_topdir ${WORKDIR}/build" \
--define "buildroot %{_buildrootdir}/%{name}" \
"$@"
)
source /etc/os-release
if [ "$ID" != sles ] && [[ "$VERSION" != 11.* ]]; then
RPMBUILD+=(
--define "_buildrootdir %{_topdir}/BUILDROOT" \
--define "buildroot %{_buildrootdir}/%{name}" \
)
fi
declare -p RPMBUILD
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment