commit 37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62

OBS-URL: https://build.opensuse.org/package/show/Kernel:stable/kernel-source?expand=0&rev=1695
This commit is contained in:
Jiri Slaby 2022-03-22 06:11:57 +00:00 committed by Git OBS Bridge
parent 425dd4bf7d
commit 7e370e1267
40 changed files with 698 additions and 204 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -31,7 +31,7 @@
Name: dtb-aarch64
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -31,7 +31,7 @@
Name: dtb-armv6l
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -31,7 +31,7 @@
Name: dtb-armv7l
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -31,7 +31,7 @@
Name: dtb-riscv64
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%obsolete_rebuilds %name
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
Source3: kernel-source.rpmlintrc
@ -1194,14 +1194,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1260,13 +1260,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1326,13 +1326,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1493,13 +1493,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1540,13 +1540,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1587,13 +1587,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1649,13 +1649,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1697,13 +1697,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1744,13 +1744,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1063,14 +1063,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1127,13 +1127,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1191,13 +1191,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1358,13 +1358,13 @@ Requires(post): suse-module-tools >= 12.4
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n @KMP_NAME@-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "@KMP_NAME@-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "@KMP_NAME@-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n @KMP_NAME@-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "@KMP_NAME@-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "@KMP_NAME@-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -7,6 +7,15 @@ Requires(postun): suse-kernel-rpm-scriptlets
This package contains the UEFI Secure Boot certificate used to sign
modules in the %{-n*}-kmp packages.
%define run_if_exists run_if_exists() { \
if [ -x "$1" ] ; then \
"$@" \
else \
echo Cannot execute "$1" >&2 \
fi \
} \
run_if_exists
%pre -n %{-n*}-ueficert
/usr/lib/module-init-tools/kernel-scriptlets/cert-pre --certs "@CERTS@" "$@"
@ -14,10 +23,10 @@ modules in the %{-n*}-kmp packages.
/usr/lib/module-init-tools/kernel-scriptlets/cert-post --certs "@CERTS@" "$@"
%preun -n %{-n*}-ueficert
/usr/lib/module-init-tools/kernel-scriptlets/cert-preun --certs "@CERTS@" "$@"
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/cert-preun --certs "@CERTS@" "$@"
%postun -n %{-n*}-ueficert
/usr/lib/module-init-tools/kernel-scriptlets/cert-postun --certs "@CERTS@" "$@"
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/cert-postun --certs "@CERTS@" "$@"
%posttrans -n %{-n*}-ueficert
/usr/lib/module-init-tools/kernel-scriptlets/cert-posttrans --certs "@CERTS@" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%ifarch ppc64
Provides: kernel-kdump = 2.6.28
Obsoletes: kernel-kdump <= 2.6.28
@ -1200,14 +1200,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1268,13 +1268,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1336,13 +1336,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1507,13 +1507,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1554,13 +1554,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1601,13 +1601,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1663,13 +1663,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1711,13 +1711,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1758,13 +1758,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%ifarch %ix86
Provides: kernel-smp = 2.6.17
Obsoletes: kernel-smp <= 2.6.17
@ -1243,14 +1243,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1330,13 +1330,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1417,13 +1417,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1608,13 +1608,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1655,13 +1655,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1702,13 +1702,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1764,13 +1764,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1812,13 +1812,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1859,13 +1859,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -33,7 +33,7 @@ License: GPL-2.0-only
Group: Documentation/Man
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -67,7 +67,7 @@ BuildRequires: texlive-zapfding
%endif
URL: https://www.kernel.org/
Provides: %name = %version-%source_rel
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%obsolete_rebuilds %name
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
Source3: kernel-source.rpmlintrc
@ -1198,14 +1198,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1268,13 +1268,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1338,13 +1338,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1505,13 +1505,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1552,13 +1552,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1599,13 +1599,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1661,13 +1661,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1709,13 +1709,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1756,13 +1756,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%obsolete_rebuilds %name
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
Source3: kernel-source.rpmlintrc
@ -1192,14 +1192,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1256,13 +1256,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1320,13 +1320,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1487,13 +1487,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1534,13 +1534,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1581,13 +1581,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1643,13 +1643,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1691,13 +1691,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1738,13 +1738,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -48,6 +48,16 @@ Obsoletes: %{-n*}-kmp-xen
Obsoletes: %{-n*}-kmp-desktop
%endif
AutoReqProv: on
%define run_if_exists run_if_exists() { \
if [ -x "$1" ] ; then \
"$@" \
else \
echo Cannot execute "$1" >&2 \
fi \
} \
run_if_exists
%{-p:%{expand:%(cd %_sourcedir; cat %{-p*})}}
%description -n %{-n*}-kmp-%1
%(
@ -80,11 +90,11 @@ END { exit(! good) }
--version "%_this_kmp_version" --release "%{-r*}" --kernelrelease "%2" \
--flavor "%1" --usrmerged "0%{?usrmerged}" "$@"
%preun -n %{-n*}-kmp-%1
%{-b:KMP_NEEDS_MKINITRD=1} /usr/lib/module-init-tools/kernel-scriptlets/kmp-preun --name "%{-n*}-kmp-%1" \
%{-b:KMP_NEEDS_MKINITRD=1} %run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/kmp-preun --name "%{-n*}-kmp-%1" \
--version "%_this_kmp_version" --release "%{-r*}" --kernelrelease "%2" \
--flavor "%1" --usrmerged "0%{?usrmerged}" "$@"
%postun -n %{-n*}-kmp-%1
%{-b:KMP_NEEDS_MKINITRD=1} /usr/lib/module-init-tools/kernel-scriptlets/kmp-postun --name "%{-n*}-kmp-%1" \
%{-b:KMP_NEEDS_MKINITRD=1} %run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/kmp-postun --name "%{-n*}-kmp-%1" \
--version "%_this_kmp_version" --release "%{-r*}" --kernelrelease "%2" \
--flavor "%1" --usrmerged "0%{?usrmerged}" "$@"
%posttrans -n %{-n*}-kmp-%1

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -45,7 +45,7 @@ BuildRequires: util-linux
%endif
%endif
%endif
BuildRequires: kernel%kernel_flavor-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
BuildRequires: kernel%kernel_flavor-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%if 0%{?rhel_version}
BuildRequires: kernel
@ -66,7 +66,7 @@ License: GPL-2.0-only
Group: SLES
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -38,7 +38,7 @@ License: GPL-2.0-only
Group: SLES
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%ifarch %ix86
Provides: kernel-bigsmp = 2.6.17
Obsoletes: kernel-bigsmp <= 2.6.17
@ -1220,14 +1220,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1300,13 +1300,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1380,13 +1380,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1557,13 +1557,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1604,13 +1604,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1651,13 +1651,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1713,13 +1713,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1761,13 +1761,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1808,13 +1808,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -33,7 +33,7 @@
Name: kernel-source
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -50,7 +50,7 @@ BuildRequires: fdupes
BuildRequires: sed
Requires(post): coreutils sed
Provides: %name = %version-%source_rel
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: linux
Provides: multiversion(kernel)
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz

View File

@ -72,4 +72,14 @@
%define kernel_module_directory /lib/modules
%endif
# Very basic macro for conditional execution.
%define run_if_exists run_if_exists() { \
if [ -x "$1" ] ; then \
"$@" \
else \
echo Cannot execute "$1" >&2 \
fi \
} \
run_if_exists
# vim: ft=spec

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -27,7 +27,7 @@ Group: Development/Sources
Version: 5.17.0
%if %using_buildservice
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -52,7 +52,7 @@ Requires: kernel-pae-devel = %version-%source_rel
%endif
Requires: pesign-obs-integration
Provides: %name = %version-%source_rel
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: multiversion(kernel)
Source: README.KSYMS
Requires: kernel-devel%variant = %version-%source_rel

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%obsolete_rebuilds %name
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
Source3: kernel-source.rpmlintrc
@ -1191,14 +1191,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1254,13 +1254,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1317,13 +1317,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1484,13 +1484,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1531,13 +1531,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1578,13 +1578,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1640,13 +1640,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1688,13 +1688,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1735,13 +1735,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Mar 21 15:04:49 CET 2022 - msuchanek@suse.de
- Revert "rpm/macros.kernel-source: avoid %if's and %define's"
This reverts commit d0cec50d019c853336e26f5ff5df5a4c9c3ea120.
- commit b20736a
-------------------------------------------------------------------
Mon Mar 21 13:19:17 CET 2022 - msuchanek@suse.de
- macros.kernel-source: Fix conditional expansion.
Fixes: bb95fef3cf19 ("rpm: Use bash for %() expansion (jsc#SLE-18234).")
- commit 7e857f7
-------------------------------------------------------------------
Mon Mar 21 12:26:30 CET 2022 - jslaby@suse.cz
@ -323,6 +337,19 @@ Wed Mar 16 19:29:49 CET 2022 - ailiop@suse.com
- config: enable XFS_RT (bsc#1197190)
- commit d8f0e40
-------------------------------------------------------------------
Wed Mar 16 17:55:51 CET 2022 - msuchanek@suse.de
- rpm: Run external scriptlets on uninstall only when available
(bsc#1196514 bsc#1196114 bsc#1196942).
When dependency cycles are encountered package dependencies may not be
fulfilled during zypper transaction at the time scriptlets are run.
This is a problem for kernel scriptlets provided by suse-module-tools
when migrating to a SLE release that provides these scriptlets only as
part of LTSS. The suse-module-tools that provides kernel scriptlets may
be removed early causing migration to fail.
- commit ab8dd2d
-------------------------------------------------------------------
Wed Mar 16 11:10:48 CET 2022 - msuchanek@suse.de

View File

@ -109,7 +109,7 @@ License: GPL-2.0-only
Group: System/Kernel
Version: 5.17.0
%if 0%{?is_kotd}
Release: <RELEASE>.gd0cec50
Release: <RELEASE>.g37738df
%else
Release: 0
%endif
@ -234,10 +234,10 @@ Conflicts: hyper-v < 4
Conflicts: libc.so.6()(64bit)
%endif
Provides: kernel = %version-%source_rel
Provides: kernel-%build_flavor-base-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: kernel-%build_flavor-base-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
Provides: kernel-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
# END COMMON DEPS
Provides: %name-srchash-d0cec50d019c853336e26f5ff5df5a4c9c3ea120
Provides: %name-srchash-37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
%obsolete_rebuilds %name
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
Source3: kernel-source.rpmlintrc
@ -1194,14 +1194,14 @@ fi
%endif
%preun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-preun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%endif
%postun
%if "%build_flavor" != "zfcpdump"
/usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/rpm-postun --name "%name" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1260,13 +1260,13 @@ This package contains additional modules not supported by SUSE.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun extra
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-extra" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1326,13 +1326,13 @@ This package contains optional modules only for openSUSE Leap.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun optional
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "%name-optional" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1493,13 +1493,13 @@ nodes in the cluster can access the MD devices simultaneously.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n cluster-md-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "cluster-md-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1540,13 +1540,13 @@ shared resources over the cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n dlm-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "dlm-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1587,13 +1587,13 @@ GFS2 is Global Filesystem, a shared device filesystem.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n gfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "gfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1649,13 +1649,13 @@ environments, they are not intended to be run on production systems.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n kselftests-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "kselftests-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1697,13 +1697,13 @@ accessible simultaneously from multiple nodes of a cluster.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n ocfs2-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "ocfs2-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
@ -1744,13 +1744,13 @@ provides the reiserfs module for the installation system.
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%preun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-preun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"
%postun -n reiserfs-kmp-%build_flavor
/usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
%run_if_exists /usr/lib/module-init-tools/kernel-scriptlets/inkmp-postun --name "reiserfs-kmp-%build_flavor" \
--version "%version" --release "%release" --kernelrelease "%kernelrelease" \
--image "%image" --flavor "%build_flavor" --variant "%variant" \
--usrmerged "0%{?usrmerged}" --certs "%certs" "$@"

View File

@ -1,5 +1,11 @@
# A few cross-distro definitions:
%kernel_build_shell_package bash-sh
%kernel_build_shell_package %{lua: \
if ((tonumber(rpm.expand("0%{?suse_version}")) > 1500) or (tonumber(rpm.expand("0%{?sle_version}")) > 150300)) then \
print( "bash-sh" ) \
else \
print( "" ) \
end \
}
%kernel_module_package_release 1
%kernel_module_package_buildreqs modutils kernel-syms kmod-compat %kernel_build_shell_package

View File

@ -1,3 +1,3 @@
2022-03-21 11:26:30 +0000
GIT Revision: d0cec50d019c853336e26f5ff5df5a4c9c3ea120
2022-03-22 05:53:25 +0000
GIT Revision: 37738df2e7d572e123b9a4fa6e8b55a8dfd2ad62
GIT Branch: stable