From: Alfredo Deza Date: Tue, 9 Aug 2016 16:08:41 +0000 (-0400) Subject: ceph-dev-build: make the spec file look for the right source dir, using sed X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4e75e93fd2f56fba6315b8fc053479393a14b1ed;p=ceph-build.git ceph-dev-build: make the spec file look for the right source dir, using sed Signed-off-by: Alfredo Deza --- diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index ce14a742..46332fb3 100644 --- a/ceph-dev-build/build/build_rpm +++ b/ceph-dev-build/build/build_rpm @@ -96,6 +96,9 @@ cephver=$vers cd $releasedir/$cephver || exit 1 +# modify the spec file so that it understands we are dealing with a different directory +sed -i "s/^%setup.*/%setup -q -n %{name}-$vers/" ceph.spec + # Set up build area BUILDAREA=./rpm/$dist mkdir -p ${BUILDAREA}/{SOURCES,SRPMS,SPECS,RPMS,BUILD}