]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: modify autosetup when setup is not defined in spec file
authorAlfredo Deza <adeza@redhat.com>
Fri, 2 Sep 2016 19:52:27 +0000 (15:52 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 7 Sep 2016 18:52:09 +0000 (14:52 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-dev-build/build/build_rpm

index 14a82c959ad8e3b3678bfd9643010dfec5ce11f7..d98076f5ad86eab7709bc6924f9b94c9e4037312 100644 (file)
@@ -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