docker-rpmbuild
docker-rpmbuild copied to clipboard
rpmdev-setuptree defaults to %_topdir to $HOME/rpmbuild
At the moment we expect to find it under /rpmbuild/{SOURCES,SPECS ... }.
At least with the latest upstream docker centos6 image, this fails.
Maybe we could supply a .rpmmacros with %_topdir set.
RUN sed -i 's/%_topdir.*/%_topdir /rpmbuild/g' $HOME/.rpmmacros
after the rpmdev-setuptree works. Ugly hack but hey hey.