parent
044b8da55a
commit
759617c9c0
288 changed files with 13040 additions and 1 deletions
16
bots/images/scripts/lib/build-deps.sh
Executable file
16
bots/images/scripts/lib/build-deps.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
# Download cockpit.spec, replace `npm-version` macro and then query all build requires
|
||||
curl -s https://raw.githubusercontent.com/cockpit-project/cockpit/master/tools/cockpit.spec |
|
||||
sed 's/%{npm-version:.*}/0/' |
|
||||
sed '/Recommends:/d' |
|
||||
rpmspec -D "$1" --buildrequires --query /dev/stdin |
|
||||
sed 's/.*/"&"/' |
|
||||
tr '\n' ' '
|
||||
|
||||
# support for backbranches
|
||||
if [ "$1" = "rhel 7" ] || [ "$1" = "centos 7" ]; then
|
||||
echo "golang-bin golang-src"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue