From aba11018ef5f1167c469695a4a628f48d873e343 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 29 Jun 2015 15:44:02 +0000 Subject: [PATCH] Create .rpmmacros and inform --- id-deb-build/id-pbuild.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 9a8f202..478d816 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -81,6 +81,7 @@ if test "$CENTOS_DIST"; then fi PRODUCT=$RNAME if test ! -d ~/rpmbuild; then + echo "Creating ~/rpmbuild" mkdir -p ~/pmbuild/BUILD mkdir -p ~/rpmbuild/RPMS/noarch mkdir -p ~/rpmbuild/RPMS/x86_64 @@ -88,6 +89,12 @@ if test "$CENTOS_DIST"; then mkdir -p ~/rpmbuild/SPECS mkdir -p ~/rpmbuild/SRPMS fi + if test ! -f ~/.rpmmacros; then + echo "Creating ~/.rpmmacros" + echo "%_topdir $HOME/rpmbuild" >~/.rpmmacros + echo "%_source_filedigest_algorithm 0" >>~/.rpmmacros + echo "%_binary_filedigest_algorithm 0" >>~/.rpmmacros + fi else centos=false fi -- 1.7.10.4