[gtk3] Enable Wayland and Broadway backends

Matthias Clasen mclasen at fedoraproject.org
Fri Jan 25 04:43:00 UTC 2013


commit e6358d428f0add36915e2661f7ee67d6cfb5dfc9
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Thu Jan 24 23:43:24 2013 -0500

    Enable Wayland and Broadway backends

 gtk3.spec |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/gtk3.spec b/gtk3.spec
index cf04b78..bb402af 100644
--- a/gtk3.spec
+++ b/gtk3.spec
@@ -1,3 +1,8 @@
+%if 0%{?fedora}
+%global with_wayland 1
+%global with_broadway 1
+%endif
+
 %global glib2_version 2.35.3
 %global pango_version 1.32.4
 %global gdk_pixbuf_version 2.26.0
@@ -10,7 +15,7 @@
 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
 Name: gtk3
 Version: 3.7.6
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -45,6 +50,11 @@ BuildRequires: libXdamage-devel
 BuildRequires: libXi-devel
 BuildRequires: gobject-introspection-devel
 BuildRequires: colord-devel
+%if %{with_wayland}
+BuildRequires: libwayland-client-devel
+BuildRequires: libwayland-cursor-devel
+BuildRequires: libxkbcommon-devel
+%endif
 
 # required for icon theme apis to work
 Requires: hicolor-icon-theme
@@ -129,6 +139,12 @@ widget toolkit.
         --enable-xcomposite \
         --enable-xdamage \
         --enable-x11-backend \
+%if %{with_wayland}
+        --enable-wayland-backend \
+%endif
+%if %{with_broadway}
+        --enable-broadway-backend \
+%endif
         --enable-colord \
 )
 
@@ -219,6 +235,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache
 %exclude %{_mandir}/man1/gtk-update-icon-cache.1.gz
 %{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
 %{_datadir}/glib-2.0/schemas/org.gtk.Settings.ColorChooser.gschema.xml
+%if %{with_broadway}
+%{_bindir}/broadwayd
+%endif
 
 %files immodules
 %{_libdir}/gtk-3.0/%{bin_version}/immodules/im-am-et.so
@@ -251,6 +270,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache
 %{_datadir}/gtk-doc
 
 %changelog
+* Thu Jan 24 2013 Matthias Clasen <mclasen at redhat.com> - 3.7.6-3
+- Enable the Wayland and Broadway backends
+
 * Thu Jan 24 2013 Cosimo Cecchi <cosimoc at redhat.com> - 3.7.6-2
 - Backport two patches from git master to fix window allocations
 


More information about the scm-commits mailing list