[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Need some macro voodoo advice
- From: Patrick <rpm-list puzzled xs4all nl>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Need some macro voodoo advice
- Date: Mon, 18 Sep 2006 16:57:29 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]