From a4134c6701c236e9afe833b346511030df3e9144 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 2 Sep 2016 15:52:27 -0400 Subject: [PATCH] ceph-dev-build: modify autosetup when setup is not defined in spec file Signed-off-by: Alfredo Deza --- ceph-dev-build/build/build_rpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index 14a82c95..d98076f5 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 -- 2.39.5