add wrapper scripts for rpmbuild

This commit is contained in:
Robert Kaussow 2020-06-11 15:41:12 +02:00
parent dd97991b93
commit ca5228df7a
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 14 additions and 0 deletions

10
overlay/bin/rpmbuild Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env sh
set -eo pipefail
DIR=$(pwd)
mkdir ./dist
echo '%_topdir '"${DIR}"'/dist' > /root/.rpmmacros
rpmdev-setuptree
exec /usr/bin/rpmbuild "$@"

4
overlay/bin/rpmbuild-official Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eo pipefail
exec /usr/bin/rpmbuild "$@"