makra ifdef/ifndef w rpmie z ra

Arkadiusz Miskiewicz arekm w pld-linux.org
Nie, 14 Wrz 2003, 01:23:58 CEST


Qboosh, dlaczego wyrzuciłeś te marka? Nie działają z rpmem z ra? Przez to nie 
można używać nowych bcondów z rpmem z ra (np. subversion.spec).

rpm.macros:
revision 1.85.2.10
date: 2003/08/19 10:53:47;  author: qboosh;  state: Exp;  lines: +10 -10
- simplified xmms macros (sync with 1.127)
----------------------------
revision 1.85.2.9
date: 2003/08/18 13:40:44;  author: qboosh;  state: Exp;  lines: +21 -10
- fixed __spec_prep_pre (missing ___build_pre); ported macros 1.125
----------------------------
revision 1.85.2.8
date: 2003/07/14 09:30:17;  author: qboosh;  state: Exp;  lines: +15 -1
- more macros backported (_desktopdir, gconf_schema_install)
  - now it should really provide macros 1.118


@@ -362,17 +381,9 @@
 %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

-- 
Arkadiusz Miśkiewicz    CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux



Więcej informacji o liście dyskusyjnej pld-devel-pl