Wireshark-dev: Re: [Wireshark-dev] building a Gtk2 RPM (Was: QT_MIN_VERSION)
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Tue, 12 Aug 2014 17:01:40 -0400
On 08/12/14 16:05, Christopher Maynard wrote:
Jeff Morriss <jeff.morriss.ws@...> writes:
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

Thanks for the link.  Yes, I was mistaken in my understanding of these
macros, but since I explicitly specified the configure options for gtk2,
gtk3 and qt, I don't think it mattered.  Well, I restored wireshark.spec.in
to its original state and tried again with the same negative results as
before:

./configure --with-gtk2 && make rpm-package

...
RPM build errors:
     File not found:
/home/wireshark/1.12.0/packaging/rpm/BUILDROOT/wireshark-1.12.0-1.x86_64
/usr/local/bin/wireshark-qt
make: *** [rpm-package] Error 1

That's odd; I just tried it (starting from the wireshark-1.12.0 source tarball[1]) and did not have any problems. I wonder if your wireshark.spec file isn't being regenerated (from wireshark.spec.in)? You could try comparing the two or just remove wireshark.spec to force it to be built again.

[1] cd /tmp && tar xjf /path/to/wireshark-1.12.0.tar.bz2 && cd wireshark-1.12.0 && ./configure --with-gtk2 && make rpm-package