diff -ruN rpmbuild.old/SOURCES/disable_-Werror.patch rpmbuild/SOURCES/disable_-Werror.patch
--- rpmbuild.old/SOURCES/disable_-Werror.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/disable_-Werror.patch	2014-02-13 13:50:57.000000000 +0000
@@ -0,0 +1,11 @@
+--- metacity-2.28.0/configure.in.orig	2014-02-13 13:49:51.556227478 +0000
++++ metacity-2.28.0/configure.in	2014-02-13 13:50:17.727075414 +0000
+@@ -494,7 +494,7 @@
+ 
+ # Warnings are there for a reason
+ if test "x$GCC" = "xyes"; then
+-  CFLAGS="$CFLAGS -Wall -Werror -ansi"
++  CFLAGS="$CFLAGS -Wall -ansi"
+ fi
+ 
+ # Use gnome-doc-utils:
diff -ruN rpmbuild.old/SPECS/metacity.spec rpmbuild/SPECS/metacity.spec
--- rpmbuild.old/SPECS/metacity.spec	2012-05-04 20:41:46.000000000 +0100
+++ rpmbuild/SPECS/metacity.spec	2014-02-13 14:06:26.000000000 +0000
@@ -3,7 +3,7 @@
 Summary: Unobtrusive window manager
 Name: metacity
 Version: 2.28.0
-Release: 23%{?dist}
+Release: 23%{?dist}.0
 URL: http://download.gnome.org/sources/metacity/
 Source0: http://download.gnome.org/sources/metacity/2.28/metacity-%{version}.tar.bz2
 Patch0: default-theme.patch
@@ -72,6 +72,7 @@
 Patch30: metacity-2.28.0-unmaximize-user-rect.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=802916
 Patch31: 0001-window-Do-not-open-password-dialogs-underneath-fulls.patch
+Patch10001: disable_-Werror.patch
 
 License: GPLv2+
 Group: User Interface/Desktops
@@ -163,6 +164,7 @@
 %patch29 -p1 -b .mouse-unmaximize
 %patch30 -p1 -b .unmaximize-user-rect
 %patch31 -p1 -b .polkit-focus-stealing
+%patch10001 -p1 -b .disable-werror
 
 # force regeneration
 rm src/metacity.schemas
@@ -270,6 +272,9 @@
 %{_mandir}/man1/metacity-window-demo.1.gz
 
 %changelog
+* Sat Feb 01 2014 Gordan Bobic <gordan@redsleeve.org> 2.28.0-23.0
+- Disable -Werror due to deprecation warning in dependency header
+
 * Fri May 04 2012 Florian Muellner <fmuellner@redhat.com> 2.28.0-23
 - Do not open password dialogs underneath fullscreen windows
   Resolves: rhbz 802916
