Wireshark-dev: Re: [Wireshark-dev] building a Gtk2 RPM (Was: QT_MIN_VERSION)
From: Jeff Morriss <[email protected]>
Date: Mon, 11 Aug 2014 11:58:22 -0400
On 08/08/14 12:14, Maynard, Chris wrote:
 > -----Original Message-----
 > From: [email protected] [mailto:wireshark-dev-
 > [email protected]] On Behalf Of Michal Labedzki
 > Sent: Friday, August 08, 2014 1:46 AM
 > To: Developer support list for Wireshark
 > Subject: Re: [Wireshark-dev] QT_MIN_VERSION
 >
 > I use "" instead of "styleName()" and everything seems to be ok. What
about use
 > conditional define with QT version?
 >
 > However I vote for update to 4.8.0
I would prefer not to do this, if at all possible, until at least the
end of the RHEL6 Production 1 Phase.
_https://access.redhat.com/support/policy/updates/errata_
Currently we don't necessarily have any particular need or desire to
deploy qtshark on these systems; however:
1) Others may want to?
Others will surely want to once 2.0 comes out (where Qt becomes the 
main/default interface) so +1 from me.  (Anyway this was already fixed.)
2) I'm unable to create .rpm's using --without-qt. (or with both
--without-gtk2 and --without-gtk3 for that matter, but that hasn’t been
a problem since I just don’t bother installing the gnome rpm that’s
generated.)
RHEL6 doesn't have GTK3, so I’m forced to use, at a minimum,
--with-gtk2, and of course change wireshark.spec.in as well:
%bcond_with    gtk2
%bcond_without gtk3
%bcond_without qt
When you're building from the source tree the RPM generation should 
follow your ./configure options.  So:
% ./configure --with-gtk2 && make rpm-package

should do the trick. It seems that some work is still needed to allow a no-GUI RPM build though (in r53607 I said it worked but it doesn't seem to now).

Note that the %bcond_with* macros are funny; they don't really do what you'd expect:
https://lists.fedoraproject.org/pipermail/devel/2011-December/160357.html