Re: Need some macro voodoo advice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux