csomh / source-git / rpm

Forked from source-git/rpm 4 years ago
Clone
2ff057
# macros to include to generate debuginfo
2ff057
# Note don't define/enable a feature here if it is already the default in
2ff057
# macros.in. Otherwise it cannot simply be --undefined on the command line
2ff057
# in the tests (it needs to be undefined multiple times then).
2ff057
2ff057
%_enable_debug_packages 1
2ff057
%_include_minidebuginfo 1
2ff057
%_include_gdb_index    	1
2ff057
2ff057
# Expanded at end of %install scriptlet
2ff057
2ff057
%__arch_install_post %{nil}
2ff057
2ff057
%__os_install_post \
2ff057
    %{_rpmconfigdir}/brp-compress \
2ff057
    %{!?__debug_package:\
2ff057
    %{_rpmconfigdir}/brp-strip %{__strip} \
2ff057
    %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} \
2ff057
    } \
2ff057
    %{_rpmconfigdir}/brp-strip-static-archive %{__strip} \
2ff057
%{nil}
2ff057
2ff057
%__spec_install_post\
2ff057
    %{?__debug_package:%{__debug_install_post}}\
2ff057
    %{__arch_install_post}\
2ff057
    %{__os_install_post}\
2ff057
%{nil}
2ff057
2ff057
%install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\
2ff057
%%install\
2ff057
%{nil}
2ff057
2ff057
# Should missing buildids terminate a build?
2ff057
%_missing_build_ids_terminate_build    1
2ff057
2ff057
# Number of debugging information entries (DIEs) above which
2ff057
# dwz will stop considering file for multifile optimizations
2ff057
# and enter a low memory mode, in which it will optimize
2ff057
# in about half the memory needed otherwise.
2ff057
%_dwz_low_mem_die_limit		 10000000
2ff057
# Number of DIEs above which dwz will stop processing
2ff057
# a file altogether.
2ff057
%_dwz_max_die_limit     	 50000000
2ff057
2ff057
%_find_debuginfo_dwz_opts --run-dwz\\\
2ff057
   --dwz-low-mem-die-limit %{_dwz_low_mem_die_limit}\\\
2ff057
   --dwz-max-die-limit %{_dwz_max_die_limit}