X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fin-docker-rpm.sh;h=78a12adbc125953a0d54f4a421d58af693667825;hb=HEAD;hp=8f915a5be998a4d3b540ede15a4fbb93e4e321f8;hpb=edc85c45c79b5e340fb759a273d63590b144f05a;p=git-tools-moved-to-github.git diff --git a/id-deb-build/in-docker-rpm.sh b/id-deb-build/in-docker-rpm.sh index 8f915a5..78a12ad 100755 --- a/id-deb-build/in-docker-rpm.sh +++ b/id-deb-build/in-docker-rpm.sh @@ -2,22 +2,20 @@ # in-docker-rpm.sh set -x -DIST=$1 -STEP=$2 - -yum install -y wget yum-utils rpm-build gcc gcc-c++ make - -rpm --import http://ftp.indexdata.com/pub/yum/centos/$STEP/RPM-GPG-KEY-indexdata - -wget http://ftp.indexdata.com/pub/yum/centos/$STEP/indexdata.repo -P /etc/yum.repos.d/ echo "%_topdir /build/rpmbuild" >$HOME/.rpmmacros echo "%_source_filedigest_algorithm 0" >>$HOME/.rpmmacros echo "%_binary_filedigest_algorithm 0" >>$HOME/.rpmmacros -yum-builddep -y SPECS/*.spec +# rpmbuild wants a user +groupadd -g 1000 bob +useradd -u 1000 -g bob bob + +rpmbuild -bs --nodeps SPECS/*.spec + +yum-builddep -y SRPMS/*.src.rpm -rpmbuild -ba SPECS/*.spec +rpmbuild -bb SPECS/*.spec RET=$?