]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: further massage ceph.spec to insist on using sha1 in version name 473/head
authorAlfredo Deza <adeza@redhat.com>
Mon, 12 Sep 2016 12:13:27 +0000 (17:43 +0530)
committerAlfredo Deza <adeza@redhat.com>
Mon, 12 Sep 2016 12:22:48 +0000 (17:52 +0530)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-dev-build/build/build_rpm

index 3b89073445ceb360b3a18cf5040de388e1c75172..9c19708df3c8cbc2b69f300f2eade15bd2cfd199 100644 (file)
@@ -104,6 +104,10 @@ cd $releasedir/$cephver || exit 1
 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 a fallback to the spec rules that may have altered sections that want
+# to force a non-sha1 naming. This is only needed in development binary
+# building.
+sed -i "s/%{name}-%{version}/ceph-$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