diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3056d93 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/QGnomePlatform-0.4.tar.gz diff --git a/.qgnomeplatform.metadata b/.qgnomeplatform.metadata new file mode 100644 index 0000000..f1cb5ef --- /dev/null +++ b/.qgnomeplatform.metadata @@ -0,0 +1 @@ +5a34a1a5ede6c4328519f2db2c0f55470efc5788 SOURCES/QGnomePlatform-0.4.tar.gz diff --git a/SOURCES/qgnomeplatform-avoid-double-scaling.patch b/SOURCES/qgnomeplatform-avoid-double-scaling.patch new file mode 100644 index 0000000..253a546 --- /dev/null +++ b/SOURCES/qgnomeplatform-avoid-double-scaling.patch @@ -0,0 +1,15 @@ +diff --git a/src/gnomehintssettings.cpp b/src/gnomehintssettings.cpp +index ea007a7..c863654 100644 +--- a/src/gnomehintssettings.cpp ++++ b/src/gnomehintssettings.cpp +@@ -259,7 +259,9 @@ void GnomeHintsSettings::loadFonts() + qDeleteAll(m_fonts); + m_fonts.clear(); + +- gdouble scaling = g_settings_get_double(m_settings, "text-scaling-factor"); ++ //Do not use font scaling as it is already applied ++ //gdouble scaling = g_settings_get_double(m_settings, "text-scaling-factor"); ++ gdouble scaling = 1.0; + qCDebug(QGnomePlatform) << "Font scaling: " << scaling; + + const QStringList fontTypes { "font-name", "monospace-font-name" }; diff --git a/SPECS/qgnomeplatform.spec b/SPECS/qgnomeplatform.spec new file mode 100644 index 0000000..e2e537d --- /dev/null +++ b/SPECS/qgnomeplatform.spec @@ -0,0 +1,169 @@ + +Name: qgnomeplatform +Version: 0.4 +Release: 2%{?dist} +Summary: Qt Platform Theme aimed to accommodate Gnome settings + +License: LGPLv2+ +URL: https://github.com/MartinBriza/QGnomePlatform +Source0: https://github.com/MartinBriza/QGnomePlatform/archive/%{version}/QGnomePlatform-%{version}.tar.gz + +# Upstream patches +Patch0: qgnomeplatform-avoid-double-scaling.patch + +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: gtk3-devel +BuildRequires: libinput-devel +BuildRequires: libXrender-devel +# please document if/why this is needed, FTBFS against qt-5.7.0 in rawhide obviously -- rex +#BuildRequires: qt5-qtbase-devel >= 5.6.0 qt5-qtbase-devel <= 5.6.100 +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtbase-static + +Requires: adwaita-qt%{?_isa} + +BuildRequires: qt5-qtbase-private-devel +%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} + +%description +QGnomePlatform is a Qt Platform Theme aimed to accommodate as much of +GNOME settings as possibleand utilize them in Qt applications without +modifying them - making them fit into the environment as well as possible. + + +%prep +%autosetup -p1 -n QGnomePlatform-%{version} + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{qmake_qt5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} + +%files +%doc README.md +%license LICENSE +%{_qt5_libdir}/qt5/plugins/platformthemes/libqgnomeplatform.so + + +%changelog +* Mon Dec 10 2018 Jan Grulich - 0.4-2 +- Do not apply scaling twice + Resolves: bz#1657279 + +* Tue Jul 24 2018 Jan Grulich - 0.4-1 +- Update to 0.4 + +* Tue Jul 03 2018 Jan Grulich - 0.3-11 +- rebuild (qt5) + +* Mon May 14 2018 Jan Grulich - 0.3-10 +- Require adwaita-qt instead adwaita-qt5 + Resolves: bz#1569052 + +* Wed Feb 14 2018 Jan Grulich - 0.3-9 +- rebuild (qt5) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Dec 20 2017 Jan Grulich - 0.3-7 +- rebuild (qt5) + +* Sun Nov 26 2017 Rex Dieter - 0.3-6 +- rebuild (qt5) + +* Mon Oct 09 2017 Rex Dieter - 0.3-5 +- rebuild (qt5) + +* Thu Aug 03 2017 Fedora Release Engineering - 0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Wed Jul 19 2017 Rex Dieter - 0.3-2 +- rebuild (qt5) + +* Mon May 08 2017 Rex Dieter - 0.3-1 +- Update to 0.3 + +* Mon May 08 2017 Rex Dieter - 0.2-17.20170206git +- rebuild (Qt 5.9) + +* Fri Mar 31 2017 Rex Dieter - 0.2-16.20170206git +- fresh 20170206 snapshot (#1438024) + +* Thu Mar 30 2017 Rex Dieter - 0.2-15.20161205git +- rebuild (Qt 5.8) + +* Sat Feb 11 2017 Fedora Release Engineering - 0.2-14.20161205git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Jan 02 2017 Jan Grulich - 0.2-13.20161205git +- Fix crash in font dialog (bz#1378003) + +* Thu Dec 15 2016 Rex Dieter - 0.2-12.20161024git +- rebuild (qt5) + +* Thu Nov 17 2016 Rex Dieter 0.2-11.20161024git +- release++ + +* Thu Nov 17 2016 Rex Dieter 0.2-10.20161024git.2 +- branch rebuild (qt5) + +* Mon Oct 24 2016 Jan Grulich - 0.2-10.20161024git +- Fix Gtk3 dialogs on wayland + +* Mon Jul 18 2016 Jan Grulich - 0.2-9.20160718git +- Fix not working dialogs + +* Sun Jul 17 2016 Rex Dieter 0.2-8.20160621git +- rebuild (qt5-qtbase) + +* Wed Jul 13 2016 Jan Grulich - 0.2-7.20160621git +- Remove runtime dependency on GDM + +* Wed Jun 29 2016 Rex Dieter 0.2-6.20160621git +- rebuild (qt5) + +* Tue Jun 21 2016 Jan Grulich - 0.2-5.20160621git +- Don't fallback to gtk+ style + +* Fri Jun 10 2016 Rex Dieter - 0.2-4.20160531git +- arch'd adwaita-qt5 runtime dep +- use system %%_qt5_version macro, instead of by-hand one here +- BR: qt5-qtbase-private-devel (helps track hard qt5-qtbase runtime dep) + +* Fri Jun 10 2016 Jan Grulich - 0.2-3.20160531git +- rebuild (qt5-qtbase) + +* Mon Jun 06 2016 Jan Grulich - 0.2-2.20160531git +- Add runtime dependency on adwaita-qt5 (bz#1332103) + +* Tue May 31 2016 Jan Grulich - 0.2-1.20160531git +- Update to latest git snapshot + +* Wed Apr 20 2016 Jan Grulich - 0.1-5 +- Pull in upstream changes + +* Wed Mar 16 2016 Jan Grulich - 0.1-4 +- Improve font size + +* Thu Feb 25 2016 Jan Grulich - 0.1-3 +- Revert usage of qgnomeplatform.env in GDM + +* Thu Feb 25 2016 Jan Grulich - 0.1-2 +- Install qgnomeplatform.env to gdm to automatically use it after we log in + +* Tue Feb 16 2016 Jan Grulich - 0.1-1 +- First version