]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
buildpackages: make-rpm.sh: update ceph.spec sed
authorNathan Cutler <ncutler@suse.com>
Thu, 1 Mar 2018 17:32:01 +0000 (18:32 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
Drop OBS-specific release suffix

Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/task/buildpackages/make-rpm.sh

index 3e68d4438dceb80ad86b6b152dda39a664428dba..8d0beaa00165374bbbf422d222d390d162f19086 100755 (executable)
@@ -145,11 +145,10 @@ function build_package() {
         ccache=$(echo /usr/lib*/ccache)
         # Build RPMs
         if [ "$suse" = true ]; then
-          sed -i -e '0,/%package/s//%debug_package\n&/' \
-                 -e 's/%{epoch}://g' \
-                 -e '/^Epoch:/d' \
-                 -e 's/%bcond_with ceph_test_package/%bcond_without ceph_test_package/' \
-                 -e "s/^Source0:.*$/Source0: $CEPH_TARBALL/" \
+          sed -i \
+                 -e '0,/%package/s//%debug_package\n\n&/' \
+                 -e 's/%bcond_with ceph_test_package/%bcond_without ceph_test_package/g' \
+                 -e '0,/^Release:/s/.<B_CNT>//' \
                  -e '/^Source9/d' \
                  ceph.spec
         fi