From: Alfredo Deza Date: Fri, 2 Sep 2016 19:52:27 +0000 (-0400) Subject: ceph-dev-build: modify autosetup when setup is not defined in spec file X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4134c6701c236e9afe833b346511030df3e9144;p=ceph-build.git ceph-dev-build: modify autosetup when setup is not defined in spec file Signed-off-by: Alfredo Deza --- diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index 14a82c959..d98076f5a 100644 --- a/ceph-dev-build/build/build_rpm +++ b/ceph-dev-build/build/build_rpm @@ -99,6 +99,8 @@ 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 +# it is entirely possible that `%setup` is not even used, but rather, autosetup +sed -i "s/^%autosetup.*/%autosetup -p1 -n %{name}-$vers/" ceph.spec # This is needed because the 'version' this job gets from upstream contains chars # that are not legal for an RPM file. These are already converted in the spec file whic