]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- removed ifdef, ifundef, ifwith and ifwithout macros; they all work by
authorMichal Moskal <michal@moskal.me>
Wed, 16 Jul 2003 20:05:36 +0000 (20:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  accident

Changed files:
    rpm.macros -> 1.119

rpm.macros

index bc79622056ff1e59b3f3e7f6e65d34ca691b6fb3..f84d8f06c87259611cf8d5025e24d3f109c8ef3d 100644 (file)
 %defined()     %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
 %undefined()   %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
 
-# Shorthand for %if %{defined ...}
-%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.
 #
 # %bcond_with extra_fonts
 # %bcond_without static
-# %ifdef with_extra_fonts
+# %if %{with extra_fonts}
 # ...
 # %endif
-# %ifdef with_static
+# %ifdef %{with static}
 # ...
 # %endif
 # %{?with_static: ... }
This page took 0.086915 seconds and 4 git commands to generate.