Re: Need some macro voodoo advice

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

 



Patrick wrote :

> 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

Why no just this?

Release: 1.%{svnrev}%{?_with_jb:_JB}%{?_with_siptcp:_SIPTCP}%{?dist}

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 5.92 (FC6 Test3) - Linux kernel 2.6.17-1.2647.fc6
Load : 0.51 0.60 0.61

_______________________________________________
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