summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-09-07 11:57:39 +0200
committerTomasz Olszak <olszak.tomasz@gmail.com>2014-01-29 00:12:23 +0100
commit182bced8b3033b3b487fb6b0a8d21333e4f4ca87 (patch)
tree8523bfbea8ab70ef467e11ad3aec9f22dc535575
parent8938c5f9ef096ac1517eef348f3c38f2e92aa1c7 (diff)
downloadqtbase-182bced8b3033b3b487fb6b0a8d21333e4f4ca87.tar.gz
qtbase-182bced8b3033b3b487fb6b0a8d21333e4f4ca87.tar.bz2
qtbase-182bced8b3033b3b487fb6b0a8d21333e4f4ca87.zip
spec files adapted for Tizen
-rw-r--r--packaging/qt5.spec (renamed from packaging/qtbase.spec)568
1 files changed, 315 insertions, 253 deletions
diff --git a/packaging/qtbase.spec b/packaging/qt5.spec
index e58dc12c58..e9bc2955ce 100644
--- a/packaging/qtbase.spec
+++ b/packaging/qt5.spec
@@ -1,33 +1,55 @@
+# The MIT License (MIT)
+#
+# Copyright (c) 2013 Tomasz Olszak <olszak.tomasz@gmail.com>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+# This file is based on qtbase.spec from Mer project
+# http://merproject.org
+
# libQtPlatformSupport is not built as a shared library, only as a
# static .a lib-archive. By default the OBS build removes all discovered
# libFOO.a files and as such rpmlint never complains about
# installed-but-unpackaged static libs.
# This flag tells rpmbuild to behave.
-%define keepstatic 1
+%bcond_with wayland
+
# Version is the date of latest commit in qtbase, followed by 'g' + few
# characters of the last git commit ID.
# NOTE: tarball's prefix is 'qt5-base' until version number starts to
# make sense. This allows to update spec contents easily as snapshots
# evolve.
-
Name: qt5
Summary: Cross-platform application and UI framework
-Version: 5.0.2
-Release: 1%{?dist}
-Group: Qt/Qt
-License: LGPLv2.1 with exception or GPLv3
-URL: http://qt.nokia.com
+Version: 5.2.0
+Release: 0
+Group: Base/Libraries
+License: LGPL-2.1+ or GPL-3.0
+URL: http://qt.digia.com
Source0: %{name}-%{version}.tar.bz2
Source1: macros.qt5-default
Source100: qtbase-rpmlintrc
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dbus-1)
-BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(freetype2)
-BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libpng)
@@ -35,12 +57,23 @@ BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(sqlite3)
+BuildRequires: pkgconfig(zlib)
+BuildRequires: pkgconfig(udev)
+BuildRequires: pkgconfig(mtdev)
+BuildRequires: cups-devel
+BuildRequires: fdupes
+BuildRequires: flex
+BuildRequires: libjpeg-devel
+BuildRequires: pam-devel
+BuildRequires: readline-devel
+BuildRequires: python
+BuildRequires: pkgconfig(fontconfig)
+BuildRequires: pkgconfig(xkbcommon)
+BuildRequires: pkgconfig(glesv2)
+BuildRequires: pkgconfig(egl)
+%if ! %{with wayland}
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
-BuildRequires: pkgconfig(xcb-keysyms)
-BuildRequires: pkgconfig(xcb-image)
-BuildRequires: pkgconfig(xcb-icccm)
-BuildRequires: pkgconfig(xcb-renderutil)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xft)
@@ -51,31 +84,58 @@ BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xv)
-BuildRequires: pkgconfig(zlib)
-BuildRequires: pkgconfig(udev)
-BuildRequires: pkgconfig(mtdev)
-BuildRequires: cups-devel
-BuildRequires: fdupes
-BuildRequires: flex
-# Package not available but installed in OBS?
-#BuildRequires: gcc-g++
-BuildRequires: libjpeg-devel
-#BuildRequires: libtiff-devel
-BuildRequires: pam-devel
-BuildRequires: readline-devel
-BuildRequires: sharutils
-#BuildRequires: gdb
-BuildRequires: python
+BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(scim)
+BuildRequires: pkgconfig(xdamage)
+BuildRequires: pkgconfig(xfixes)
+BuildRequires: pkgconfig(xrender)
+BuildRequires: pkgconfig(xscrnsaver)
+%endif
+
%description
Qt is a cross-platform application and UI framework. Using Qt, you can
write web-enabled applications once and deploy them across desktop,
mobile and embedded systems without rewriting the source code.
+%package -n qt5-qtbase
+Summary: Meta package for installing all qtbase libraries
+Group: Base/Libraries
+Requires: qt5-default
+Requires: qt5-plugin-accessible-widgets
+Requires: qt5-plugin-bearer-connman
+Requires: qt5-plugin-bearer-generic
+Requires: qt5-plugin-bearer-nm
+Requires: qt5-plugin-generic-evdev
+Requires: qt5-plugin-imageformat-gif
+Requires: qt5-plugin-imageformat-ico
+Requires: qt5-plugin-imageformat-jpeg
+Requires: qt5-plugin-platform-eglfs
+Requires: qt5-plugin-platforminputcontext-ibus
+Requires: qt5-plugin-platform-linuxfb
+Requires: qt5-plugin-platform-minimal
+Requires: qt5-plugin-platform-minimalegl
+Requires: qt5-plugin-platform-offscreen
+Requires: qt5-plugin-printsupport-cups
+Requires: qt5-plugin-sqldriver-sqlite
+Requires: qt5-qtconcurrent
+Requires: qt5-qtcore
+Requires: qt5-qtdbus
+Requires: qt5-qtgui
+Requires: qt5-qtnetwork
+Requires: qt5-qtopengl
+Requires: qt5-qtprintsupport
+Requires: qt5-qtsql
+Requires: qt5-qttest
+Requires: qt5-qtwidgets
+Requires: qt5-qtxml
+
+%description -n qt5-qtbase
+This package is meta package which groups qtbase libraries and plugins
%package tools
Summary: Development tools for qtbase
-Group: Qt/Qt
+Group: Base/Libraries
Requires: qtchooser
%description tools
@@ -83,7 +143,7 @@ This package contains useful tools for Qt development
%package qtcore
Summary: The QtCore library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -92,7 +152,7 @@ This package contains the QtCore library
%package qtcore-devel
Summary: Development files for QtCore
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qmake
Requires: %{name}-tools
Requires: %{name}-qtcore = %{version}-%{release}
@@ -106,7 +166,7 @@ that use the QtCore
%package qmake
Summary: QMake
-Group: Qt/Qt
+Group: Base/Libraries
Requires: qtchooser
%description qmake
@@ -115,7 +175,7 @@ This package contains qmake
%package plugin-bearer-connman
Summary: Connman bearer plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-bearer-connman
@@ -124,7 +184,7 @@ This package contains the connman bearer plugin
%package plugin-bearer-generic
Summary: Connman generic plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-bearer-generic
@@ -133,7 +193,7 @@ This package contains the connman generic bearer plugin
%package plugin-bearer-nm
Summary: Connman generic plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-bearer-nm
@@ -142,7 +202,7 @@ This package contains the connman NetworkManager bearer plugin
%package plugin-imageformat-gif
Summary: Gif image format plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-imageformat-gif
@@ -151,7 +211,7 @@ This package contains the gif imageformat plugin
%package plugin-imageformat-ico
Summary: Ico image format plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-imageformat-ico
@@ -160,24 +220,15 @@ This package contains the ico imageformat plugin
%package plugin-imageformat-jpeg
Summary: JPEG image format plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-imageformat-jpeg
This package contains the JPEG imageformat plugin
-
-#%package plugin-imageformat-tiff
-#Summary: TIFF image format plugin
-#Group: Qt/Qt
-#
-#%description plugin-imageformat-tiff
-#This package contains the TIFF imageformat plugin
-
-
%package plugin-platform-minimal
Summary: Minimal platform plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platform-minimal
@@ -185,42 +236,15 @@ This package contains the minimal platform plugin
%package plugin-platform-offscreen
Summary: Offscreen platform plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platform-offscreen
This package contains the offscreen platform plugin
-
-%package plugin-platform-inputcontext-compose
-Summary: compose input context platform plugin
-Group: Qt/Qt
-Requires: %{name}-qtcore = %{version}-%{release}
-
-%description plugin-platform-inputcontext-compose
-This package contains compose platform inputcontext plugin
-
-
-%package plugin-platform-inputcontext-maliit
-Summary: MALIIT input context platform plugin
-Group: Qt/Qt
-Requires: %{name}-qtcore = %{version}-%{release}
-
-%description plugin-platform-inputcontext-maliit
-This package contains MALIIT platform inputcontext plugin
-
-
-#%package plugin-platform-wayland
-#Summary: Wayland platform plugin
-#Group: Qt/Qt
-#
-#%description plugin-platform-wayland
-#This package contains the wayland platform plugin
-
-
%package plugin-platform-eglfs
Summary: Eglfs platform plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platform-eglfs
@@ -228,31 +252,35 @@ This package contains the eglfs platform plugin
%package plugin-platform-minimalegl
Summary: Minimalegl platform plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platform-minimalegl
This package contains the minimalegl platform plugin
+%package plugin-platform-linuxfb
+Summary: Linux framebuffer platform plugin
+Group: Base/Libraries
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platform-linuxfb
+This package contains the linuxfb platform plugin for Qt
+
+%if ! %{with wayland}
+
%package plugin-platform-xcb
Summary: XCB platform plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platform-xcb
This package contains the XCB platform plugin
-%package plugin-platform-linuxfb
-Summary: Linux framebuffer platform plugin
-Group: Qt/Qt
-Requires: %{name}-qtcore = %{version}-%{release}
-
-%description plugin-platform-linuxfb
-This package contains the linuxfb platform plugin for Qt
+%endif
%package plugin-printsupport-cups
Summary: CUPS print support plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-printsupport-cups
@@ -260,24 +288,15 @@ This package contains the CUPS print support plugin
%package plugin-accessible-widgets
Summary: Accessible widgets plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-accessible-widgets
This package contains the access widgets plugin
-# %package plugin-platform-xlib
-# Summary: Xlib platform plugin
-# Group: Qt/Qt
-#
-# %description plugin-platform-xlib
-# This package contains the Xlib platform plugin
-
-
-
%package plugin-sqldriver-sqlite
Summary: Sqlite sql driver plugin
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-sqldriver-sqlite
@@ -285,27 +304,32 @@ This package contains the sqlite sql driver plugin
%package plugin-platforminputcontext-ibus
-Summary: ibus platform import context plugin
-Group: Qt/Qt
+Summary: The ibus platform import context plugin
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-platforminputcontext-ibus
This package contains the ibus platform input context plugin
+%package plugin-platform-inputcontext-compose
+Summary: Compose input context platform plugin
+Group: Base/Libraries
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platform-inputcontext-compose
+This package contains compose platform inputcontext plugin
+
%package plugin-generic-evdev
-Summary: evdev generic plugin
-Group: Qt/Qt
+Summary: The evdev generic plugin
+Group: Base/Libraries
Requires: %{name}-qtcore = %{version}-%{release}
%description plugin-generic-evdev
This package contains evdev plugins
-
-
-
%package qtdbus
Summary: The QtDBus library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -315,7 +339,7 @@ This package contains the QtDBus library
%package qtdbus-devel
Summary: Development files for QtDBus
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtdbus = %{version}-%{release}
Requires: pkgconfig(dbus-1)
@@ -326,7 +350,7 @@ applications that use QtDBus
%package qtgui
Summary: The QtGui Library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -336,7 +360,7 @@ This package contains the QtGui library
%package qtgui-devel
Summary: Development files for QtGui
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtgui = %{version}-%{release}
Requires: %{name}-qtopengl-devel
@@ -347,7 +371,7 @@ applications that use QtGui
%package qtnetwork
Summary: The QtNetwork library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -357,18 +381,16 @@ This package contains the QtNetwork library
%package qtnetwork-devel
Summary: Development files for QtNetwork
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtnetwork = %{version}-%{release}
%description qtnetwork-devel
This package contains the files necessary to develop
applications that use QtNetwork
-
-
%package qtopengl
Summary: The QtOpenGL library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -378,10 +400,11 @@ This package contains the QtOpenGL library
%package qtopengl-devel
Summary: Development files for QtOpenGL
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtopengl = %{version}-%{release}
-Requires: libGLESv2-devel
-Requires: libEGL-devel
+Requires: pkgconfig(glesv2)
+Requires: pkgconfig(egl)
+
%description qtopengl-devel
This package contains the files necessary to develop
@@ -390,17 +413,16 @@ applications that use QtOpenGL
%package qtsql
Summary: The QtSql library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description qtsql
This package contains the QtSql library
-
%package qtsql-devel
Summary: Development files for QtSql
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtsql = %{version}-%{release}
%description qtsql-devel
@@ -410,7 +432,7 @@ applications that use QtSql
%package qttest
Summary: The QtTest library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -420,7 +442,7 @@ This package contains the QtTest library
%package qttest-devel
Summary: Development files for QtTest
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qttest = %{version}-%{release}
%description qttest-devel
@@ -430,7 +452,7 @@ applications that use QtTest
%package qtxml
Summary: The QtXml library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -439,7 +461,7 @@ This package contains the QtXml library
%package qtxml-devel
Summary: Development files for QtXml
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtxml = %{version}-%{release}
%description qtxml-devel
@@ -449,7 +471,7 @@ applications that use QtXml
%package qtwidgets
Summary: The QtWidgets library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -458,7 +480,7 @@ This package contains the QtWidgets library
%package qtwidgets-devel
Summary: Development files for QtWidgets
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtwidgets = %{version}-%{release}
%description qtwidgets-devel
@@ -467,7 +489,7 @@ applications that use QtWidgets
%package qtplatformsupport-devel
Summary: Development files for QtPlatformSupport
-Group: Qt/Qt
+Group: Base/Libraries
%description qtplatformsupport-devel
This package contains the files necessary to develop
@@ -475,7 +497,7 @@ applications that use QtPlatformSupport
%package qtbootstrap-devel
Summary: Development files for QtBootstrap
-Group: Qt/Qt
+Group: Base/Libraries
%description qtbootstrap-devel
This package contains the files necessary to develop
@@ -483,7 +505,7 @@ applications that use QtBootstrap
%package qtprintsupport
Summary: The QtPrintSupport
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -492,7 +514,7 @@ This package contains the QtPrintSupport library
%package qtprintsupport-devel
Summary: Development files for QtPrintSupport
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtprintsupport = %{version}-%{release}
%description qtprintsupport-devel
@@ -501,7 +523,7 @@ applications that use QtPrintSupport
%package qtconcurrent
Summary: QtConcurrent library
-Group: Qt/Qt
+Group: Base/Libraries
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -510,7 +532,7 @@ This package contains the QtConcurrent library
%package qtconcurrent-devel
Summary: Development files for QtConcurrent
-Group: Qt/Qt
+Group: Base/Libraries
Requires: %{name}-qtconcurrent = %{version}-%{release}
%description qtconcurrent-devel
@@ -546,8 +568,13 @@ MAKEFLAGS=%{?_smp_mflags} \
-confirm-license \
%if ! 0%{?qt5_release_build}
-developer-build \
+ -no-warnings-are-errors \
+%endif
+%if %{with wayland}
+ -platform devices/linux-g++-tizen-ivi \
+%else
+ -platform devices/linux-g++-tizen-mobile \
%endif
- -platform linux-g++ \
-prefix "%{_prefix}" \
-bindir "%{_libdir}/qt5/bin" \
-libdir "%{_libdir}" \
@@ -579,36 +606,31 @@ MAKEFLAGS=%{?_smp_mflags} \
-no-rpath \
-optimized-qmake \
-dbus-linked \
+%if ! 0%{?qt5_release_build}
-no-strip \
-no-separate-debug-info \
+%endif
-verbose \
-no-gtkstyle \
-opengl es2 \
-no-openvg \
- -lfontconfig \
- -I/usr/include/freetype2 \
-nomake tests \
-nomake examples \
- -nomake demos \
-no-xinput2 \
- -xcb
-#
+%if %{with wayland}
+ -no-xcb
+%else
+ -xcb \
+ -qt-xcb
+%endif
+
+
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
-%make_install
-#
-# We don't need qt5/Qt/
-rm -rf %{buildroot}/%{_includedir}/qt5/Qt
-
-# Fix wrong path in pkgconfig files
-find %{buildroot}%{_libdir}/pkgconfig -type f -name '*.pc' \
--exec perl -pi -e "s, -L%{_builddir}/?\S+,,g" {} \;
-# Fix wrong path in prl files
-find %{buildroot}%{_libdir} -type f -name '*.prl' \
--exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/" {} \;
+INSTALL_ROOT=%{buildroot} %{__make} install
find %{buildroot}%{_docdir}/qt5/ -type f -exec chmod ugo-x {} \;
@@ -622,59 +644,78 @@ mkdir -p %{buildroot}%{_libdir}/qt5/examples/
#
# Install qmake rpm macros
install -D -p -m 0644 %{_sourcedir}/macros.qt5-default \
-%{buildroot}/%{_sysconfdir}/rpm/macros.qt5-default
+%{buildroot}%{_sysconfdir}/rpm/macros.qt5-default
# Add a configuration link for qtchooser - the 5.conf is installed by qtchooser
-mkdir -p %{buildroot}/etc/xdg/qtchooser
+mkdir -p %{buildroot}%{_sysconfdir}/xdg/qtchooser
ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchooser/default.conf
#
-%fdupes %{buildroot}/%{_libdir}
-%fdupes %{buildroot}/%{_includedir}
-%fdupes %{buildroot}/%{_datadir}
+%fdupes %{buildroot}%{_libdir}
+%fdupes %{buildroot}%{_includedir}
+%fdupes %{buildroot}%{_datadir}
#### Pre/Post section
-%post qtcore -p /sbin/ldconfig
-%postun qtcore -p /sbin/ldconfig
-
-%post qtdbus -p /sbin/ldconfig
-%postun qtdbus -p /sbin/ldconfig
-
-%post qtsql -p /sbin/ldconfig
-%postun qtsql -p /sbin/ldconfig
-
-%post qtnetwork -p /sbin/ldconfig
-%postun qtnetwork -p /sbin/ldconfig
-
-%post qtgui -p /sbin/ldconfig
-%postun qtgui -p /sbin/ldconfig
-
-%post qttest -p /sbin/ldconfig
-%postun qttest -p /sbin/ldconfig
-
-%post qtopengl -p /sbin/ldconfig
-%postun qtopengl -p /sbin/ldconfig
-
-%post qtxml -p /sbin/ldconfig
-%postun qtxml -p /sbin/ldconfig
-
-%post qtprintsupport -p /sbin/ldconfig
-%postun qtprintsupport -p /sbin/ldconfig
-
-%post qtwidgets -p /sbin/ldconfig
-%postun qtwidgets -p /sbin/ldconfig
-
-%post qtconcurrent -p /sbin/ldconfig
-%postun qtconcurrent -p /sbin/ldconfig
+%post qtcore
+/sbin/ldconfig
+%postun qtcore
+/sbin/ldconfig
+
+%post qtdbus
+/sbin/ldconfig
+%postun qtdbus
+/sbin/ldconfig
+
+%post qtsql
+/sbin/ldconfig
+%postun qtsql
+/sbin/ldconfig
+
+%post qtnetwork
+/sbin/ldconfig
+%postun qtnetwork
+/sbin/ldconfig
+
+%post qtgui
+/sbin/ldconfig
+%postun qtgui
+/sbin/ldconfig
+
+%post qttest
+/sbin/ldconfig
+%postun qttest
+/sbin/ldconfig
+
+%post qtopengl
+/sbin/ldconfig
+%postun qtopengl
+/sbin/ldconfig
+
+%post qtxml
+/sbin/ldconfig
+%postun qtxml
+/sbin/ldconfig
+
+%post qtprintsupport
+/sbin/ldconfig
+%postun qtprintsupport
+/sbin/ldconfig
+
+%post qtwidgets
+/sbin/ldconfig
+%postun qtwidgets
+/sbin/ldconfig
+
+%post qtconcurrent
+/sbin/ldconfig
+%postun qtconcurrent
+/sbin/ldconfig
#### File section
# There is no naked qt5 package
-#%files
-
-
%files tools
%defattr(-,root,root,-)
@@ -697,46 +738,54 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtcore-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtCore/
+%{_includedir}/qt5/QtCore
%{_libdir}/libQt5Core.prl
+%{_libdir}/libQt5Core.la
%{_libdir}/libQt5Core.so
%{_libdir}/pkgconfig/Qt5Core.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_core.pri
-%{_libdir}/cmake/
+%{_datadir}/qt5/mkspecs/modules/qt_lib_core_private.pri
+%{_libdir}/cmake
%files qmake
%defattr(-,root,root,-)
%{_libdir}/qt5/bin/qmake
-%{_datadir}/qt5/mkspecs/aix-*/
-%{_datadir}/qt5/mkspecs/blackberry*/
-%{_datadir}/qt5/mkspecs/common/
-%{_datadir}/qt5/mkspecs/cygwin-*/
-%{_datadir}/qt5/mkspecs/darwin-*/
-%{_datadir}/qt5/mkspecs/features/
-%{_datadir}/qt5/mkspecs/freebsd-*/
+%{_datadir}/qt5/mkspecs/aix-*
+%{_datadir}/qt5/mkspecs/blackberry*
+%{_datadir}/qt5/mkspecs/common
+%{_datadir}/qt5/mkspecs/cygwin-*
+%{_datadir}/qt5/mkspecs/darwin-*
+%{_datadir}/qt5/mkspecs/features
+%{_datadir}/qt5/mkspecs/freebsd-*
%{_datadir}/qt5/mkspecs/hpux-*
%{_datadir}/qt5/mkspecs/hpuxi-*
-%{_datadir}/qt5/mkspecs/hurd-g++/
-%{_datadir}/qt5/mkspecs/irix-*/
-%{_datadir}/qt5/mkspecs/linux-*/
-%{_datadir}/qt5/mkspecs/lynxos-*/
-%{_datadir}/qt5/mkspecs/macx-*/
-%{_datadir}/qt5/mkspecs/netbsd-*/
-%{_datadir}/qt5/mkspecs/openbsd-*/
+%{_datadir}/qt5/mkspecs/hurd-g++
+%{_datadir}/qt5/mkspecs/irix-*
+%{_datadir}/qt5/mkspecs/linux-*
+%{_datadir}/qt5/mkspecs/lynxos-*
+%{_datadir}/qt5/mkspecs/macx-*
+%{_datadir}/qt5/mkspecs/netbsd-*
+%{_datadir}/qt5/mkspecs/openbsd-*
%{_datadir}/qt5/mkspecs/qconfig.pri
+%{_datadir}/qt5/mkspecs/qfeatures.pri
%{_datadir}/qt5/mkspecs/qmodule.pri
-%{_datadir}/qt5/mkspecs/qnx*/
-%{_datadir}/qt5/mkspecs/sco-*/
-%{_datadir}/qt5/mkspecs/solaris-*/
-%{_datadir}/qt5/mkspecs/tru64-*/
-%{_datadir}/qt5/mkspecs/unixware-*/
-%{_datadir}/qt5/mkspecs/unsupported/
-%{_datadir}/qt5/mkspecs/win32-g++/
-%{_datadir}/qt5/mkspecs/win32-icc/
-%{_datadir}/qt5/mkspecs/win32-msvc20*/
-%{_datadir}/qt5/mkspecs/wince*/
-%{_datadir}/qt5/mkspecs/devices/
+%{_datadir}/qt5/mkspecs/qnx*
+%{_datadir}/qt5/mkspecs/sco-*
+%{_datadir}/qt5/mkspecs/solaris-*
+%{_datadir}/qt5/mkspecs/tru64-*
+%{_datadir}/qt5/mkspecs/unixware-*
+%{_datadir}/qt5/mkspecs/unsupported
+%{_datadir}/qt5/mkspecs/win32-g++
+%{_datadir}/qt5/mkspecs/win32-icc
+%{_datadir}/qt5/mkspecs/win32-msvc20*
+%{_datadir}/qt5/mkspecs/wince*
+%{_datadir}/qt5/mkspecs/devices
%{_datadir}/qt5/mkspecs/qdevice.pri
+%{_datadir}/qt5/mkspecs/winphone-arm-msvc2012
+%{_datadir}/qt5/mkspecs/winphone-x86-msvc2012
+%{_datadir}/qt5/mkspecs/winrt-arm-msvc2012
+%{_datadir}/qt5/mkspecs/winrt-x64-msvc2012
+%{_datadir}/qt5/mkspecs/winrt-x86-msvc2012
%config(noreplace) %{_sysconfdir}/rpm/macros.qt5-default
%files qtdbus
@@ -748,11 +797,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/bin/qdbuscpp2xml
%{_libdir}/qt5/bin/qdbusxml2cpp
-%{_includedir}/qt5/QtDBus/
+%{_includedir}/qt5/QtDBus
%{_libdir}/libQt5DBus.so
%{_libdir}/libQt5DBus.prl
+%{_libdir}/libQt5DBus.la
%{_libdir}/pkgconfig/Qt5DBus.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_dbus.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_dbus_private.pri
%files qtgui
@@ -762,11 +813,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtgui-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtGui/
+%{_includedir}/qt5/QtGui
%{_libdir}/libQt5Gui.prl
+%{_libdir}/libQt5Gui.la
%{_libdir}/libQt5Gui.so
%{_libdir}/pkgconfig/Qt5Gui.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_gui.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_gui_private.pri
%files qtnetwork
@@ -776,11 +829,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtnetwork-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtNetwork/
+%{_includedir}/qt5/QtNetwork
%{_libdir}/libQt5Network.prl
+%{_libdir}/libQt5Network.la
%{_libdir}/libQt5Network.so
%{_libdir}/pkgconfig/Qt5Network.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_network.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_network_private.pri
%files qtopengl
@@ -790,18 +845,22 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtopengl-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtOpenGL/
-%{_includedir}/qt5/QtOpenGLExtensions/
+%{_includedir}/qt5/QtOpenGL
+%{_includedir}/qt5/QtOpenGLExtensions
%{_libdir}/libQt5OpenGL.prl
+%{_libdir}/libQt5OpenGL.la
%{_libdir}/libQt5OpenGLExtensions.prl
+%{_libdir}/libQt5OpenGLExtensions.la
%{_libdir}/libQt5OpenGL.so
%{_libdir}/libQt5OpenGLExtensions.a
%{_libdir}/pkgconfig/Qt5OpenGL.pc
%{_libdir}/pkgconfig/Qt5OpenGLExtensions.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_opengl.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_opengl_private.pri
%{_datadir}/qt5/mkspecs/android-g++/qmake.conf
%{_datadir}/qt5/mkspecs/android-g++/qplatformdefs.h
%{_datadir}/qt5/mkspecs/modules/qt_lib_openglextensions.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri
%files qtsql
@@ -811,11 +870,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtsql-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtSql/
+%{_includedir}/qt5/QtSql
%{_libdir}/libQt5Sql.prl
+%{_libdir}/libQt5Sql.la
%{_libdir}/libQt5Sql.so
%{_libdir}/pkgconfig/Qt5Sql.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_sql.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_sql_private.pri
%files qttest
@@ -824,11 +885,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qttest-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtTest/
+%{_includedir}/qt5/QtTest
%{_libdir}/libQt5Test.prl
+%{_libdir}/libQt5Test.la
%{_libdir}/libQt5Test.so
%{_libdir}/pkgconfig/Qt5Test.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_testlib.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_testlib_private.pri
%files qtxml
%defattr(-,root,root,-)
@@ -836,11 +899,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtxml-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtXml/
+%{_includedir}/qt5/QtXml
%{_libdir}/libQt5Xml.prl
+%{_libdir}/libQt5Xml.la
%{_libdir}/libQt5Xml.so
%{_libdir}/pkgconfig/Qt5Xml.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_xml.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_xml_private.pri
%files qtwidgets
%defattr(-,root,root,-)
@@ -848,26 +913,30 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtwidgets-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtWidgets/
+%{_includedir}/qt5/QtWidgets
%{_libdir}/libQt5Widgets.prl
+%{_libdir}/libQt5Widgets.la
%{_libdir}/libQt5Widgets.so
%{_libdir}/pkgconfig/Qt5Widgets.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_widgets.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_widgets_private.pri
%files qtplatformsupport-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtPlatformSupport/
+%{_includedir}/qt5/QtPlatformSupport
%{_libdir}/libQt5PlatformSupport.prl
+%{_libdir}/libQt5PlatformSupport.la
%{_libdir}/libQt5PlatformSupport.a
%{_libdir}/pkgconfig/Qt5PlatformSupport.pc
-%{_datadir}/qt5/mkspecs/modules/qt_lib_platformsupport.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri
%files qtbootstrap-devel
%defattr(-,root,root,-)
%{_libdir}/libQt5Bootstrap.prl
+%{_libdir}/libQt5Bootstrap.la
%{_libdir}/libQt5Bootstrap.a
%{_libdir}/pkgconfig/Qt5Bootstrap.pc
-%{_datadir}/qt5/mkspecs/modules/qt_lib_bootstrap.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
%files qtprintsupport
%defattr(-,root,root,-)
@@ -875,11 +944,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtprintsupport-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtPrintSupport/
+%{_includedir}/qt5/QtPrintSupport
%{_libdir}/libQt5PrintSupport.prl
+%{_libdir}/libQt5PrintSupport.la
%{_libdir}/libQt5PrintSupport.so
%{_libdir}/pkgconfig/Qt5PrintSupport.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_printsupport.pri
+%{_datadir}/qt5/mkspecs/modules/qt_lib_printsupport_private.pri
%files qtconcurrent
%defattr(-,root,root,-)
@@ -887,14 +958,13 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%files qtconcurrent-devel
%defattr(-,root,root,-)
-%{_includedir}/qt5/QtConcurrent/
+%{_includedir}/qt5/QtConcurrent
%{_libdir}/libQt5Concurrent.prl
+%{_libdir}/libQt5Concurrent.la
%{_libdir}/libQt5Concurrent.so
%{_libdir}/pkgconfig/Qt5Concurrent.pc
%{_datadir}/qt5/mkspecs/modules/qt_lib_concurrent.pri
-
-
-
+%{_datadir}/qt5/mkspecs/modules/qt_lib_concurrent_private.pri
# Plugin packages
@@ -922,10 +992,6 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/imageformats/libqjpeg.so
-#%files plugin-imageformat-tiff
-#%defattr(-,root,root,-)
-#%{_libdir}/qt5/plugins/imageformats/libqtiff.so
-
%files plugin-platform-minimal
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqminimal.so
@@ -934,14 +1000,6 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqoffscreen.so
-%files plugin-platform-inputcontext-compose
-%defattr(-,root,root,-)
-%{_libdir}/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
-
-%files plugin-platform-inputcontext-maliit
-%defattr(-,root,root,-)
-%{_libdir}/qt5/plugins/platforminputcontexts/libmaliitplatforminputcontextplugin.so
-
%files plugin-platform-eglfs
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqeglfs.so
@@ -950,13 +1008,17 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqminimalegl.so
+%files plugin-platform-linuxfb
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/platforms/libqlinuxfb.so
+
+%if ! %{with wayland}
+
%files plugin-platform-xcb
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforms/libqxcb.so
-%files plugin-platform-linuxfb
-%defattr(-,root,root,-)
-%{_libdir}/qt5/plugins/platforms/libqlinuxfb.so
+%endif
%files plugin-printsupport-cups
%defattr(-,root,root,-)
@@ -966,10 +1028,6 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/accessible/libqtaccessiblewidgets.so
-# %files plugin-platform-xlib
-# %defattr(-,root,root,-)
-# %{_libdir}/qt5/plugins/platforms/libqxlib.so
-
%files plugin-sqldriver-sqlite
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/sqldrivers/libqsqlite.so
@@ -978,6 +1036,10 @@ ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchoos
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
+%files plugin-platform-inputcontext-compose
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so
+
%files plugin-generic-evdev
%defattr(-,root,root,-)
%{_libdir}/qt5/plugins/generic/libqevdev*plugin.so