diff options
Diffstat (limited to 'macros.in')
-rw-r--r-- | macros.in | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -491,3 +491,32 @@ %rename() \ Obsoletes: %{1} <= %{version}-%{release} \ Provides: %{1} = %{version}-%{release} + +#-------------------------------------------------------------------------------- +# --without section + +%prep %{?_without_prep:%define __spec_prep_cmd /bin/true\ +%%prep\ +%{warn:Skipping %%prep stage\ +}}%{?!_without_prep:%%prep} + +%build %{?_without_build:%define __spec_build_cmd /bin/true\ +%%build\ +%{warn:Skipping %%build stage\ +}}%{?!_without_build:%%build} + +%install %{?_without_install:%define __spec_install_cmd /bin/true\ +%%install\ +%{warn:Skipping %%install stage\ +}}%{?!_without_install:%%install} + +%check %{?_without_check:%define __spec_check_cmd /bin/true\ +%%check\ +%{warn:Skipping %%check stage\ +}}%{?!_without_check:%%check} + +# Shorthand for %{defined with_...} +# macros provided by rpm 4.4, but buggy :( +%with() %{expand:%%{?_with_%{1}:1}%%{!?_with_%{1}:0}} +%without() %{expand:%%{?_without_%{1}:1}%%{!?_without_%{1}:0}} + |