]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
buildpackages: make-rpm.sh: tweak rpmbuild options
authorNathan Cutler <ncutler@suse.com>
Thu, 1 Mar 2018 21:08:03 +0000 (22:08 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/task/buildpackages/make-rpm.sh

index 8d0beaa00165374bbbf422d222d390d162f19086..6830957d3b01d5d4d9652fe6dfe80abe6a1cffa5 100755 (executable)
@@ -143,7 +143,6 @@ function build_package() {
     (
         cd ${buildarea}/SPECS
         ccache=$(echo /usr/lib*/ccache)
-        # Build RPMs
         if [ "$suse" = true ]; then
           sed -i \
                  -e '0,/%package/s//%debug_package\n\n&/' \
@@ -153,7 +152,11 @@ function build_package() {
                  ceph.spec
         fi
         buildarea=`readlink -fn ${releasedir}`   ### rpm wants absolute path
-        PATH=$ccache:$PATH rpmbuild -ba --define "_unpackaged_files_terminate_build 0" --define "_topdir ${buildarea}" ceph.spec
+        PATH=$ccache:$PATH rpmbuild -ba --nosignature \
+          --define '_srcdefattr (-,root,root)' \
+          --define "_unpackaged_files_terminate_build 0" \
+          --define "_topdir ${buildarea}" \
+          ceph.spec
     )
 }