contrib/buildrpm
changeset 26139 f643b6863382
parent 24972 56c64c91b429
child 26735 ec74ea542201
--- 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," \