]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: make the spec file look for the right source dir, using sed
authorAlfredo Deza <adeza@redhat.com>
Tue, 9 Aug 2016 16:08:41 +0000 (12:08 -0400)
committerAlfredo Deza <adeza@redhat.com>
Tue, 9 Aug 2016 16:08:41 +0000 (12:08 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-dev-build/build/build_rpm

index ce14a742e16ee1d77d10fb6c6815d0f4862c87b0..46332fb34dffa948f04b9e11e0fa963e7e06c593 100644 (file)
@@ -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}