We should make sure that all the rpm and srpm macros are installed and
at the latest version before installing the build dependencies.
Otherwise, the macros can get updated and we might not get all the
dependencies installed with yum-builddep.
Signed-off-by: Boris Ranto <branto@redhat.com>
$SUDO yum-config-manager --enable centos-sclo-rh-testing
fi
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+
+# Make sure we have all the rpm macros installed and at the latest version before installing the dependencies
+$SUDO yum install -y \*rpm-macros
+
$SUDO yum-builddep -y $DIR/ceph.spec
BRANCH=`branch_slash_filter $BRANCH`
$SUDO yum-config-manager --enable centos-sclo-rh-testing
fi
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+
+# Make sure we have all the rpm macros installed and at the latest version before installing the dependencies
+$SUDO yum install -y \*rpm-macros
+
$SUDO yum-builddep -y $DIR/ceph.spec
BRANCH=`branch_slash_filter $BRANCH`
$SUDO yum-config-manager --enable centos-sclo-rh-testing
fi
sed -e 's/@//g' < ceph.spec.in > $DIR/ceph.spec
+
+# Make sure we have all the rpm macros installed and at the latest version before installing the dependencies
+$SUDO yum install -y \*rpm-macros
+
$SUDO yum-builddep -y $DIR/ceph.spec
BRANCH=`branch_slash_filter $BRANCH`