Create .rpmmacros and inform
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Jun 2015 15:44:02 +0000 (15:44 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Jun 2015 15:44:02 +0000 (15:44 +0000)
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