From f2aea4d4c53253cbd61d2feefd5c2c8cb51ab625 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 12 Sep 2016 17:43:27 +0530 Subject: [PATCH] ceph-dev-build: further massage ceph.spec to insist on using sha1 in version name Signed-off-by: Alfredo Deza --- ceph-dev-build/build/build_rpm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index 3b890734..9c19708d 100644 --- a/ceph-dev-build/build/build_rpm +++ b/ceph-dev-build/build/build_rpm @@ -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 -- 2.39.5