Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
scripts
Commits
4261f85f
Commit
4261f85f
authored
Mar 31, 2020
by
Markus Frosch
Browse files
rpm: Set buildroot for rpmbuild
So that older distributions can be used
parent
9187ece5
Changes
1
Hide whitespace changes
Inline
Side-by-side
functions-rpm.sh
View file @
4261f85f
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment