summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Olszak <olszak.tomasz@gmail.com>2013-09-07 11:27:47 +0200
committerTomasz Olszak <olszak.tomasz@gmail.com>2014-01-29 00:12:22 +0100
commit8938c5f9ef096ac1517eef348f3c38f2e92aa1c7 (patch)
tree017ea698fcca096ae2696f03510320198b3ad9db
parent07276a7f77253211b5efcf5e7e5c82b4a3fa0c00 (diff)
downloadqtbase-8938c5f9ef096ac1517eef348f3c38f2e92aa1c7.tar.gz
qtbase-8938c5f9ef096ac1517eef348f3c38f2e92aa1c7.tar.bz2
qtbase-8938c5f9ef096ac1517eef348f3c38f2e92aa1c7.zip
Import from Mer
-rw-r--r--packaging/macros.qt5-default18
-rw-r--r--packaging/qtbase-rpmlintrc16
-rw-r--r--packaging/qtbase.spec989
3 files changed, 1023 insertions, 0 deletions
diff --git a/packaging/macros.qt5-default b/packaging/macros.qt5-default
new file mode 100644
index 0000000000..a278bd59fb
--- /dev/null
+++ b/packaging/macros.qt5-default
@@ -0,0 +1,18 @@
+#
+# QMake macros
+#
+
+%_qt5_prefix %{_prefix}
+%_qt5_bindir %{_prefix}/%{_lib}/qt5/bin
+%_qt5_libdir %{_prefix}/%{_lib}
+%_qt5_docdir %{_prefix}/share/doc/qt5
+%_qt5_headerdir %{_prefix}/include/qt5
+%_qt5_datadir %{_prefix}/share/qt5
+%_qt5_plugindir %{_prefix}/%{_lib}/qt5/plugins
+%_qt5_importdir %{_prefix}/%{_lib}/qt5/imports
+%_qt5_translationdir %{_prefix}/share/qt5/translations
+%_qt5_sysconfdir %{_sysconfdir}/xdg
+%_qt5_demosdir %{_prefix}/%{_lib}/qt5/demos
+%_qt5_examplesdir %{_prefix}/%{_lib}/qt5/examples
+
+
diff --git a/packaging/qtbase-rpmlintrc b/packaging/qtbase-rpmlintrc
new file mode 100644
index 0000000000..ba01670b95
--- /dev/null
+++ b/packaging/qtbase-rpmlintrc
@@ -0,0 +1,16 @@
+from Config import *
+
+# rpmlint nags about *.app files under mkspecs/
+addFilter("qt5-qmake.* script-without-shebang")
+
+# Test suite, allow unorthodox behaviour
+addFilter("qt5-qttest.* shared-lib-calls-exit")
+
+# We manually install /etc/rpm/macros.qmake in spec here
+addFilter("qt5-qmake.* non-conffile-in-etc /etc/rpm/macros.qmake")
+
+# Input method plugin is supposed have all-lowercase summary
+addFilter("qt5-plugin-inputmethod-imsw-multi.* summary-not-capitalised.*")
+
+# Qmake package has generic mkspecs files, this is not an error
+addFilter("qt5-qmake.* devel-file-in-non-devel-package")
diff --git a/packaging/qtbase.spec b/packaging/qtbase.spec
new file mode 100644
index 0000000000..e58dc12c58
--- /dev/null
+++ b/packaging/qtbase.spec
@@ -0,0 +1,989 @@
+# 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
+
+# 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
+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)
+BuildRequires: pkgconfig(libxslt)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(sm)
+BuildRequires: pkgconfig(sqlite3)
+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)
+BuildRequires: pkgconfig(xi)
+BuildRequires: pkgconfig(xinerama)
+BuildRequires: pkgconfig(xmu)
+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
+
+%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 tools
+Summary: Development tools for qtbase
+Group: Qt/Qt
+Requires: qtchooser
+
+%description tools
+This package contains useful tools for Qt development
+
+%package qtcore
+Summary: The QtCore library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtcore
+This package contains the QtCore library
+
+%package qtcore-devel
+Summary: Development files for QtCore
+Group: Qt/Qt
+Requires: %{name}-qmake
+Requires: %{name}-tools
+Requires: %{name}-qtcore = %{version}-%{release}
+Requires: fontconfig-devel
+Requires: qtchooser
+
+%description qtcore-devel
+This package contains the files necessary to develop applications
+that use the QtCore
+
+
+%package qmake
+Summary: QMake
+Group: Qt/Qt
+Requires: qtchooser
+
+%description qmake
+This package contains qmake
+
+
+%package plugin-bearer-connman
+Summary: Connman bearer plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-bearer-connman
+This package contains the connman bearer plugin
+
+
+%package plugin-bearer-generic
+Summary: Connman generic plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-bearer-generic
+This package contains the connman generic bearer plugin
+
+
+%package plugin-bearer-nm
+Summary: Connman generic plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-bearer-nm
+This package contains the connman NetworkManager bearer plugin
+
+
+%package plugin-imageformat-gif
+Summary: Gif image format plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-imageformat-gif
+This package contains the gif imageformat plugin
+
+
+%package plugin-imageformat-ico
+Summary: Ico image format plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-imageformat-ico
+This package contains the ico imageformat plugin
+
+
+%package plugin-imageformat-jpeg
+Summary: JPEG image format plugin
+Group: Qt/Qt
+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
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platform-minimal
+This package contains the minimal platform plugin
+
+%package plugin-platform-offscreen
+Summary: Offscreen platform plugin
+Group: Qt/Qt
+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
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platform-eglfs
+This package contains the eglfs platform plugin
+
+%package plugin-platform-minimalegl
+Summary: Minimalegl platform plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platform-minimalegl
+This package contains the minimalegl platform plugin
+
+%package plugin-platform-xcb
+Summary: XCB platform plugin
+Group: Qt/Qt
+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
+
+%package plugin-printsupport-cups
+Summary: CUPS print support plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-printsupport-cups
+This package contains the CUPS print support plugin
+
+%package plugin-accessible-widgets
+Summary: Accessible widgets plugin
+Group: Qt/Qt
+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
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-sqldriver-sqlite
+This package contains the sqlite sql driver plugin
+
+
+%package plugin-platforminputcontext-ibus
+Summary: ibus platform import context plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-platforminputcontext-ibus
+This package contains the ibus platform input context plugin
+
+%package plugin-generic-evdev
+Summary: evdev generic plugin
+Group: Qt/Qt
+Requires: %{name}-qtcore = %{version}-%{release}
+
+%description plugin-generic-evdev
+This package contains evdev plugins
+
+
+
+
+%package qtdbus
+Summary: The QtDBus library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtdbus
+This package contains the QtDBus library
+
+
+%package qtdbus-devel
+Summary: Development files for QtDBus
+Group: Qt/Qt
+Requires: %{name}-qtdbus = %{version}-%{release}
+Requires: pkgconfig(dbus-1)
+
+%description qtdbus-devel
+This package contains the files necessary to develop
+applications that use QtDBus
+
+
+%package qtgui
+Summary: The QtGui Library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtgui
+This package contains the QtGui library
+
+
+%package qtgui-devel
+Summary: Development files for QtGui
+Group: Qt/Qt
+Requires: %{name}-qtgui = %{version}-%{release}
+Requires: %{name}-qtopengl-devel
+
+%description qtgui-devel
+This package contains the files necessary to develop
+applications that use QtGui
+
+
+%package qtnetwork
+Summary: The QtNetwork library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtnetwork
+This package contains the QtNetwork library
+
+
+%package qtnetwork-devel
+Summary: Development files for QtNetwork
+Group: Qt/Qt
+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
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtopengl
+This package contains the QtOpenGL library
+
+
+%package qtopengl-devel
+Summary: Development files for QtOpenGL
+Group: Qt/Qt
+Requires: %{name}-qtopengl = %{version}-%{release}
+Requires: libGLESv2-devel
+Requires: libEGL-devel
+
+%description qtopengl-devel
+This package contains the files necessary to develop
+applications that use QtOpenGL
+
+
+%package qtsql
+Summary: The QtSql library
+Group: Qt/Qt
+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
+Requires: %{name}-qtsql = %{version}-%{release}
+
+%description qtsql-devel
+This package contains the files necessary to develop
+applications that use QtSql
+
+
+%package qttest
+Summary: The QtTest library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qttest
+This package contains the QtTest library
+
+
+%package qttest-devel
+Summary: Development files for QtTest
+Group: Qt/Qt
+Requires: %{name}-qttest = %{version}-%{release}
+
+%description qttest-devel
+This package contains the files necessary to develop
+applications that use QtTest
+
+
+%package qtxml
+Summary: The QtXml library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtxml
+This package contains the QtXml library
+
+%package qtxml-devel
+Summary: Development files for QtXml
+Group: Qt/Qt
+Requires: %{name}-qtxml = %{version}-%{release}
+
+%description qtxml-devel
+This package contains the files necessary to develop
+applications that use QtXml
+
+
+%package qtwidgets
+Summary: The QtWidgets library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtwidgets
+This package contains the QtWidgets library
+
+%package qtwidgets-devel
+Summary: Development files for QtWidgets
+Group: Qt/Qt
+Requires: %{name}-qtwidgets = %{version}-%{release}
+
+%description qtwidgets-devel
+This package contains the files necessary to develop
+applications that use QtWidgets
+
+%package qtplatformsupport-devel
+Summary: Development files for QtPlatformSupport
+Group: Qt/Qt
+
+%description qtplatformsupport-devel
+This package contains the files necessary to develop
+applications that use QtPlatformSupport
+
+%package qtbootstrap-devel
+Summary: Development files for QtBootstrap
+Group: Qt/Qt
+
+%description qtbootstrap-devel
+This package contains the files necessary to develop
+applications that use QtBootstrap
+
+%package qtprintsupport
+Summary: The QtPrintSupport
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtprintsupport
+This package contains the QtPrintSupport library
+
+%package qtprintsupport-devel
+Summary: Development files for QtPrintSupport
+Group: Qt/Qt
+Requires: %{name}-qtprintsupport = %{version}-%{release}
+
+%description qtprintsupport-devel
+This package contains the files necessary to develop
+applications that use QtPrintSupport
+
+%package qtconcurrent
+Summary: QtConcurrent library
+Group: Qt/Qt
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description qtconcurrent
+This package contains the QtConcurrent library
+
+%package qtconcurrent-devel
+Summary: Development files for QtConcurrent
+Group: Qt/Qt
+Requires: %{name}-qtconcurrent = %{version}-%{release}
+
+%description qtconcurrent-devel
+This package contains the files necessary to develop
+applications that use QtConcurrent
+
+%package -n qt5-default
+Summary: Qt5 development defaults packafge
+Group: Development/Libraries
+Requires: qtchooser
+Provides: qt-default
+Conflicts: qt4-default
+
+%description -n qt5-default
+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 operating systems without rewriting the source code.
+
+This package contains the Qt5 development defaults package
+
+
+
+##### Build section
+
+%prep
+%setup -q -n qt5-%{version}/qtbase
+
+%build
+touch .git
+
+MAKEFLAGS=%{?_smp_mflags} \
+./configure --disable-static \
+ -confirm-license \
+%if ! 0%{?qt5_release_build}
+ -developer-build \
+%endif
+ -platform linux-g++ \
+ -prefix "%{_prefix}" \
+ -bindir "%{_libdir}/qt5/bin" \
+ -libdir "%{_libdir}" \
+ -docdir "%{_docdir}/qt5/" \
+ -headerdir "%{_includedir}/qt5" \
+ -datadir "%{_datadir}/qt5" \
+ -plugindir "%{_libdir}/qt5/plugins" \
+ -importdir "%{_libdir}/qt5/imports" \
+ -translationdir "%{_datadir}/qt5/translations" \
+ -sysconfdir "%{_sysconfdir}/xdg" \
+ -examplesdir "%{_libdir}/qt5/examples" \
+ -archdatadir "%{_datadir}/qt5" \
+ -testsdir "%{_libdir}/qt5/tests" \
+ -qmldir "%{_libdir}/qt5/qml" \
+ -libexecdir "%{_libdir}/qt5/libexec" \
+ -opensource \
+ -no-sql-ibase \
+ -no-sql-mysql \
+ -no-sql-odbc \
+ -no-sql-psql \
+ -plugin-sql-sqlite \
+ -no-sql-sqlite2 \
+ -no-sql-tds \
+ -system-sqlite \
+ -audio-backend \
+ -system-zlib \
+ -system-libpng \
+ -system-libjpeg \
+ -no-rpath \
+ -optimized-qmake \
+ -dbus-linked \
+ -no-strip \
+ -no-separate-debug-info \
+ -verbose \
+ -no-gtkstyle \
+ -opengl es2 \
+ -no-openvg \
+ -lfontconfig \
+ -I/usr/include/freetype2 \
+ -nomake tests \
+ -nomake examples \
+ -nomake demos \
+ -no-xinput2 \
+ -xcb
+#
+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/" {} \;
+
+find %{buildroot}%{_docdir}/qt5/ -type f -exec chmod ugo-x {} \;
+
+# Make sure these are around
+mkdir -p %{buildroot}%{_includedir}/qt5/
+mkdir -p %{buildroot}%{_datadir}/qt5/
+mkdir -p %{buildroot}%{_libdir}/qt5/plugins/
+mkdir -p %{buildroot}%{_libdir}/qt5/imports/
+mkdir -p %{buildroot}%{_libdir}/qt5/translations/
+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
+
+# Add a configuration link for qtchooser - the 5.conf is installed by qtchooser
+mkdir -p %{buildroot}/etc/xdg/qtchooser
+ln -s %{_sysconfdir}/xdg/qtchooser/5.conf %{buildroot}%{_sysconfdir}/xdg/qtchooser/default.conf
+
+#
+%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
+
+#### File section
+
+# There is no naked qt5 package
+#%files
+
+
+
+%files tools
+%defattr(-,root,root,-)
+%{_libdir}/qt5/bin/moc
+%{_libdir}/qt5/bin/rcc
+%{_libdir}/qt5/bin/syncqt.pl
+%{_libdir}/qt5/bin/uic
+%{_libdir}/qt5/bin/qdoc
+%{_docdir}/qt5/*
+
+%files qtcore
+%defattr(-,root,root,-)
+%dir %{_includedir}/qt5/
+%dir %{_datadir}/qt5/
+%dir %{_libdir}/qt5/plugins/
+%dir %{_libdir}/qt5/imports/
+%dir %{_libdir}/qt5/translations/
+%dir %{_libdir}/qt5/examples/
+%{_libdir}/libQt5Core.so.*
+
+%files qtcore-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtCore/
+%{_libdir}/libQt5Core.prl
+%{_libdir}/libQt5Core.so
+%{_libdir}/pkgconfig/Qt5Core.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_core.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/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/qconfig.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/qdevice.pri
+%config(noreplace) %{_sysconfdir}/rpm/macros.qt5-default
+
+%files qtdbus
+%defattr(-,root,root,-)
+%{_libdir}/libQt5DBus.so.*
+
+
+%files qtdbus-devel
+%defattr(-,root,root,-)
+%{_libdir}/qt5/bin/qdbuscpp2xml
+%{_libdir}/qt5/bin/qdbusxml2cpp
+%{_includedir}/qt5/QtDBus/
+%{_libdir}/libQt5DBus.so
+%{_libdir}/libQt5DBus.prl
+%{_libdir}/pkgconfig/Qt5DBus.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_dbus.pri
+
+
+%files qtgui
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Gui.so.*
+
+
+%files qtgui-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtGui/
+%{_libdir}/libQt5Gui.prl
+%{_libdir}/libQt5Gui.so
+%{_libdir}/pkgconfig/Qt5Gui.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_gui.pri
+
+
+%files qtnetwork
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Network.so.*
+
+
+%files qtnetwork-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtNetwork/
+%{_libdir}/libQt5Network.prl
+%{_libdir}/libQt5Network.so
+%{_libdir}/pkgconfig/Qt5Network.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_network.pri
+
+
+%files qtopengl
+%defattr(-,root,root,-)
+%{_libdir}/libQt5OpenGL.so.*
+
+
+%files qtopengl-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtOpenGL/
+%{_includedir}/qt5/QtOpenGLExtensions/
+%{_libdir}/libQt5OpenGL.prl
+%{_libdir}/libQt5OpenGLExtensions.prl
+%{_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/android-g++/qmake.conf
+%{_datadir}/qt5/mkspecs/android-g++/qplatformdefs.h
+%{_datadir}/qt5/mkspecs/modules/qt_lib_openglextensions.pri
+
+
+%files qtsql
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Sql.so.*
+
+
+%files qtsql-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtSql/
+%{_libdir}/libQt5Sql.prl
+%{_libdir}/libQt5Sql.so
+%{_libdir}/pkgconfig/Qt5Sql.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_sql.pri
+
+
+%files qttest
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Test.so.*
+
+%files qttest-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtTest/
+%{_libdir}/libQt5Test.prl
+%{_libdir}/libQt5Test.so
+%{_libdir}/pkgconfig/Qt5Test.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_testlib.pri
+
+%files qtxml
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Xml.so.*
+
+%files qtxml-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtXml/
+%{_libdir}/libQt5Xml.prl
+%{_libdir}/libQt5Xml.so
+%{_libdir}/pkgconfig/Qt5Xml.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_xml.pri
+
+%files qtwidgets
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Widgets.so.*
+
+%files qtwidgets-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtWidgets/
+%{_libdir}/libQt5Widgets.prl
+%{_libdir}/libQt5Widgets.so
+%{_libdir}/pkgconfig/Qt5Widgets.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_widgets.pri
+
+%files qtplatformsupport-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtPlatformSupport/
+%{_libdir}/libQt5PlatformSupport.prl
+%{_libdir}/libQt5PlatformSupport.a
+%{_libdir}/pkgconfig/Qt5PlatformSupport.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_platformsupport.pri
+
+%files qtbootstrap-devel
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Bootstrap.prl
+%{_libdir}/libQt5Bootstrap.a
+%{_libdir}/pkgconfig/Qt5Bootstrap.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_bootstrap.pri
+
+%files qtprintsupport
+%defattr(-,root,root,-)
+%{_libdir}/libQt5PrintSupport.so.*
+
+%files qtprintsupport-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtPrintSupport/
+%{_libdir}/libQt5PrintSupport.prl
+%{_libdir}/libQt5PrintSupport.so
+%{_libdir}/pkgconfig/Qt5PrintSupport.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_printsupport.pri
+
+%files qtconcurrent
+%defattr(-,root,root,-)
+%{_libdir}/libQt5Concurrent.so.*
+
+%files qtconcurrent-devel
+%defattr(-,root,root,-)
+%{_includedir}/qt5/QtConcurrent/
+%{_libdir}/libQt5Concurrent.prl
+%{_libdir}/libQt5Concurrent.so
+%{_libdir}/pkgconfig/Qt5Concurrent.pc
+%{_datadir}/qt5/mkspecs/modules/qt_lib_concurrent.pri
+
+
+
+
+# Plugin packages
+
+%files plugin-bearer-connman
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/bearer/libqconnmanbearer.so
+
+%files plugin-bearer-generic
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/bearer/libqgenericbearer.so
+
+%files plugin-bearer-nm
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/bearer/libqnmbearer.so
+
+%files plugin-imageformat-gif
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/imageformats/libqgif.so
+
+%files plugin-imageformat-ico
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/imageformats/libqico.so
+
+%files plugin-imageformat-jpeg
+%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
+
+%files plugin-platform-offscreen
+%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
+
+%files plugin-platform-minimalegl
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/platforms/libqminimalegl.so
+
+%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
+
+%files plugin-printsupport-cups
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/printsupport/libcupsprintersupport.so
+
+%files plugin-accessible-widgets
+%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
+
+%files plugin-platforminputcontext-ibus
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so
+
+%files plugin-generic-evdev
+%defattr(-,root,root,-)
+%{_libdir}/qt5/plugins/generic/libqevdev*plugin.so
+
+%files -n qt5-default
+%defattr(-,root,root,-)
+%{_sysconfdir}/xdg/qtchooser/default.conf
+
+#### No changelog section, separate $pkg.changes contains the history