This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/usr/bin/env sh
|
|
set -eo pipefail
|
|
|
|
DIR=$(pwd)
|
|
|
|
mkdir -p ./dist
|
|
echo '%_topdir '"${DIR%/}"'/dist' > /root/.rpmmacros
|
|
rpmdev-setuptree
|
|
rsync -q -av "${DIR%/}/patch/" "${DIR%/}/dist/SOURCES"
|
|
|
|
exec /usr/bin/rpmbuild "$@"
|