X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fin-docker-rpm.sh;fp=id-deb-build%2Fin-docker-rpm.sh;h=8f915a5be998a4d3b540ede15a4fbb93e4e321f8;hb=edc85c45c79b5e340fb759a273d63590b144f05a;hp=0000000000000000000000000000000000000000;hpb=49f3f5d3cc12090d1951e659fb255776cb198646;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 new file mode 100755 index 0000000..8f915a5 --- /dev/null +++ b/id-deb-build/in-docker-rpm.sh @@ -0,0 +1,31 @@ +#!/bin/sh +# 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 -ba SPECS/*.spec + +RET=$? + +exit $RET + +# Local Variables: +# mode:shell-script +# sh-indentation: 4 +# sh-basic-offset: 4 +# End: +