add rsync to copy local patchfiles
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2020-06-11 15:48:06 +02:00
parent 1b9e884537
commit d54eaaa4c8
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ RUN yum install -q -y \
wget curl \
automake autoconf \
yum-utils rpm-build rpmdevtools \
rsync \
epel-release && \
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
yum clean all

View File

@ -4,7 +4,8 @@ set -eo pipefail
DIR=$(pwd)
mkdir ./dist
echo '%_topdir '"${DIR}"'/dist' > /root/.rpmmacros
echo '%_topdir '"${DIR%/}"'/dist' > /root/.rpmmacros
rpmdev-setuptree
rsync -q -av "${DIR%/}/patch/" "${DIR%/}/dist/SOURCES"
exec /usr/bin/rpmbuild "$@"