Make image with build tools
[git-tools-moved-to-github.git] / id-deb-build / in-docker-rpm.sh
1 #!/bin/sh
2 # in-docker-rpm.sh
3
4 set -x
5
6 echo "%_topdir /build/rpmbuild" >$HOME/.rpmmacros
7 echo "%_source_filedigest_algorithm   0" >>$HOME/.rpmmacros
8 echo "%_binary_filedigest_algorithm   0" >>$HOME/.rpmmacros
9
10 # rpmbuild wants a user
11 groupadd -g 1000 bob
12 useradd -u 1000 -g bob bob
13
14 yum-builddep -y SPECS/*.spec
15
16 rpmbuild -ba SPECS/*.spec
17
18 RET=$?
19
20 exit $RET
21
22 # Local Variables:
23 # mode:shell-script
24 # sh-indentation: 4
25 # sh-basic-offset: 4
26 # End:
27