2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
%global qt_module qtwayland
|
|
|
|
|
2014-10-20 15:55:20 +00:00
|
|
|
# build support for non-egl platforms
|
|
|
|
%define nogl 1
|
|
|
|
|
2013-09-23 17:50:41 +00:00
|
|
|
Summary: Qt5 - Wayland platform support and QtCompositor module
|
|
|
|
Name: qt5-%{qt_module}
|
2014-09-24 08:44:16 +00:00
|
|
|
Version: 5.4.0
|
2014-12-10 13:29:29 +00:00
|
|
|
Release: 1%{?dist}
|
2013-09-23 17:50:41 +00:00
|
|
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
|
|
|
Url: http://qt-project.org/wiki/QtWayland
|
2014-10-20 15:55:20 +00:00
|
|
|
%if 0%{?pre:1}
|
|
|
|
Source0: http://download.qt-project.org/development_releases/qt/5.4/%{version}-%{pre}/submodules/%{qt_module}-opensource-src-%{version}-%{pre}.tar.xz
|
|
|
|
%else
|
|
|
|
Source0: http://download.qt-project.org/official_releases/qt/5.4/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
|
|
|
BuildRequires: qt5-qtbase-static
|
2014-01-04 14:02:10 +00:00
|
|
|
BuildRequires: qt5-qtdeclarative-devel
|
2013-09-23 17:50:41 +00:00
|
|
|
BuildRequires: pkgconfig(xkbcommon)
|
|
|
|
BuildRequires: pkgconfig(wayland-scanner)
|
|
|
|
BuildRequires: pkgconfig(wayland-server)
|
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
|
|
|
BuildRequires: pkgconfig(wayland-cursor)
|
|
|
|
BuildRequires: pkgconfig(wayland-egl)
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glesv2)
|
|
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
|
|
|
|
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
|
|
|
|
|
|
|
|
%description
|
2014-10-20 15:55:20 +00:00
|
|
|
%{summary}.
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
2014-02-14 20:05:48 +00:00
|
|
|
%package examples
|
|
|
|
Summary: Examples for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description examples
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
2013-09-23 17:50:41 +00:00
|
|
|
%prep
|
2014-09-24 08:44:16 +00:00
|
|
|
%setup -q -n %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
|
2013-09-23 17:50:41 +00:00
|
|
|
|
2014-10-20 15:55:20 +00:00
|
|
|
# Presence of .git/ qmake into invoking syncqt for us with
|
|
|
|
# correct arguments at make time.
|
|
|
|
# else, out-of-src-tree builds fail with stuff like:
|
|
|
|
# qwaylanddisplay_p.h:52:54: fatal error: QtWaylandClient/private/qwayland-wayland.h: No such file or directory
|
|
|
|
# #include <QtWaylandClient/private/qwayland-wayland.h>
|
|
|
|
mkdir .git
|
|
|
|
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-22 14:05:52 +00:00
|
|
|
|
2014-10-20 15:55:20 +00:00
|
|
|
%if 0%{?nogl}
|
|
|
|
# build support for non-egl platforms
|
|
|
|
mkdir nogl
|
|
|
|
pushd nogl
|
2014-11-04 00:59:21 +00:00
|
|
|
%{qmake_qt5} QT_WAYLAND_GL_CONFIG=nogl ..
|
2014-10-20 15:55:20 +00:00
|
|
|
popd
|
|
|
|
make %{?_smp_mflags} -C nogl
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_qt5_qmake} CONFIG+=wayland-compositor
|
|
|
|
make %{?_smp_mflags}
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2014-10-20 15:55:20 +00:00
|
|
|
%if 0%{?nogl}
|
|
|
|
make install INSTALL_ROOT=%{buildroot} -C nogl/
|
|
|
|
%endif
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
## .prl/.la file love
|
|
|
|
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
|
|
|
|
pushd %{buildroot}%{_qt5_libdir}
|
|
|
|
for prl_file in libQt5*.prl ; do
|
|
|
|
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
|
|
|
|
if [ -f "$(basename ${prl_file} .prl).so" ]; then
|
|
|
|
rm -fv "$(basename ${prl_file} .prl).la"
|
|
|
|
sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# install private headers... needed by hawaii shell
|
|
|
|
install -pm644 \
|
|
|
|
include/QtCompositor/%{version}/QtCompositor/private/{wayland-wayland-server-protocol.h,qwayland-server-wayland.h} \
|
|
|
|
%{buildroot}%{_qt5_headerdir}/QtCompositor/%{version}/QtCompositor/private/
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2014-10-20 15:55:20 +00:00
|
|
|
%doc README
|
|
|
|
%doc LICENSE.LGPL* LICENSE.GPL* LGPL_EXCEPTION.txt
|
|
|
|
%{_qt5_libdir}/libQt5Compositor.so.5*
|
|
|
|
%{_qt5_libdir}/libQt5WaylandClient.so.5*
|
|
|
|
%dir %{_qt5_plugindir}/wayland-decoration-client/
|
|
|
|
%{_qt5_plugindir}/wayland-decoration-client/libbradient.so
|
2014-05-27 11:20:42 +00:00
|
|
|
%{_qt5_plugindir}/wayland-graphics-integration-server
|
|
|
|
%{_qt5_plugindir}/wayland-graphics-integration-client
|
2014-10-20 15:55:20 +00:00
|
|
|
%{_qt5_plugindir}/platforms/libqwayland-egl.so
|
|
|
|
%{_qt5_plugindir}/platforms/libqwayland-generic.so
|
|
|
|
%{_qt5_plugindir}/platforms/libqwayland-xcomposite-egl.so
|
|
|
|
%{_qt5_plugindir}/platforms/libqwayland-xcomposite-glx.so
|
|
|
|
%dir %{_qt5_libdir}/cmake/Qt5Compositor/
|
|
|
|
%{_qt5_libdir}/cmake/Qt5Compositor/Qt5Compositor_*.cmake
|
|
|
|
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*.cmake
|
|
|
|
%dir %{_qt5_libdir}/cmake/Qt5WaylandClient/
|
|
|
|
%{_qt5_libdir}/cmake/Qt5WaylandClient/Qt5WaylandClient_*.cmake
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_qt5_bindir}/qtwaylandscanner
|
2014-10-20 15:55:20 +00:00
|
|
|
%{_qt5_headerdir}/QtCompositor/
|
|
|
|
%{_qt5_headerdir}/QtWaylandClient/
|
|
|
|
%{_qt5_libdir}/libQt5Compositor.so
|
|
|
|
%{_qt5_libdir}/libQt5WaylandClient.so
|
|
|
|
%{_qt5_libdir}/libQt5Compositor.prl
|
|
|
|
%{_qt5_libdir}/libQt5WaylandClient.prl
|
|
|
|
%{_qt5_libdir}/cmake/Qt5Compositor/Qt5CompositorConfig*.cmake
|
|
|
|
%{_qt5_libdir}/pkgconfig/Qt5Compositor.pc
|
|
|
|
%{_qt5_libdir}/pkgconfig/Qt5WaylandClient.pc
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_compositor*.pri
|
|
|
|
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_waylandclient*.pri
|
2014-02-14 20:05:48 +00:00
|
|
|
|
|
|
|
%files examples
|
2014-10-20 15:55:20 +00:00
|
|
|
%{_qt5_examplesdir}/wayland/
|
2013-09-23 17:50:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2014-12-10 13:29:29 +00:00
|
|
|
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
|
|
|
|
- 5.4.0 (final)
|
|
|
|
|
2014-11-28 16:35:32 +00:00
|
|
|
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
|
|
|
|
- 5.4.0-rc
|
|
|
|
|
2014-11-04 00:59:21 +00:00
|
|
|
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
|
|
|
|
- use %%qmake_qt5 macro
|
|
|
|
|
2014-10-20 15:55:20 +00:00
|
|
|
* Mon Oct 20 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
|
|
|
|
- 5.4.0-beta
|
|
|
|
|
2014-09-24 08:44:16 +00:00
|
|
|
* Wed Sep 24 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.4.0-0.alpha1
|
|
|
|
- Switch from a Git snapshot to a pre-release tarball
|
|
|
|
|
2014-08-17 22:54:03 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-0.3.20140723git02c499c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-24 15:50:25 +00:00
|
|
|
* Thu Jul 24 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.3.0-0.2.20140723git02c499c
|
|
|
|
- Update
|
|
|
|
|
2014-06-08 01:24:58 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-0.2.20140529git98dca3b
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-27 11:20:42 +00:00
|
|
|
* Tue May 27 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.3.0-0.1.20140529git98dca3b
|
|
|
|
- Update and rebuild for Qt 5.3
|
|
|
|
|
2014-02-14 20:05:48 +00:00
|
|
|
* Fri Feb 14 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.6.20140202git6d038fb
|
|
|
|
- A more recent snapshot
|
|
|
|
- Disable xcomposite compositor until it builds
|
|
|
|
|
2014-01-04 14:02:10 +00:00
|
|
|
* Sat Jan 04 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.6.20131203git6b20dfe
|
|
|
|
- Enable QtQuick compositor
|
|
|
|
|
2014-01-04 10:02:45 +00:00
|
|
|
* Sat Jan 04 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131203git6b20dfe
|
|
|
|
- A newer snapshot
|
|
|
|
|
|
|
|
* Mon Nov 25 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131125git4f5985c
|
|
|
|
- Rebase to a later snapshot, drop our patches
|
|
|
|
- Add license texts
|
|
|
|
|
2013-11-23 18:17:57 +00:00
|
|
|
* Sat Nov 23 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131120git8cd1a77
|
|
|
|
- Rebuild with EGL backend
|
|
|
|
|
|
|
|
* Fri Nov 22 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.4.20131120git8cd1a77
|
2013-11-22 14:07:10 +00:00
|
|
|
- Rebase to a later snapshot, drop 5.2 ABI patch
|
|
|
|
- Enable nogl backend
|
|
|
|
|
2013-11-10 19:48:14 +00:00
|
|
|
* Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.0-0.4.20130826git3b0b90b
|
|
|
|
- rebuild (arm/qreal)
|
|
|
|
|
2013-10-24 09:39:54 +00:00
|
|
|
* Thu Oct 24 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.3.20130826git3b0b90b
|
|
|
|
- Bulk sad and useless attempt at consistent SPEC file formatting
|
|
|
|
|
2013-10-18 15:34:03 +00:00
|
|
|
* Sun Oct 06 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.2.20130826git3b0b90b
|
|
|
|
- Bump platform plugin ABI to 5.2 for Qt 5.2 aplha
|
|
|
|
|
2013-09-23 17:50:48 +00:00
|
|
|
* Wed Sep 11 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.1.20130826git3b0b90b
|
2013-09-23 17:50:41 +00:00
|
|
|
- Initial packaging
|
2013-09-23 17:50:48 +00:00
|
|
|
- Adjustments from review (Rex Dieter, #1008529)
|