Create .rpmmacros and inform
[git-tools-moved-to-github.git] / id-deb-build / id-pbuild.sh
index 9a8f202..478d816 100755 (executable)
@@ -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