Accepting request 304276 from home:elvigia:branches:network:utilities

- Build the qt frontend against QT5 in Factory (only).

OBS-URL: https://build.opensuse.org/request/show/304276
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=140
This commit is contained in:
Andreas Stieger 2015-04-28 07:10:21 +00:00 committed by Git OBS Bridge
parent 219c90669f
commit 1f20cdffe6
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 28 02:13:25 UTC 2015 - crrodriguez@opensuse.org
- Build the qt frontend against QT5 in Factory (only).
-------------------------------------------------------------------
Thu Apr 9 10:23:11 UTC 2015 - dimstar@opensuse.org

View File

@ -54,11 +54,18 @@ BuildRequires: gtk2-devel >= 2.12.0
%endif # use_gtk3
%endif # with gtk
%if %{with qt}
%if 0%{?suse_version} > 1320
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Widgets)
%else
%if 0%{?suse_version} >= 1220
BuildRequires: pkgconfig(QtCore) >= 4.6.0
%else
BuildRequires: libqt4-devel >= 4.6.0
%endif # 12.20
%endif
%endif # with qt
BuildRequires: krb5-devel
BuildRequires: libcap-devel
@ -192,6 +199,12 @@ autoreconf -fiv
export CFLAGS="%optflags -fPIE"
export CXXFLAGS="%optflags -fPIE"
export LDFLAGS="-pie"
%if 0%{?suse_version} > 1320
#XXX: buggy autoconf checks..
export PATH="%{_libdir}/qt5/bin:$PATH"
%endif
%configure \
%if 0%{?suse_version} < 1220
--without-zlib \