--- libxshmfence-1.1.orig/autogen.sh
+++ libxshmfence-1.1/autogen.sh
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"
--- libxshmfence-1.1.orig/debian/control
+++ libxshmfence-1.1/debian/control
@@ -0,0 +1,52 @@
+Source: libxshmfence
+Section: libs
+Priority: optional
+Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
+Uploaders: Julien Cristau <jcristau@debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-autoreconf,
+ quilt,
+ xutils-dev,
+ x11proto-core-dev,
+ pkg-config,
+Standards-Version: 3.9.4
+Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/libxshmfence
+Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/libxshmfence.git
+
+Package: libxshmfence1
+Architecture: any
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Multi-Arch: same
+Description: X shared memory fences - shared library
+ This library provides an interface to shared-memory fences for
+ synchronization between the X server and direct-rendering clients.
+ .
+ This package contains the xshmfence shared library.
+
+Package: libxshmfence-dev
+Architecture: any
+Depends:
+ libxshmfence1 (= ${binary:Version}),
+ ${misc:Depends},
+Multi-Arch: same
+Section: libdevel
+Description: X shared memory fences - development files
+ This library provides an interface to shared-memory fences for
+ synchronization between the X server and direct-rendering clients.
+ .
+ This package contains the xshmfence development files.
+
+Package: libxshmfence1-udeb
+XC-Package-Type: udeb
+Architecture: any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Section: debian-installer
+Description: X shared memory fences
+ This is a udeb, or a microdeb, for the debian-installer.
--- libxshmfence-1.1.orig/debian/libxshmfence1.install
+++ libxshmfence-1.1/debian/libxshmfence1.install
@@ -0,0 +1 @@
+usr/lib/*/libxshmfence.so.1*
--- libxshmfence-1.1.orig/debian/rules
+++ libxshmfence-1.1/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with quilt,autoreconf --builddirectory=build/ --parallel
+
+override_dh_makeshlibs:
+	dh_makeshlibs --add-udeb=libxshmfence1-udeb -- -c4
+
+override_dh_install:
+	dh_install --fail-missing -X.la
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+	    --disable-silent-rules \
+	    --with-shared-memory-dir=/tmp
+
+override_dh_auto_test:
+	dh_auto_test -- VERBOSE=1
--- libxshmfence-1.1.orig/debian/changelog
+++ libxshmfence-1.1/debian/changelog
@@ -0,0 +1,28 @@
+libxshmfence (1.1-2) precise; urgency=medium
+
+  * Add libxshmfence1-udeb.
+  * Add myself to Uploaders.
+
+ -- Julien Cristau <jcristau@debian.org>  Thu, 12 Dec 2013 11:44:16 +0100
+
+libxshmfence (1.1-1) unstable; urgency=low
+
+  [ Maarten Lankhorst ]
+  * New upstream release.
+    - add build-deps on pkg-config and x11proto-core-dev
+  * Add symbols file.
+  * libxshmfence is now built for any arch.
+
+  [ Julien Cristau ]
+  * Allow parallel builds.
+  * Show test log on error, and disable silent build rules.
+  * Force shared-memory-dir to /tmp.  My schroots don't have world-writable
+    /run/shm so the test fails.
+
+ -- Julien Cristau <jcristau@debian.org>  Tue, 03 Dec 2013 20:28:43 +0100
+
+libxshmfence (1.0-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Julien Cristau <jcristau@debian.org>  Sun, 24 Nov 2013 15:20:54 +0100
--- libxshmfence-1.1.orig/debian/libxshmfence1.symbols
+++ libxshmfence-1.1/debian/libxshmfence1.symbols
@@ -0,0 +1,8 @@
+libxshmfence.so.1 libxshmfence1 #MINVER#
+ xshmfence_trigger@Base 0
+ xshmfence_await@Base 0
+ xshmfence_query@Base 0
+ xshmfence_reset@Base 0
+ xshmfence_alloc_shm@Base 0
+ xshmfence_map_shm@Base 0
+ xshmfence_unmap_shm@Base 0
--- libxshmfence-1.1.orig/debian/copyright
+++ libxshmfence-1.1/debian/copyright
@@ -0,0 +1,22 @@
+This package was downloaded from
+http://xorg.freedesktop.org/releases/individual/lib/
+
+Copyright © 2013 Keith Packard
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that copyright
+notice and this permission notice appear in supporting documentation, and
+that the name of the copyright holders not be used in advertising or
+publicity pertaining to distribution of the software without specific,
+written prior permission.  The copyright holders make no representations
+about the suitability of this software for any purpose.  It is provided "as
+is" without express or implied warranty.
+
+THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+OF THIS SOFTWARE.
--- libxshmfence-1.1.orig/debian/libxshmfence-dev.install
+++ libxshmfence-1.1/debian/libxshmfence-dev.install
@@ -0,0 +1,4 @@
+usr/include
+usr/lib/*/pkgconfig
+usr/lib/*/*.a
+usr/lib/*/*.so
--- libxshmfence-1.1.orig/debian/libxshmfence1-udeb.install
+++ libxshmfence-1.1/debian/libxshmfence1-udeb.install
@@ -0,0 +1 @@
+usr/lib/*/libxshmfence.so.1* usr/lib
--- libxshmfence-1.1.orig/debian/compat
+++ libxshmfence-1.1/debian/compat
@@ -0,0 +1 @@
+9
--- libxshmfence-1.1.orig/debian/watch
+++ libxshmfence-1.1/debian/watch
@@ -0,0 +1,3 @@
+#git=git://anongit.freedesktop.org/xorg/lib/libxshmfence
+version=3
+http://xorg.freedesktop.org/releases/individual/lib/ libxshmfence-(.*)\.tar\.gz