12 lines
215 B
Bash
Executable File
12 lines
215 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eo pipefail
|
|
|
|
DIR=$(pwd)
|
|
|
|
mkdir ./dist
|
|
echo '%_topdir '"${DIR%/}"'/dist' > /root/.rpmmacros
|
|
rpmdev-setuptree
|
|
rsync -q -av "${DIR%/}/patch/" "${DIR%/}/dist/SOURCES"
|
|
|
|
exec /usr/bin/rpmbuild "$@"
|