[qt5-qtbase/f21] -gui: don't require gtk2 (__requires_exclude_from platformthemes) (#1154884)

Kevin Kofler kkofler at fedoraproject.org
Thu Oct 23 13:50:59 UTC 2014


commit 04d5416fba2c49a9d6791f1a1ea1b78748026c73
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date:   Thu Oct 23 15:50:33 2014 +0200

    -gui: don't require gtk2 (__requires_exclude_from platformthemes) (#1154884)
    
    * Thu Oct 23 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> - 5.3.2-4
    - -gui: don't require gtk2 (__requires_exclude_from platformthemes) (#1154884)

 qt5-qtbase.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/qt5-qtbase.spec b/qt5-qtbase.spec
index 3ee5722..daa552e 100644
--- a/qt5-qtbase.spec
+++ b/qt5-qtbase.spec
@@ -29,7 +29,7 @@
 Summary: Qt5 - QtBase components
 Name:    qt5-qtbase
 Version: 5.3.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 
 # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
 License: LGPLv2 with exceptions or GPLv3 with exceptions
@@ -101,6 +101,13 @@ Patch100: qtbase-qfiledialog-implement-getopenfileurl-and-friends.patch
 %define _qt5_sysconfdir %{_qt5_settingsdir} 
 %define _qt5_translationdir %{_datadir}/qt5/translations
 
+# Do not check any files in %%{_qt5_plugindir}/platformthemes/ for requires.
+# Those themes are there for platform integration. If the required libraries are
+# not there, the platform to integrate with isn't either. Then Qt will just
+# silently ignore the plugin that fails to load. Thus, there is no need to let
+# RPM drag in gtk2 as a dependency for the GTK+ 2 dialog support.
+%global __requires_exclude_from ^%{_qt5_plugindir}/platformthemes/.*$
+
 # for %%check
 BuildRequires: cmake
 BuildRequires: cups-devel
@@ -761,6 +768,9 @@ fi
 
 
 %changelog
+* Thu Oct 23 2014 Kevin Kofler <Kevin at tigcc.ticalc.org> - 5.3.2-4
+- -gui: don't require gtk2 (__requires_exclude_from platformthemes) (#1154884)
+
 * Mon Oct 13 2014 Jan Grulich <jgrulich at redhat.com> 5.3.2-3
 - QFileDialog: implement getOpenFileUrl and friends for real
 


More information about the scm-commits mailing list