# - more cleanups
# - check if translations are available
# - check Qt ui tool
-# - QtWebKit-devel is broken: libQtWebKit.*la contains '-ljscore', it comes
-# from src/3rdparty/webkit/JavaScriptCore, but jscore lib isn't installed
#
# Conditional build:
%bcond_with nas # enable NAS audio support
Summary(pl.UTF-8): Biblioteka Qt do tworzenia GUI
Summary(pt_BR.UTF-8): Estrutura para rodar aplicações GUI Qt
Name: qt4
-Version: 4.8.2
-Release: 6
+Version: 4.8.3
+Release: 9
License: LGPL v2.1 or GPL v3.0
Group: X11/Libraries
Source0: http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-%{version}.tar.gz
-# Source0-md5: 3c1146ddf56247e16782f96910a8423b
+# Source0-md5: a663b6c875f8d7caa8ac9c30e4a4ec3b
Source2: %{name}-qtconfig.desktop
Source3: %{name}-designer.desktop
Source4: %{name}-assistant.desktop
Patch5: %{name}-support-cflags-with-commas.patch
Patch6: %{name}-build-lib-static.patch
Patch7: %{name}-x11_fonts.patch
-Patch8: %{name}-glib.patch
-Patch9: %{name}-ibase.patch
-Patch10: %{name}-git.patch
-Patch11: qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch
-Patch12: gcc-4.7.patch
-Patch13: webkit-no_Werror.patch
-Patch14: moc-boost148.patch
+Patch8: %{name}-ibase.patch
+Patch9: qt-x11-opensource-src-4.5.1-enable_ft_lcdfilter.patch
+Patch10: webkit-no_Werror.patch
+Patch11: moc-boost148.patch
+Patch12: fix-crash-in-assistant.patch
+Patch13: improve-cups-support.patch
+Patch14: qt4-git.patch
+Patch15: qt-everywhere-opensource-src-4.8.3-QTBUG-27322.patch
+Patch16: qt-everywhere-opensource-src-4.8.3-QTBUG-4862.patch
URL: http://qt.nokia.com/
%{?with_ibase:BuildRequires: Firebird-devel}
BuildRequires: Mesa-libOpenVG-devel
BuildRequires: freetype-devel >= 1:2.0.0
%{?with_pch:BuildRequires: gcc >= 5:4.0}
BuildRequires: glib2-devel >= 2.0.0
-BuildRequires: gstreamer-plugins-base-devel
+BuildRequires: gstreamer0.10-plugins-base-devel
%{?with_gtk:BuildRequires: gtk+2-devel >= 2:2.10}
-BuildRequires: libicu-devel >= 4.8
+# see dependency on libicu version below
+BuildRequires: libicu-devel >= 49
+BuildRequires: libicu-devel < 50
BuildRequires: libjpeg-devel
BuildRequires: libmng-devel >= 1.0.0
BuildRequires: libpng-devel >= 2:1.0.8
%requires_eq libicu
# be sure to depend on proper arch.
%ifarch %{ix86}
-Requires: libicui18n.so.48
+Requires: libicui18n.so.49
%endif
%ifarch %{x8664}
-Requires: libicui18n.so.48()(64bit)
+Requires: libicui18n.so.49()(64bit)
%endif
Obsoletes: QtAssistant
%description -n QtOpenGL-static -l pl.UTF-8
Klasy Qt wspomagające OpenGL - biblioteki statyczne.
+%package -n QtOpenVG
+Summary: Qt OpenVG support classes
+Summary(pl.UTF-8): Klasy Qt wspomagające OpenVG
+Group: X11/Libraries
+Requires: QtCore = %{version}-%{release}
+Requires: QtGui = %{version}-%{release}
+
+%description -n QtOpenVG
+Qt OpenVG support classes.
+
+%description -n QtOpenVG -l pl.UTF-8
+Klasy Qt wspomagające OpenVG.
+
+%package -n QtOpenVG-devel
+Summary: Qt OpenVG support classes - development files
+Summary(pl.UTF-8): Klasy Qt wspomagające OpenVG - pliki programistyczne
+Group: X11/Development/Libraries
+Requires: Mesa-libOpenVG-devel
+Requires: QtCore-devel = %{version}-%{release}
+Requires: QtGui-devel = %{version}-%{release}
+
+%description -n QtOpenVG-devel
+Qt OpenVG support classes - development files.
+
+%description -n QtOpenVG-devel -l pl.UTF-8
+Klasy Qt wspomagające OpenVG - pliki programistyczne.
+
+%package -n QtOpenVG-static
+Summary: Qt OpenVG support classes - static libraries
+Summary(pl.UTF-8): Klasy Qt wspomagające OpenVG - biblioteki statyczne
+Group: X11/Development/Libraries
+Requires: QtOpenVG-devel = %{version}-%{release}
+
+%description -n QtOpenVG-static
+Qt OpenVG support classes - static libraries.
+
+%description -n QtOpenVG-static -l pl.UTF-8
+Klasy Qt wspomagające OpenVG - biblioteki statyczne.
+
%package -n QtScript
Summary: Qt classes for scripting applications
Summary(pl.UTF-8): Klasy Qt pozwalające dodać obsługę skryptów w aplikacjach
%patch7 -p1
%patch8 -p1
%patch9 -p1
-#%patch10 -p1
+%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
+%patch15 -p1
+%patch16 -p1
%{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
mkspecs/common/linux.conf
s|uic_location=.*|uic_location=%{_bindir}/uic-qt4|;
' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
+# libQtWebKit.la contains '-ljscore' and '-lwebcore', they come
+# from src/3rdparty/webkit/{JavaScriptCore,WebCore}} but those libs aren't installed
+%{__sed} -i -e "s,-lwebcore,,g;s,-ljscore,,g;" $RPM_BUILD_ROOT%{_libdir}/libQtWebKit.la
+
# install tools
install bin/findtr $RPM_BUILD_ROOT%{_qtdir}/bin
mkdevfl QtMultimedia
mkdevfl QtNetwork
mkdevfl QtOpenGL
+mkdevfl QtOpenVG
mkdevfl QtScript
mkdevfl QtScriptTools
mkdevfl QtSql
# without glob (exclude QtScriptTools* QtXmlPatterns*)
%{__sed} -i 's,QtScript\*,QtScript,g' QtScript-devel.files
%{__sed} -i 's,QtXml\*,QtXml,g' QtXml-devel.files
+# no duplication between QtCore-devel and QtXml-devel
+%{__sed} -i 's,%{_includedir}/qt4/Qt/QXmlStream.*,,g' QtCore-devel.files
+%{__sed} -i 's,%{_includedir}/qt4/Qt/qxmlstream\.h,,g' QtCore-devel.files
echo "%defattr(644,root,root,755)" > examples.files
ifecho examples %{_examplesdir}/qt4
%post -n QtOpenGL -p /sbin/ldconfig
%postun -n QtOpenGL -p /sbin/ldconfig
+%post -n QtOpenVG -p /sbin/ldconfig
+%postun -n QtOpenVG -p /sbin/ldconfig
+
%post -n QtScript -p /sbin/ldconfig
%postun -n QtScript -p /sbin/ldconfig
%attr(755,root,root) %ghost %{_libdir}/libQtOpenGL.so.4
%attr(755,root,root) %{_qtdir}/plugins/graphicssystems/libqglgraphicssystem.so
+%files -n QtOpenVG
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libQtOpenVG.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libQtOpenVG.so.4
+
%files -n QtScript
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libQtScript.so.*.*
%files -n QtOpenGL-devel -f QtOpenGL-devel.files
%defattr(644,root,root,755)
+%files -n QtOpenVG-devel -f QtOpenVG-devel.files
+%defattr(644,root,root,755)
+
%files -n QtScript-devel -f QtScript-devel.files
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%{_libdir}/libQtOpenGL.a
+%files -n QtOpenVG-static
+%defattr(644,root,root,755)
+%{_libdir}/libQtOpenVG.a
+
%files -n QtScript-static
%defattr(644,root,root,755)
%{_libdir}/libQtScript.a