buildrpm: mkdir -p two needed directories (
issue4779)
Without this, building RPMs can fail.
--- a/contrib/buildrpm Tue Sep 01 17:09:00 2015 -0500
+++ b/contrib/buildrpm Tue Sep 01 14:41:41 2015 -0400
@@ -56,6 +56,7 @@
RPMPYTHONVER=%{nil}
fi
+mkdir -p $RPMBUILDDIR/SOURCES
$HG archive -t tgz $RPMBUILDDIR/SOURCES/mercurial-$version-$release.tar.gz
if [ "$PYTHONVER" ]; then
(
@@ -79,6 +80,7 @@
)
fi
+mkdir -p $RPMBUILDDIR/SPECS
rpmspec=$RPMBUILDDIR/SPECS/mercurial.spec
sed -e "s,^Version:.*,Version: $version," \