spec: apply some specfile hardening

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
This commit is contained in:
Дмитрий Левин 2021-04-28 20:00:00 +00:00
parent 9299e5cba9
commit 9fd0523dfd

View File

@ -316,6 +316,10 @@ sed -r -n 's/^(.+)64(_.*|$)/\1\2/p' all-funcs |
mv -T %buildroot%_rpmlibdir/rpm{,build}rc mv -T %buildroot%_rpmlibdir/rpm{,build}rc
mv -T %buildroot%_rpmlibdir/{,build}macros mv -T %buildroot%_rpmlibdir/{,build}macros
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict
%pre %pre
[ ! -L %_rpmlibdir/noarch-alt-%_target_os ] || rm -f %_rpmlibdir/noarch-alt-%_target_os ||: [ ! -L %_rpmlibdir/noarch-alt-%_target_os ] || rm -f %_rpmlibdir/noarch-alt-%_target_os ||: