]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- %with, %without, %ifwith %ifwithout macros added
authorMichal Moskal <michal@moskal.me>
Fri, 6 Jun 2003 09:50:11 +0000 (09:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.117

rpm.macros

index a247fc6fe1b620ed6d617063b5686d27c7d9e03a..caa39d88a24f43c6f4b50fe17ce838b6e3824285 100644 (file)
 %ifdef()       %if %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
 %ifndef()      %if %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
 
+# Shorthand for %{defined with_...}
+%with()                %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
+%without()     %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
+
+# Shorthand for %if %{with ...}
+%ifwith()      %if %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
+%ifwithout()   %if %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
+
 # Handle conditional builds. %bcond_with is for case when feature is
 # default off and needs to be activated with --with ... command line 
 # switch. %bcond_without is for the dual case.
This page took 0.045064 seconds and 4 git commands to generate.