File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858# 'r' modifier and the number of slashes is intentional, modify very carefully
5959# or don't touch this at all
6060MODSIGN_CONTENT = r"""
61- %__brp_kmod_sign %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko' -print0 | xargs -0 -r -I{} /usr/local/ bin/modsign %{modsign_os} {} }
61+ %__brp_kmod_sign %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko' -print0 | xargs -0 -r -I{} /usr/bin/rpm-sign --key %{modsign_os} --lkmsign {} --output {} }
6262%__brp_kmod_post_sign_process %{expand:[ ! -d "$RPM_BUILD_ROOT/lib/modules/" ] || find "$RPM_BUILD_ROOT/lib/modules/" -type f -name '*.ko.*' -delete}
6363%__spec_install_post \\
6464 %{?__debug_package:%{__debug_install_post}} \\
You can’t perform that action at this time.
0 commit comments