add rsync to copy local patchfiles
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
1b9e884537
commit
d54eaaa4c8
@ -34,6 +34,7 @@ RUN yum install -q -y \
|
|||||||
wget curl \
|
wget curl \
|
||||||
automake autoconf \
|
automake autoconf \
|
||||||
yum-utils rpm-build rpmdevtools \
|
yum-utils rpm-build rpmdevtools \
|
||||||
|
rsync \
|
||||||
epel-release && \
|
epel-release && \
|
||||||
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
|
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
|
||||||
yum clean all
|
yum clean all
|
||||||
|
@ -4,7 +4,8 @@ set -eo pipefail
|
|||||||
DIR=$(pwd)
|
DIR=$(pwd)
|
||||||
|
|
||||||
mkdir ./dist
|
mkdir ./dist
|
||||||
echo '%_topdir '"${DIR}"'/dist' > /root/.rpmmacros
|
echo '%_topdir '"${DIR%/}"'/dist' > /root/.rpmmacros
|
||||||
rpmdev-setuptree
|
rpmdev-setuptree
|
||||||
|
rsync -q -av "${DIR%/}/patch/" "${DIR%/}/dist/SOURCES"
|
||||||
|
|
||||||
exec /usr/bin/rpmbuild "$@"
|
exec /usr/bin/rpmbuild "$@"
|
||||||
|
Reference in New Issue
Block a user