7bd3f10
Name:           qgnomeplatform
5ceb36c
Version:        0.8.4
2c6b765
Release:        5%{?dist}
2c6b765
Summary:        Qt Platform Theme aimed to accommodate Gnome settings
7bd3f10
7bd3f10
License:        LGPLv2+
7bd3f10
URL:            https://github.com/MartinBriza/QGnomePlatform
Martin Briza 020d747
Source0:        https://github.com/MartinBriza/QGnomePlatform/archive/%{version}/QGnomePlatform-%{version}.tar.gz
7bd3f10
7bd3f10
# Upstream patches
d645f74
Patch0:         qgnomeplatform-use-more-updated-window-states-value.patch
7bd3f10
4ed57c1
BuildRequires:  make
7bd3f10
BuildRequires:  pkgconfig(gio-2.0)
7bd3f10
BuildRequires:  pkgconfig(udev)
7bd3f10
BuildRequires:  pkgconfig(xkbcommon)
13f970e
BuildRequires:  gtk3-devel
6fe61e9
BuildRequires:  gsettings-desktop-schemas-devel
7bd3f10
BuildRequires:  libinput-devel
7bd3f10
BuildRequires:  libXrender-devel
2c6b765
2c6b765
%description
2c6b765
QGnomePlatform is a Qt Platform Theme aimed to accommodate as much of
2c6b765
GNOME settings as possibleand utilize them in Qt applications without
2c6b765
modifying them - making them fit into the environment as well as possible.
2c6b765
2c6b765
%package qt5
2c6b765
Summary:        Qt5 Platform Theme aimed to accommodate Gnome settings
f13fb28
BuildRequires:  qt5-qtbase-devel >= 5.15.2
f13fb28
BuildRequires:  qt5-qtbase-static >= 5.15.2
f13fb28
BuildRequires:  qt5-qtwayland-devel >= 5.15.2
2c6b765
BuildRequires:  qt5-qtbase-private-devel >= 5.15.2
f13fb28
f13fb28
BuildRequires:  libadwaita-qt5-devel >= 1.4.1
f13fb28
Rex Dieter bc34c5b
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
2c6b765
Requires:       adwaita-qt5%{?_isa}
7bd3f10
2c6b765
%if (0%{?fedora} && 0%{?fedora} <= 38)
2c6b765
# Replace QGnomePlatform package with this as it was the Qt5 flavor
2c6b765
Obsoletes:      %{name} < 0.8.4-5
2c6b765
Provides:       %{name} = %{version}-%{release}
2c6b765
Provides:       %{name}%{?_isa} = %{version}-%{release}
2c6b765
%endif
f13fb28
2c6b765
# When GNOME Shell and Qt 5 are installed, we want this by default
2c6b765
Supplements:   (qt5-qtbase and gnome-shell)
2c6b765
2c6b765
%description qt5
f13fb28
QGnomePlatform is a Qt5 Platform Theme aimed to accommodate as much of
7bd3f10
GNOME settings as possibleand utilize them in Qt applications without
7bd3f10
modifying them - making them fit into the environment as well as possible.
7bd3f10
2c6b765
%package qt6
f13fb28
Summary:        Qt6 Platform Theme aimed to accommodate Gnome settings
2c6b765
BuildRequires:  qt6-qtbase-devel >= 6.2.0
2c6b765
BuildRequires:  qt6-qtbase-static >= 6.2.0
2c6b765
BuildRequires:  qt6-qtwayland-devel >= 6.2.0
2c6b765
BuildRequires:  qt6-qtbase-private-devel >= 6.2.0
2c6b765
2c6b765
BuildRequires:  libadwaita-qt6-devel >= 1.4.1
2c6b765
f13fb28
%{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
f13fb28
Requires:       adwaita-qt6%{?_isa}
7bd3f10
2c6b765
# When GNOME Shell and Qt 6 are installed, we want this by default
2c6b765
Supplements:   (qt6-qtbase and gnome-shell)
2c6b765
2c6b765
%description qt6
f13fb28
QGnomePlatform is a Qt6 Platform Theme aimed to accommodate as much of
f13fb28
GNOME settings as possibleand utilize them in Qt applications without
f13fb28
modifying them - making them fit into the environment as well as possible.
2c6b765
7bd3f10
%prep
4200609
%autosetup -p1 -n  QGnomePlatform-%{version}
7bd3f10
7bd3f10
%build
f13fb28
%global _vpath_builddir %{_target_platform}-qt5
dccd16f
%cmake
f13fb28
%cmake_build
7bd3f10
f13fb28
%global _vpath_builddir %{_target_platform}-qt6
f13fb28
%cmake -DUSE_QT6=true
d645f74
%cmake_build
7bd3f10
7bd3f10
%install
f13fb28
%global _vpath_builddir %{_target_platform}-qt5
d645f74
%cmake_install
d645f74
f13fb28
%global _vpath_builddir %{_target_platform}-qt6
f13fb28
%cmake_install
7bd3f10
2c6b765
%files qt5
7bd3f10
%doc README.md
7bd3f10
%license LICENSE
d645f74
%{_qt5_libdir}/libqgnomeplatform.so
f13fb28
%{_qt5_plugindir}/platformthemes/libqgnomeplatformtheme.so
f13fb28
%{_qt5_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so
f13fb28
2c6b765
%files qt6
2c6b765
%doc README.md
2c6b765
%license LICENSE
f13fb28
%{_qt6_libdir}/libqgnomeplatform6.so
f13fb28
%{_qt6_plugindir}/platformthemes/libqgnomeplatformtheme.so
f13fb28
%{_qt6_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so
7bd3f10
7bd3f10
%changelog
2c6b765
* Sat Mar 05 2022 Neal Gompa <ngompa@fedoraproject.org> - 0.8.4-5
2c6b765
- Rework packaging for consistency
2c6b765
- Add rich supplements for installing QGnomePlatform modules
2c6b765
00a819d
* Mon Feb 07 2022 Jan Grulich <jgrulich@redhat.com> - 0.8.4-4
00a819d
- Rebuild (qt6)
00a819d
d536582
* Mon Jan 24 2022 Jan Grulich <jgrulich@redhat.com> - 0.8.4-3
d536582
- Rebuild (qt5-qtwayland)
d536582
8eaf005
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-2
8eaf005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8eaf005
5ceb36c
* Wed Jan 12 2022 Jan Grulich <jgrulich@redhat.com> - 0.8.4-1
5ceb36c
- 0.8.4
5ceb36c
a8c0d2e
* Wed Dec 15 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.3-2
a8c0d2e
- Rebuild (qt6)
a8c0d2e
dc16319
* Mon Nov 22 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.3-1
dc16319
- 0.8.3
dc16319
d6862a1
* Mon Nov 15 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.2-1
d6862a1
- 0.8.2
d6862a1
f13fb28
* Wed Nov 10 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.1-1
f13fb28
- 0.8.1
f13fb28
  + Add Qt6 version
f13fb28
dccd16f
* Tue Sep 07 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.0-4
dccd16f
- Disable decoration shadows because of a Qt bug
dccd16f
fcbf0e4
* Mon Aug 30 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.0-3
fcbf0e4
- Enable decoration shadows
fcbf0e4
18ae5c5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
18ae5c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
18ae5c5
d645f74
* Wed Jun 02 2021 Jan Grulich <jgrulich@redhat.com> - 0.8.0-1
d645f74
- 0.8.0
d645f74
4ed57c1
* Mon Apr 12 2021 Jan Grulich <jgrulich@redhat.com> - 0.7.1-2
4ed57c1
- Improve double-click on titlebar to maximize/unmaximize reliability
4ed57c1
71a3d8a
* Thu Apr 08 2021 Jan Grulich <jgrulich@redhat.com> - 0.7.1-1
71a3d8a
- 0.7.1
71a3d8a
2ba070a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
2ba070a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2ba070a
cf6ebce
* Tue Jan 05 2021 Jan Grulich <jgrulich@redhat.com> - 0.7.0-2
cf6ebce
- QXdgDesktopFileDialog: backport upstream fixes
cf6ebce
0667591
* Thu Dec 17 2020 Jan Grulich <jgrulich@redhat.com> - 0.7.0-1
0667591
- 0.7.0
0667591
a6e8fd9
* Fri Nov 27 10:56:10 CET 2020 Jan Grulich <jgrulich@redhat.com> - 0.6.90-3
a6e8fd9
- rebuild (qt5) for eln
a6e8fd9
e391abb
* Mon Nov 23 07:54:44 CET 2020 Jan Grulich <jgrulich@redhat.com> - 0.6.90-2
e391abb
- rebuild (qt5)
e391abb
9a2ac7c
* Wed Sep 30 2020 Jan Grulich <jgrulich@redhat.com> - 0.6.90-1
9a2ac7c
- 0.6.90
9a2ac7c
9641282
* Fri Sep 11 2020 Jan Grulich <jgrulich@redhat.com> - 0.6.1-3
9641282
- rebuild (qt5)
9641282
1710be6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
1710be6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1710be6
8d1d554
* Mon May 11 2020 Jan Grulich <jgrulich@redhat.com> - 0.6.1-1
8d1d554
- 0.6.1
8d1d554
b4b5287
* Mon Apr 06 2020 Rex Dieter <rdieter@fedoraproject.org> - 0.6.0-4
b4b5287
- rebuild (qt5)
b4b5287
aaf7765
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
aaf7765
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
aaf7765
947d0ee
* Mon Dec 09 2019 Jan Grulich <jgrulich@redhat.com> - 0.6.0-2
947d0ee
- rebuild (qt5)
947d0ee
ae88305
* Wed Nov 20 2019 Jan Grulich <jgrulich@redhat.com> - 0.6.0-1
ae88305
- Update to 0.6.0
ae88305
6607a8f
* Fri Oct 04 2019 Jan Grulich <jgrulich@redhat.com> - 0.5.90-1
6607a8f
- Update to 0.5.90
6607a8f
1029036
* Thu Oct 03 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-17
1029036
- Link decorations against qtx11extras
1029036
566253f
* Fri Sep 27 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-16
566253f
- Set XCURSOR_SIZE only on wayland
566253f
2758922
* Fri Sep 27 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-15
2758922
- Add support for double-click to maximize windows
2758922
2e5862e
* Wed Sep 25 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-14
2e5862e
- rebuild (qt5)
2e5862e
f71e1c2
* Wed Aug 28 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-13
f71e1c2
- Fix cursor size on wayland
f71e1c2
a88b56c
* Thu Aug 15 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-12
a88b56c
- Add Gnome-like wayland decorations
a88b56c
  BUG: bz#1732129
a88b56c
bef2e9b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-11
bef2e9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bef2e9b
ba7fbe9
* Mon Jun 17 2019 Jan Grulich <jgrulich@redhat.com> - 0.5-10
ba7fbe9
- rebuild (qt5)
ba7fbe9
9a1171f
* Wed Jun 05 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.5-9
9a1171f
- rebuild (qt5)
9a1171f
9ac1961
* Sun Mar 03 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.5-8
9ac1961
- rebuild (qt5), use %%make_build
9ac1961
629c3ed
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-7
629c3ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
629c3ed
f7c6353
* Wed Dec 12 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.5-6
f7c6353
- rebuild (qt5)
f7c6353
0df0403
* Wed Dec 05 2018 Jan Grulich <jgrulich@redhat.com> - 0.5-1
0df0403
- Update to 0.5
0df0403
8fa2d05
* Fri Sep 21 2018 Jan Grulich <jgrulich@redhat.com> - 0.4-3
8fa2d05
- rebuild (qt5)
8fa2d05
6a0d0b4
* Fri Aug 24 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.4-2
6a0d0b4
- rebuild
6a0d0b4
e67b4ae
* Tue Jul 24 2018 Jan Grulich <jgrulich@redhat.com> - 0.4-1
e67b4ae
- Update to 0.4
e67b4ae
59e997e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-12
59e997e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
59e997e
9732cc5
* Wed Jun 20 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.3-11
9732cc5
- rebuild (qt5)
9732cc5
366aad4
* Sun May 27 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.3-10
366aad4
- rebuild (qt5)
366aad4
1b84965
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 0.3-9
1b84965
- rebuild (qt5)
1b84965
ba3c9b9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-8
ba3c9b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ba3c9b9
7731053
* Wed Dec 20 2017 Jan Grulich <jgrulich@redhat.com> - 0.3-7
7731053
- rebuild (qt5)
7731053
b335caf
* Sun Nov 26 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3-6
b335caf
- rebuild (qt5)
b335caf
905661a
* Mon Oct 09 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3-5
905661a
- rebuild (qt5)
905661a
7423fe1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4
7423fe1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7423fe1
97faace
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3
97faace
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
97faace
Rex Dieter a97b4bb
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3-2
Rex Dieter a97b4bb
- rebuild (qt5)
Rex Dieter a97b4bb
Martin Briza 020d747
* Mon May 08 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.3-1
Martin Briza 020d747
- Update to 0.3
Martin Briza 020d747
Rex Dieter 7e93dcb
* Mon May 08 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.2-17.20170206git
Rex Dieter 7e93dcb
- rebuild (Qt 5.9)
Rex Dieter 7e93dcb
Rex Dieter 034249e
* Fri Mar 31 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.2-16.20170206git
Rex Dieter 034249e
- fresh 20170206 snapshot (#1438024)
Rex Dieter 034249e
Rex Dieter cebc908
* Thu Mar 30 2017 Rex Dieter <rdieter@fedoraproject.org> - 0.2-15.20161205git
Rex Dieter cebc908
- rebuild (Qt 5.8)
Rex Dieter cebc908
5bfc1cb
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-14.20161205git
5bfc1cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5bfc1cb
cabc2d3
* Mon Jan 02 2017 Jan Grulich <jgrulich@redhat.com> - 0.2-13.20161205git
cabc2d3
- Fix crash in font dialog (bz#1378003)
cabc2d3
Rex Dieter 26564c9
* Thu Dec 15 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.2-12.20161024git
Rex Dieter 26564c9
- rebuild (qt5)
Rex Dieter 26564c9
Rex Dieter db9dca6
* Thu Nov 17 2016 Rex Dieter <rdieter@fedoraproject.org> 0.2-11.20161024git
Rex Dieter db9dca6
- release++
Rex Dieter db9dca6
Rex Dieter 5dddbc6
* Thu Nov 17 2016 Rex Dieter <rdieter@fedoraproject.org> 0.2-10.20161024git.2
Rex Dieter 5dddbc6
- branch rebuild (qt5)
Rex Dieter 5dddbc6
ac5047b
* Mon Oct 24 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-10.20161024git
ac5047b
- Fix Gtk3 dialogs on wayland
ac5047b
5a537cd
* Mon Jul 18 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-9.20160718git
5a537cd
- Fix not working dialogs
5a537cd
Rex Dieter 4862314
* Sun Jul 17 2016 Rex Dieter <rdieter@fedoraproject.org> 0.2-8.20160621git
Rex Dieter 4862314
- rebuild (qt5-qtbase)
Rex Dieter 4862314
28cff95
* Wed Jul 13 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-7.20160621git
28cff95
- Remove runtime dependency on GDM
28cff95
Rex Dieter 2d87bcd
* Wed Jun 29 2016 Rex Dieter <rdieter@fedoraproject.org> 0.2-6.20160621git
Rex Dieter 2d87bcd
- rebuild (qt5)
Rex Dieter 2d87bcd
19c0c0f
* Tue Jun 21 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-5.20160621git
19c0c0f
- Don't fallback to gtk+ style
19c0c0f
Rex Dieter bc34c5b
* Fri Jun 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 0.2-4.20160531git
Rex Dieter bc34c5b
- arch'd adwaita-qt5 runtime dep
Rex Dieter bc34c5b
- use system %%_qt5_version macro, instead of by-hand one here
Rex Dieter bc34c5b
- BR: qt5-qtbase-private-devel (helps track hard qt5-qtbase runtime dep)
Rex Dieter bc34c5b
1d73504
* Fri Jun 10 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-3.20160531git
1d73504
- rebuild (qt5-qtbase)
1d73504
22dadfb
* Mon Jun 06 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-2.20160531git
22dadfb
- Add runtime dependency on adwaita-qt5 (bz#1332103)
22dadfb
30ecd22
* Tue May 31 2016 Jan Grulich <jgrulich@redhat.com> - 0.2-1.20160531git
30ecd22
- Update to latest git snapshot
30ecd22
b4c75f5
* Wed Apr 20 2016 Jan Grulich <jgrulich@redhat.com> - 0.1-5
b4c75f5
- Pull in upstream changes
b4c75f5
4200609
* Wed Mar 16 2016 Jan Grulich <jgrulich@redhat.com> - 0.1-4
4200609
- Improve font size
4200609
fc3186e
* Thu Feb 25 2016 Jan Grulich <jgrulich@redhat.com> - 0.1-3
fc3186e
- Revert usage of qgnomeplatform.env in GDM
fc3186e
4524819
* Thu Feb 25 2016 Jan Grulich <jgrulich@redhat.com> - 0.1-2
4524819
- Install qgnomeplatform.env to gdm to automatically use it after we log in
4524819
7bd3f10
* Tue Feb 16 2016 Jan Grulich <jgrulich@redhat.com> - 0.1-1
7bd3f10
- First version