From 5057c7c260790cbe5dffeb823ff186282cdfd7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Tue, 4 Feb 2020 19:06:26 +0200 Subject: build.macros: remove '--without
' rpmbuild functionality It was the only leftover using _with(). --- NEWS | 2 ++ build.macros.in | 26 +------------------------- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/NEWS b/NEWS index 0ca8049..d6037da 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- build.macros: remove '--without
' rpmbuild functionality + Version 2.51 - 3 February 2020, by Jani Välimaa - rpmrc: use _ssp_cflags also with arm optflags - build.macros: drop pyver macro (moved to python-rpm-macros) diff --git a/build.macros.in b/build.macros.in index 50c8a1b..155148e 100644 --- a/build.macros.in +++ b/build.macros.in @@ -368,34 +368,15 @@ popd %rpmhelper_required_version 0.24.11 %systemd_required_version 195 -#------------------------------------------------------------------------------ -# Redefine RPM sections to allow jumping over them using "--without
". -# This an interesting alternative to --short-circuit. -# The following are mostly equivalent: -# % rpmbuild -bi --short-circuit foo.spec && rpmbuild -bb --short-circuit foo.spec -# % rpmbuild -bb --without build foo.spec - -%prep %%prep \ -[ %{_with prep} -eq 1 ] || exit 0 \ -[ %{_with build} -eq 1 ] || exit 0 \ -[ %{_with install} -eq 1 ] || exit 0 \ -%{nil} - -%build %%build \ -[ %{_with install} -eq 1 ] || exit 0 \ -[ %{_with build} -eq 1 ] || exit 0 \ -%{nil} - #--------------------------------------------------------------------- # Expanded at beginning of %install scriptlet. # %__spec_install_pre %{___build_pre}\ -if [ %{_with install} -eq 1 ]; then\ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\ mkdir -p `dirname "$RPM_BUILD_ROOT"`\ mkdir "$RPM_BUILD_ROOT"\ -fi +%{nil} #--------------------------------------------------------------------- # Expanded at end of %install scriptlet. @@ -427,11 +408,6 @@ fi %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ %%install\ -[ %{_with install} -eq 1 ] || exit 0 \ -%{nil} - -%check %%check \ -[ %{_with check} -eq 1 ] || exit 0 \ %{nil} # -- cgit v1.2.1