On Mon, 2006-09-18 at 15:35 +0200, Patrick wrote: > Hi Jeff, > > On Mon, 2006-09-18 at 08:44 -0400, Jeff Johnson wrote: > > On Sep 18, 2006, at 8:19 AM, Patrick wrote:> > > > > > > %{?_with_jb || ?_with_siptcp:Release 1.%{svnrev}_JB_SIPTCP%{dist}}> > > > > This bit of ugliness might work (untested) > > > > %if %{?_with_jb:1}%{?_with_siptcp:1}0 > > Release 1.%{svnrev}_JB_SIPTCP%{dist} > > %endif > > Works like a charm. Thanks! Spoke too soon. Any idea how I can make it pick the right Release name based on which build options where enabled. The possible choices are: --with jb --with siptcp --with jb --with siptcp none of the above This does not work (not surprising give my lack of knowledge of this stuff :) %if %{?_with_jb:1}%{?_with_siptcp:1}0 Release 1.%{svnrev}_JB_SIPTCP%{dist} %else %if %{?_with_jb:0}%{?_with_siptcp:1}0 Release 1.%{svnrev}_SIPTCP%{dist} %else %if %{?_with_jb:1}%{?_with_siptcp:0}0 Release 1.%{svnrev}_JB%{dist} %else %if %{?_with_jb:0}%{?_with_siptcp:0}0 Release 1.%{svnrev}%{dist} %endif Thanks and regards, Patrick _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list