%define _withsql 1
%{!?with_sqlite3:%{!?with_sqlite:%{!?with_ibase:%{!?with_mysql:%{!?with_pgsql:%{!?with_odbc:%{!?with_oci:%undefine _withsql}}}}}}}
-%define icu_abi 67
+%define icu_abi 69
%define next_icu_abi %(echo $((%{icu_abi} + 1)))
Summary: The Qt GUI application framework
Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt
Name: qt4
Version: 4.8.7
-Release: 28
+Release: 29
License: LGPL v2.1 or GPL v3.0
Group: X11/Libraries
Source0: http://download.qt-project.org/official_releases/qt/4.8/%{version}/qt-everywhere-opensource-src-%{version}.tar.gz
Patch51: gcc9.patch
Patch52: gcc9-qforeach.patch
Patch53: cxx11.patch
+Patch54: gcc11.patch
URL: http://qt-project.org/
%{?with_ibase:BuildRequires: Firebird-devel}
%{?with_openvg:BuildRequires: Mesa-libOpenVG-devel}
BuildRequires: freetype-devel >= 2.1.3
%{?with_pch:BuildRequires: gcc >= 5:4.0}
BuildRequires: glib2-devel >= 2.0.0
-BuildRequires: gstreamer0.10-plugins-base-devel
+%{!?with_system_phonon:BuildRequires: gstreamer0.10-plugins-base-devel}
%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.10}
# see dependency on libicu version below
BuildRequires: libicu-devel >= %{icu_abi}
BuildRequires: xorg-lib-libXtst-devel
BuildRequires: xorg-lib-libXv-devel
BuildRequires: zlib-devel
+%{?with_system_phonon:BuildConflicts: gstreamer0.10-devel}
Obsoletes: qt-extensions
Obsoletes: qt-utils
Conflicts: kdelibs <= 8:3.2-0.030602.1
%patch51 -p1
%patch52 -p1
%patch53 -p1
+%patch54 -p1
%{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
mkspecs/common/linux.conf
%{!?with_sse41:-no-sse4.1} \
%{!?with_sse42:-no-sse4.2} \
%{!?with_avx:-no-avx} \
+ %{?with_system_phonon:-no-phonon} \
-qdbus \
-dbus-linked \
-reduce-relocations \
mkdevfl QtXml
mkdevfl QtXmlPatterns
mkdevfl Qt3Support
-mkdevfl phonon
+%{!?with_system_phonon:mkdevfl phonon}
# without *.la *.pc etc.
mkdevfl QtDesigner || /bin/true
ifecho demos %{_examplesdir}/qt4-demos/$f
done
-%if %{with system_phonon}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libphonon.so* \
- $RPM_BUILD_ROOT%{_libdir}/libphonon.{la,prl} \
- $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/phonon_backend/libphonon_gstreamer.so \
- $RPM_BUILD_ROOT%{_pkgconfigdir}/phonon.pc
-%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/qt4/phonon
-%if %{with static_libs}
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libphonon.a
-%endif
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT