From: Nathan Cutler Date: Thu, 1 Mar 2018 21:08:03 +0000 (+0100) Subject: buildpackages: make-rpm.sh: tweak rpmbuild options X-Git-Tag: 1.1.0~211^2~53 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=75693046b365ca201529c90abfee2772cbe21bb2;p=teuthology.git buildpackages: make-rpm.sh: tweak rpmbuild options Signed-off-by: Nathan Cutler --- diff --git a/teuthology/task/buildpackages/make-rpm.sh b/teuthology/task/buildpackages/make-rpm.sh index 8d0beaa001..6830957d3b 100755 --- a/teuthology/task/buildpackages/make-rpm.sh +++ b/teuthology/task/buildpackages/make-rpm.sh @@ -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 ) }