-%bcond_without shared # static or shared version
-%bcond_without distributable # distributable or not
-%bcond_without incall # include all tarballs into src.rpm (but splitted into shared/static)
-%bcond_with snap # snap version
-%bcond_with weekly # weekly snapshot version
-
-%ifarch sparc sparcv9
-%undefine with_shared
-%endif
-
-%if %{with weekly}
-%define ver 9.23
-%define sver %{ver}
-%define fix %{nil}
-%define dirrel 20070809
-%define reltype %{nil}
-%define magicstr 660
-%define with_snap 1
-%else
-%if %{with snap}
-%define ver 9.50
-%define sver %{ver}
-%define fix %{nil}
-%define dirrel 20070903
-%define reltype Alpha-1
-%define magicstr 1567
-%else
-%define ver 9.23
-%define sver 9.23
-%define fix %{nil}
-%define dirrel 20070809
-%define reltype final
-%define magicstr 660
-%endif
-%endif
-
-%define shver %(echo %{ver} | tr -d .)%{fix}
-%define x86_shared_rel %{dirrel}.5
-%define x86_static_rel %{dirrel}.1
-%define sparc_shared_rel %{dirrel}.2
-%define sparc_static_rel %{dirrel}.1
-%define ppc_shared_rel %{dirrel}.3
-%define ppc_static_rel %{dirrel}.1
-%if %{with shared}
-%define type shared
-# We should be able to build src.rpm also on not supported archs
-%define rel %{x86_shared_rel}
-%ifarch sparc sparcv9
-#%%define rel %{sparc_shared_rel}
-%define rel %{sparc_static_rel}
-%else
-%ifarch ppc
-%define rel %{ppc_shared_rel}
-%endif
-%endif
-%else
-%define type static
-%define rel %{x86_static_rel}
-%ifarch sparc sparcv9
-%define rel %{sparc_static_rel}
-%else
-%ifarch ppc
-%define rel %{ppc_static_rel}
-%endif
-%endif
-%endif
-
-# define to 0 and then redefine to avoid
-# not defined macros
-%define need_ix86_shared_snap 0
-%define need_sparc_shared_snap 0
-%define need_ppc_shared_snap 0
-%define need_ix86_static_snap 0
-%define need_sparc_static_snap 0
-%define need_ppc_static_snap 0
-
-%define need_ix86_shared 0
-%define need_sparc_shared 0
-%define need_ppc_shared 0
-%define need_ix86_static 0
-%define need_sparc_static 0
-%define need_ppc_static 0
-
-%if %{with incall}
-# with incall? [if]
-%if %{with snap}
-# with snap? [if]
-%if %{with shared}
-# with shared? [if]
-%define need_ix86_shared_snap 1
-%define need_sparc_shared_snap 0
-%define need_ppc_shared_snap 1
-%else
-# with shared: [else]
-%define need_ix86_static_snap 1
-%define need_sparc_static_snap 1
-%define need_ppc_static_snap 1
-%endif
-# with shared; [endif]
-%else
-# with snap: [else]
-%if %{with shared}
-# with shared? [if]
-%define need_ix86_shared 1
-#%%define need_sparc_shared 1
-%define need_sparc_static 1
-%define need_ppc_shared 1
-%else
-# with shared: [else]
-%define need_ix86_static 1
-%define need_sparc_static 1
-%define need_ppc_static 1
-%endif
-# with shared; [endif]
-%endif
-# with snap; [endif]
-%else
-# with incall: [else]
-%ifarch %{ix86}
-# is ix86? [if]
-%if %{with snap}
-# with snap? [if]
-%if %{with shared}
-# with shared? [if]
-%define need_ix86_shared_snap 1
-%else
-# with shared: [else]
-%define need_ix86_static_snap 1
-%endif
-# with shared; [endif]
-%else
-# with snap: [else]
-%if %{with shared}
-# with shared? [if]
-%define need_ix86_shared 1
-%else
-# with shared: [else]
-%define need_ix86_static 1
-%endif
-# with shared; [endif]
-%endif
-# with snap; [endif]
-%else
-# is ix86: [else]
-%ifarch sparc sparc64
-# is sparc? [if]
-%if %{with snap}
-# with snap? [if]
-%if %{with shared}
-# with shared? [if]
-%define need_sparc_shared_snap 1
-%else
-# with shared: [else]
-%define need_sparc_static_snap 1
-%endif
-# with shared; [endif]
-%else
-# with snap: [else]
-%if %{with shared}
-# with shared? [if]
-#%%define need_sparc_shared 1
-%define need_sparc_static 1
-%else
-# with shared: [else]
-%define need_sparc_static 1
-%endif
-# with shared; [endif]
-%endif
-# with snap; [endif]
-%else
-# is sparc: [else]
-%ifarch ppc
-# is ppc? [if]
-%if %{with snap}
-# with snap? [if]
-%if %{with shared}
-# with shared? [if]
-%define need_ppc_shared_snap 1
-%else
-# with shared: [else]
-%define need_ppc_static_snap 1
-%endif
-# with shared; [endif]
-%else
-# with snap: [else]
-%if %{with shared}
-# with shared? [if]
-%define need_ppc_shared 1
-%else
-# with shared: [else]
-%define need_ppc_static 1
-%endif
-# with shared; [endif]
-%endif
-# with snap; [endif]
-%endif
-# is ppc; [endif]
-%endif
-# is sparc; [endif]
-%endif
-# is ix86; [endif]
-%endif
-# with incall; [endif]
-
-%if %{with weekly}
-%define need_ppc_shared_snap 0
-%define need_ppc_static_snap 0
-%define need_sparc_shared_snap 0
-%define need_sparc_static_snap 0
-%endif