Signed-off-by: Alfredo Deza <adeza@redhat.com>
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