diff --git a/SOURCES/macros b/SOURCES/macros index 73dc5a2..2cbb14e 100644 --- a/SOURCES/macros +++ b/SOURCES/macros @@ -157,7 +157,7 @@ print(result) %__brp_strip /usr/lib/rpm/brp-strip %{__strip} %__brp_strip_comment_note /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_static_archive /usr/lib/rpm/brp-strip-static-archive %{__strip} -%__brp_python_bytecompile /usr/lib/rpm/brp-python-bytecompile %{?_python_bytecompile_errors_terminate_build} +%__brp_python_bytecompile /usr/lib/rpm/brp-python-bytecompile "" %{?_python_bytecompile_errors_terminate_build} %__brp_python_hardlink /usr/lib/rpm/brp-python-hardlink # __brp_mangle_shebangs_exclude - shebangs to exclude # __brp_mangle_shebangs_exclude_file - file from which to get shebangs to exclude diff --git a/SOURCES/macros.kmp b/SOURCES/macros.kmp index eae0bda..a765547 100644 --- a/SOURCES/macros.kmp +++ b/SOURCES/macros.kmp @@ -2,6 +2,8 @@ %global redhat_kernel_module_package 1 %global kernel_module_package_release 1 +%global redhat_kmp_has_post_hooks 1 + %__brp_kmod_set_exec_bit /usr/lib/rpm/redhat/brp-kmod-set-exec-bit %__brp_kmod_restore_perms /usr/lib/rpm/redhat/brp-kmod-restore-perms @@ -48,6 +50,11 @@ echo " %%%%{?__debug_package:%%%%{__debug_install_post}} \\\\" \ echo " %%{__arch_install_post} \\\\" \ echo " %%{__os_install_post} \\\\" \ + echo " %%{?__brp_kmod_pre_sign_process} \\\\" \ + echo " %%{?__brp_kmod_sign} \\\\" \ + echo " %%{?__brp_kmod_post_sign_process} \\\\" \ + echo " %%{?__brp_kmod_compress} \\\\" \ + echo " %%{?__brp_kmod_post_compress_process} \\\\" \ echo " %%{?__brp_kmod_restore_perms} \\\\" \ echo "%%{nil}" \ fi \ diff --git a/SPECS/redhat-rpm-config.spec b/SPECS/redhat-rpm-config.spec index 7f283c9..4bec78e 100644 --- a/SPECS/redhat-rpm-config.spec +++ b/SPECS/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 120 +Version: 122 Release: 1%{?dist} # No version specified. License: GPL+ @@ -198,6 +198,11 @@ install -p -m 755 %{SOURCE21} %{buildroot}%{_rpmconfigdir}/kabi.sh %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Mon Feb 24 2020 Michal Domonkos - 122-1 +- Fix argument shift in %%__brp_python_bytecompile (#1724567) + +* Tue Nov 26 2019 Eugene Syromiatnikov - 121-1 +- macros.kmp: add post-install hooks for kmod processing (#1664478, #1673200) * Thu Jul 04 2019 Florian Festi - 120-1 - Fix permission for various build scripts (#1719363)