Blame SPECS/qt5-qtwayland.spec

77b165
%global qt_module qtwayland
77b165
8d8a62
%global build_tests 1
8d8a62
77b165
Summary: Qt5 - Wayland platform support and QtCompositor module
77b165
Name:    qt5-%{qt_module}
2702c2
Version: 5.15.2
f8c1a9
Release: 3%{?dist}
77b165
77b165
License: LGPLv3
77b165
Url:     http://www.qt.io
77b165
%global majmin %(echo %{version} | cut -d. -f1-2)
77b165
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
77b165
f8c1a9
## Upstream patches
f8c1a9
## repo: https://invent.kde.org/qt/qt/qtwayland
f8c1a9
## branch: kde/5.15
f8c1a9
## git format-patch v5.15.2
f8c1a9
## These are already included in stock 5.15.2 tarball, referenced here for completeness
f8c1a9
#Patch1: 0001-Bump-version.patch
f8c1a9
#Patch2: 0002-Replace-remaining-LGPLv3-headers-in-QtWaylandComposi.patch
f8c1a9
#Patch3: 0003-Doc-List-correct-license-information-for-the-module.patch
f8c1a9
#Patch4: 0004-Add-changes-file-for-Qt-5.15.2.patch
f8c1a9
Patch5: 0005-Scanner-Avoid-accessing-dangling-pointers-in-destroy.patch
f8c1a9
Patch6: 0006-Make-setting-QT_SCALE_FACTOR-work-on-Wayland.patch
f8c1a9
Patch7: 0007-Do-not-try-to-eglMakeCurrent-for-unintended-case.patch
f8c1a9
Patch8: 0008-Make-setting-QT_SCALE_FACTOR-work-on-Wayland.patch
f8c1a9
Patch9: 0009-Ensure-that-grabbing-is-performed-in-correct-context.patch
f8c1a9
Patch10: 0010-Fix-leaked-subsurface-wayland-items.patch
f8c1a9
Patch11: 0011-Use-qWarning-and-_exit-instead-of-qFatal-for-wayland.patch
f8c1a9
Patch12: 0012-Fix-memory-leak-in-QWaylandGLContext.patch
f8c1a9
Patch13: 0013-Client-Send-set_window_geometry-only-once-configured.patch
f8c1a9
Patch14: 0014-Translate-opaque-area-with-frame-margins.patch
f8c1a9
Patch15: 0015-Client-Send-exposeEvent-to-parent-on-subsurface-posi.patch
f8c1a9
Patch16: 0016-Get-correct-decoration-margins-region.patch
f8c1a9
Patch17: 0017-xdgshell-Tell-the-compositor-the-screen-we-re-expect.patch
f8c1a9
Patch18: 0018-Fix-compilation.patch
f8c1a9
Patch19: 0019-client-Allow-QWaylandInputContext-to-accept-composed.patch
f8c1a9
Patch20: 0020-Client-Announce-an-output-after-receiving-more-compl.patch
f8c1a9
Patch21: 0021-Fix-issue-with-repeated-window-size-changes.patch
f8c1a9
Patch22: 0022-Include-locale.h-for-setlocale-LC_CTYPE.patch
f8c1a9
Patch23: 0023-Client-Connect-drags-being-accepted-to-updating-the-.patch
f8c1a9
Patch24: 0024-Client-Disconnect-registry-listener-on-destruction.patch
f8c1a9
Patch25: 0025-Client-Set-XdgShell-size-hints-before-the-first-comm.patch
f8c1a9
Patch26: 0026-Fix-build.patch
f8c1a9
Patch27: 0027-Fix-remove-listener.patch
f8c1a9
Patch28: 0028-Hook-up-queryKeyboardModifers.patch
f8c1a9
Patch29: 0029-Do-not-update-the-mask-if-we-do-not-have-a-surface.patch
f8c1a9
Patch30: 0030-Correctly-detect-if-image-format-is-supported-by-QIm.patch
f8c1a9
Patch31: 0031-Wayland-client-Fix-crash-when-windows-are-shown-hidd.patch
f8c1a9
Patch32: 0032-Client-Don-t-always-recreate-frame-callbacks.patch
f8c1a9
Patch33: 0033-Client-Always-destroy-frame-callback-in-the-actual-c.patch
f8c1a9
Patch34: 0034-Fix-the-logic-for-decoding-modifiers-map-in-Wayland-.patch
f8c1a9
Patch35: 0035-Wayland-client-use-wl_keyboard-to-determine-active-s.patch
f8c1a9
Patch36: 0036-Client-do-not-empty-clipboard-when-a-new-popup-windo.patch
f8c1a9
Patch37: 0037-Fix-backport-context-destruction-was-omitted.patch
f8c1a9
Patch38: 0038-Set-preedit-cursor-when-cursor-equals-to-0.patch
f8c1a9
Patch39: 0039-Client-Implement-DataDeviceV3.patch
f8c1a9
Patch40: 0040-Client-Delay-deletion-of-QDrag-object-until-after-we.patch
f8c1a9
Patch41: 0041-Client-Avoid-processing-of-events-when-showing-windo.patch
77b165
77b165
# filter qml provides
77b165
%global __provides_exclude_from ^%{_qt5_archdatadir}/qml/.*\\.so$
77b165
77b165
BuildRequires:  qt5-qtbase-devel >= %{version}
77b165
BuildRequires:  qt5-qtbase-static
8d8a62
BuildRequires:  qt5-qtbase-private-devel
77b165
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
77b165
BuildRequires:  qt5-qtdeclarative-devel
77b165
77b165
BuildRequires:  pkgconfig(xkbcommon)
77b165
BuildRequires:  pkgconfig(wayland-scanner)
77b165
BuildRequires:  pkgconfig(wayland-server)
77b165
BuildRequires:  pkgconfig(wayland-client)
77b165
BuildRequires:  pkgconfig(wayland-cursor)
77b165
BuildRequires:  pkgconfig(wayland-egl)
77b165
BuildRequires:  pkgconfig(egl)
77b165
BuildRequires:  pkgconfig(gl)
77b165
BuildRequires:  pkgconfig(xcomposite)
77b165
BuildRequires:  pkgconfig(xrender)
77b165
BuildRequires:  pkgconfig(libudev)
77b165
BuildRequires:  pkgconfig(libinput)
2702c2
BuildRequires:  libXext-devel
2702c2
BuildRequires:  tree
77b165
77b165
%description
77b165
%{summary}.
77b165
77b165
%package devel
77b165
Summary: Development files for %{name}
77b165
Requires: %{name}%{?_isa} = %{version}-%{release}
77b165
Requires: qt5-qtbase-devel%{?_isa}
77b165
%description devel
77b165
%{summary}.
77b165
77b165
%package examples
77b165
Summary: Programming examples for %{name}
77b165
Requires: %{name}%{?_isa} = %{version}-%{release}
77b165
%description examples
77b165
%{summary}.
77b165
8d8a62
%if 0%{?build_tests}
8d8a62
%package tests
8d8a62
Summary: Unit tests for %{name}
8d8a62
Requires: %{name}%{?_isa} = %{version}-%{release}
8d8a62
8d8a62
%description tests
8d8a62
%{summary}.
8d8a62
%endif
77b165
77b165
%prep
77b165
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
77b165
77b165
%build
77b165
%{qmake_qt5}
77b165
77b165
%make_build
77b165
8d8a62
%if 0%{?build_tests}
8d8a62
make sub-tests %{?_smp_mflags} -k ||:
8d8a62
%endif
77b165
77b165
%install
77b165
make install INSTALL_ROOT=%{buildroot}
77b165
8d8a62
%if 0%{?build_tests}
8d8a62
# Install tests for gating
8d8a62
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
8d8a62
find ./tests -not -path '*/\.*' -type d | while read LINE
8d8a62
do
8d8a62
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
8d8a62
done
8d8a62
find ./tests -not -path '*/\.*' -not -name '*.h' -not -name '*.cpp' -not -name '*.pro' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
8d8a62
do
8d8a62
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
8d8a62
done
8d8a62
%endif
8d8a62
77b165
## .prl/.la file love
77b165
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
77b165
pushd %{buildroot}%{_qt5_libdir}
77b165
for prl_file in libQt5*.prl ; do
77b165
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
77b165
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
77b165
    rm -fv "$(basename ${prl_file} .prl).la"
77b165
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
77b165
  fi
77b165
done
77b165
popd
77b165
77b165
77b165
%ldconfig_scriptlets
77b165
77b165
%files
77b165
%doc README
77b165
%license LICENSE.*
77b165
%{_qt5_libdir}/libQt5WaylandCompositor.so.5*
77b165
%{_qt5_libdir}/libQt5WaylandClient.so.5*
77b165
%{_qt5_plugindir}/wayland-decoration-client/
77b165
%{_qt5_plugindir}/wayland-graphics-integration-server
77b165
%{_qt5_plugindir}/wayland-graphics-integration-client
77b165
%{_qt5_plugindir}/wayland-shell-integration
77b165
%{_qt5_plugindir}/platforms/libqwayland-egl.so
77b165
%{_qt5_plugindir}/platforms/libqwayland-generic.so
77b165
%{_qt5_plugindir}/platforms/libqwayland-xcomposite-egl.so
77b165
%{_qt5_plugindir}/platforms/libqwayland-xcomposite-glx.so
77b165
%{_qt5_qmldir}/QtWayland/
77b165
77b165
%files devel
77b165
%{_qt5_bindir}/qtwaylandscanner
77b165
%{_qt5_headerdir}/QtWaylandCompositor/
77b165
%{_qt5_headerdir}/QtWaylandClient/
77b165
%{_qt5_libdir}/libQt5WaylandCompositor.so
77b165
%{_qt5_libdir}/libQt5WaylandClient.so
77b165
%{_qt5_libdir}/libQt5WaylandCompositor.prl
77b165
%{_qt5_libdir}/libQt5WaylandClient.prl
77b165
%{_qt5_libdir}/cmake/Qt5WaylandCompositor/Qt5WaylandCompositorConfig*.cmake
77b165
%{_qt5_libdir}/pkgconfig/*.pc
77b165
%{_qt5_archdatadir}/mkspecs/modules/*.pri
77b165
%{_qt5_libdir}/cmake/Qt5WaylandCompositor/
77b165
%{_qt5_libdir}/cmake/Qt5Gui/Qt5Gui_*.cmake
77b165
%{_qt5_libdir}/cmake/Qt5WaylandClient/
77b165
77b165
%files examples
77b165
%{_qt5_examplesdir}/wayland/
77b165
8d8a62
%if 0%{?build_tests}
8d8a62
%files tests
8d8a62
%{_qt5_libdir}/qt5/tests
8d8a62
%endif
77b165
77b165
%changelog
f8c1a9
* Tue Jan 18 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.2-3
f8c1a9
- Pull in latest kde/5.15 branch fixes
f8c1a9
  Resolves: bz#2021761
f8c1a9
a6a20e
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
a6a20e
- Rebuild (binutils)
a6a20e
  Resolves: bz#1930058
a6a20e
2702c2
* Tue Apr 06 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
2702c2
- 5.15.2
2702c2
  Resolves: bz#1930058
2702c2
8d8a62
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
8d8a62
- 5.12.5
8d8a62
  Resolves: bz#1733154
8d8a62
77b165
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
77b165
- Rebuild to fix CET notes
77b165
  Resolves: bz#1657224
77b165
77b165
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
77b165
- 5.11.1
77b165
77b165
* Tue Mar 13 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-2
77b165
- Do not crash when opening dialogs
77b165
77b165
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
77b165
- 5.10.1
77b165
77b165
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-3
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
77b165
77b165
* Wed Jan 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.0-2
77b165
- Do not recreate hidden egl surfaces
77b165
  QTBUG-65553
77b165
77b165
* Tue Dec 19 2017 Jan Grulich <jgrulich@redhat.com> - 5.10.0-1
77b165
- 5.10.0
77b165
77b165
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
77b165
- 5.9.3
77b165
77b165
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
77b165
- 5.9.2
77b165
77b165
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-3
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
77b165
77b165
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
77b165
77b165
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
77b165
- 5.9.1
77b165
77b165
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
77b165
- .spec cosmetics, Source URL, refer to qt5- builddeps directly
77b165
77b165
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
77b165
- Upstream official release
77b165
77b165
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
77b165
- Upstream Release Candidate retagged
77b165
77b165
* Tue May 09 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
77b165
- Upstream beta 3
77b165
77b165
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
77b165
- New upstream version
77b165
77b165
* Mon Jan 02 2017 Rex Dieter <rdieter@math.unl.edu> - 5.7.1-3
77b165
- filter qml provides, BR: qtbase-private-devel qtdeclarative explicitly
77b165
77b165
* Sat Dec 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
77b165
- drop BR: cmake (handled by qt5-rpm-macros now)
77b165
- 5.7.1 dec5 snapshot
77b165
77b165
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
77b165
- New upstream version
77b165
77b165
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
77b165
- Compiled with gcc
77b165
77b165
* Wed Jun 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
77b165
- Qt 5.7.0 release
77b165
77b165
* Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
77b165
- Update to 5.6.1
77b165
77b165
* Mon Mar 21 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-11
77b165
- rebuild
77b165
77b165
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-10
77b165
- rebuild
77b165
77b165
* Tue Mar 15 2016 Peter Robinson <pbrobinson@fedoraproject.org> 5.6.0-9
77b165
- Bump release to 9 so it's higher than the final RC
77b165
77b165
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
77b165
- 5.6.0 final release
77b165
77b165
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-8.rc
77b165
- Update to final RC
77b165
77b165
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-7
77b165
- Update RC release
77b165
77b165
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-6.rc
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
77b165
77b165
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-5.rc
77b165
- use %%qmake_qt5 consistently
77b165
77b165
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-4.rc
77b165
- BR: cmake, update source URL, use %%license
77b165
77b165
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-3
77b165
- Update to final rc release
77b165
77b165
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-2
77b165
- Official rc release
77b165
77b165
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
77b165
- Start to implement 5.6.0 rc
77b165
77b165
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
77b165
- Update to final release 5.5.1
77b165
77b165
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
77b165
- Update to Qt 5.5.1 RC1
77b165
77b165
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
77b165
- tighten qtbase dep (#1233829)
77b165
77b165
* Sun Jul 05 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> - 5.5.0-2
77b165
- Add xkbcommon to the devel package.
77b165
77b165
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
77b165
- New final upstream release Qt 5.5.0
77b165
77b165
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
77b165
- Update for official RC1 released packages
77b165
77b165
* Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
77b165
- Qt5 5.5.0 RC1
77b165
77b165
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
77b165
- 5.4.2
77b165
77b165
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-2
77b165
- Rebuilt for GCC 5 C++11 ABI change
77b165
77b165
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-1
77b165
- 5.4.1
77b165
77b165
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
77b165
- 5.4.0 (final)
77b165
77b165
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
77b165
- 5.4.0-rc
77b165
77b165
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.rc
77b165
- use %%qmake_qt5 macro
77b165
77b165
* Mon Oct 20 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.rc
77b165
- 5.4.0-rc
77b165
77b165
* Wed Sep 24 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.4.0-0.alpha1
77b165
- Switch from a Git snapshot to a pre-release tarball
77b165
77b165
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-0.3.20140723git02c499c
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
77b165
77b165
* Thu Jul 24 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.3.0-0.2.20140723git02c499c
77b165
- Update
77b165
77b165
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-0.2.20140529git98dca3b
77b165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
77b165
77b165
* Tue May 27 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.3.0-0.1.20140529git98dca3b
77b165
- Update and rebuild for Qt 5.3
77b165
77b165
* Fri Feb 14 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.6.20140202git6d038fb
77b165
- A more recent snapshot
77b165
- Disable xcomposite compositor until it builds
77b165
77b165
* Sat Jan 04 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.6.20131203git6b20dfe
77b165
- Enable QtQuick compositor
77b165
77b165
* Sat Jan 04 2014 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131203git6b20dfe
77b165
- A newer snapshot
77b165
77b165
* Mon Nov 25 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131125git4f5985c
77b165
- Rebase to a later snapshot, drop our patches
77b165
- Add license texts
77b165
77b165
* Sat Nov 23 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.5.20131120git8cd1a77
77b165
- Rebuild with EGL backend
77b165
77b165
* Fri Nov 22 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.4.20131120git8cd1a77
77b165
- Rebase to a later snapshot, drop 5.2 ABI patch
77b165
- Enable nogl backend
77b165
77b165
* Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.0-0.4.20130826git3b0b90b
77b165
- rebuild (arm/qreal)
77b165
77b165
* Thu Oct 24 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.3.20130826git3b0b90b
77b165
- Bulk sad and useless attempt at consistent SPEC file formatting
77b165
77b165
* Sun Oct 06 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.2.20130826git3b0b90b
77b165
- Bump platform plugin ABI to 5.2 for Qt 5.2 aplha
77b165
77b165
* Wed Sep 11 2013 Lubomir Rintel <lkundrak@v3.sk> - 5.1.0-0.1.20130826git3b0b90b
77b165
- Initial packaging
77b165
- Adjustments from review (Rex Dieter, #1008529)