kbuild: rpm-pkg: introduce %{with_devel} switch to select devel package
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 22 Jul 2023 04:48:01 +0000 (13:48 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 24 Jul 2023 15:59:33 +0000 (00:59 +0900)
commit2a291fc315b6aec2f209aa44da90515ddd4f89d0
tree70c72e9defe482b28514c01fd1591e9922e3f3f2
parentb537925fdd689ca33b6d9eed4569bc625550b3ef
kbuild: rpm-pkg: introduce %{with_devel} switch to select devel package

scripts/package/mkspec preprocesses the spec file by sed, but it is
unreadable. This commit removes the last portion of the sed scripting.

Remove the $S$M prefixes from the conditionally generated lines.
Instead, surround the code with %if %{with_devel} ... %endif.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.package
scripts/package/mkspec