Include G-I files and platform dependent GL headers
diff --git a/debian/build-deps b/debian/build-deps
index 8649587..7a8773f 100644
--- a/debian/build-deps
+++ b/debian/build-deps
@@ -7,6 +7,11 @@
 dh-autoreconf
 dpkg-dev (>= 1.15.1)
 flite-dev
+gir1.2-freedesktop
+gir1.2-glib-2.0
+gir1.2-gst-plugins-base-1.0
+gir1.2-gstreamer-1.0
+gobject-introspection (>= 0.9.12-4~)
 @GST_EXTRA_BUILD_DEPENDS@
 @GST_LIB_DEV_DEP@
 gstreamer@GST_ABI@-doc
@@ -29,6 +34,7 @@
 libexif-dev (>= 0.6.16)
 libfaad-dev
 libfluidsynth-dev (>= 1.0)
+libgirepository1.0-dev (>= 0.9.12-4~)
 libgl1-mesa-dev
 libgles2-mesa-dev
 libglib2.0-dev (>= 2.32)
diff --git a/debian/build-deps.in b/debian/build-deps.in
index 631c5ee..2512833 100644
--- a/debian/build-deps.in
+++ b/debian/build-deps.in
@@ -76,3 +76,9 @@
 libbs2b-dev
 libde265-dev
 libx265-dev
+libgirepository1.0-dev (>= 0.9.12-4~)
+gobject-introspection (>= 0.9.12-4~)
+gir1.2-glib-2.0
+gir1.2-freedesktop
+gir1.2-gstreamer-1.0
+gir1.2-gst-plugins-base-1.0
diff --git a/debian/changelog b/debian/changelog
index 3af29bc..cb7ec23 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+gst-plugins-bad1.0 (1.5.0.1+git20150316-2) experimental; urgency=medium
+
+  * debian/libgstreamer-plugins-bad-dev.install:
+    + Include platform dependent GL headers.
+  * debian/libgstreamer-plugins-bad-dev.install,
+    debian/rules,
+    debian/build-deps.in:
+    + Include GObject-Introspection files for the libraries.
+
+ -- Sebastian Dröge <slomo@debian.org>  Mon, 23 Mar 2015 10:04:25 +0100
+
 gst-plugins-bad1.0 (1.5.0.1+git20150316-1) experimental; urgency=medium
 
   * New upstream GIT snapshot:
diff --git a/debian/control b/debian/control
index 4b0cef4..2a2f1b1 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,11 @@
                dh-autoreconf,
                dpkg-dev (>= 1.15.1),
                flite-dev,
+               gir1.2-freedesktop,
+               gir1.2-glib-2.0,
+               gir1.2-gst-plugins-base-1.0,
+               gir1.2-gstreamer-1.0,
+               gobject-introspection (>= 0.9.12-4~),
                libasound2-dev (>= 0.9.1) [linux-any],
                libcdaudio-dev [linux-any],
                libdc1394-22-dev (>= 2.0.0) [linux-any],
@@ -42,6 +47,7 @@
                libexif-dev (>= 0.6.16),
                libfaad-dev,
                libfluidsynth-dev (>= 1.0),
+               libgirepository1.0-dev (>= 0.9.12-4~),
                libgl1-mesa-dev,
                libgles2-mesa-dev,
                libglib2.0-dev (>= 2.32),
@@ -197,7 +203,10 @@
 Section: libdevel
 Priority: extra
 Depends: ${misc:Depends},
-	 libgstreamer-plugins-bad1.0-0 (= ${binary:Version}),
+         libgstreamer-plugins-bad1.0-0 (= ${binary:Version}),
+         libgstreamer1.0-dev,
+         libgstreamer-plugins-base1.0-dev,
+         gir1.2-gst-plugins-bad-1.0 (= ${binary:Version})
 Description: GStreamer development files for libraries from the "bad" set
  GStreamer is a streaming media framework, based on graphs of filters
  which operate on media data.  Applications using this library can do
@@ -213,3 +222,28 @@
  .
  This package contains development files for GStreamer libraries from the
  "bad" set. The API is not guaranteed to be stable.
+
+Package: gir1.2-gst-plugins-bad-1.0
+Section: introspection
+Architecture: any
+Depends: ${gir:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         ${gir:Depends}
+Description: Description: GObject introspection data for the GStreamer libraries from the "bad" set
+ GStreamer is a streaming media framework, based on graphs of filters
+ which operate on media data.  Applications using this library can do
+ anything from real-time sound processing to playing videos, and just
+ about anything else media-related.  Its plugin-based architecture means
+ that new data types or processing capabilities can be added simply by
+ installing new plug-ins.
+ .
+ GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared
+ to the rest. They might be close to being good quality, but they're missing
+ something - be it a good code review, some documentation, a set of tests, a
+ real live maintainer, or some actual wide use.
+ .
+ This package contains introspection data for the GStreamer libraries from
+ the "bad" set. It can be used by packages using the GIRepository format to
+ generate dynamic bindings.
+
diff --git a/debian/control.in b/debian/control.in
index e5146f2..f139d73 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -113,7 +113,10 @@
 Section: libdevel
 Priority: extra
 Depends: ${misc:Depends},
-	 libgstreamer-plugins-bad@GST_DEB_ABI@ (= ${binary:Version}),
+         libgstreamer-plugins-bad@GST_DEB_ABI@ (= ${binary:Version}),
+         libgstreamer@GST_ABI@-dev,
+         libgstreamer-plugins-base@GST_ABI@-dev,
+         gir1.2-gst-plugins-bad-@GST_ABI@ (= ${binary:Version})
 Description: GStreamer development files for libraries from the "bad" set
  GStreamer is a streaming media framework, based on graphs of filters
  which operate on media data.  Applications using this library can do
@@ -129,3 +132,28 @@
  .
  This package contains development files for GStreamer libraries from the
  "bad" set. The API is not guaranteed to be stable.
+
+Package: gir1.2-gst-plugins-bad-@GST_ABI@
+Section: introspection
+Architecture: any
+Depends: ${gir:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         ${gir:Depends}
+Description: Description: GObject introspection data for the GStreamer libraries from the "bad" set
+ GStreamer is a streaming media framework, based on graphs of filters
+ which operate on media data.  Applications using this library can do
+ anything from real-time sound processing to playing videos, and just
+ about anything else media-related.  Its plugin-based architecture means
+ that new data types or processing capabilities can be added simply by
+ installing new plug-ins.
+ .
+ GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared
+ to the rest. They might be close to being good quality, but they're missing
+ something - be it a good code review, some documentation, a set of tests, a
+ real live maintainer, or some actual wide use.
+ .
+ This package contains introspection data for the GStreamer libraries from
+ the "bad" set. It can be used by packages using the GIRepository format to
+ generate dynamic bindings.
+
diff --git a/debian/gir1.2-gst-plugins-bad.install b/debian/gir1.2-gst-plugins-bad.install
new file mode 100644
index 0000000..9803e33
--- /dev/null
+++ b/debian/gir1.2-gst-plugins-bad.install
@@ -0,0 +1 @@
+debian/tmp/usr/lib/*/girepository-* usr/lib
diff --git a/debian/libgstreamer-plugins-bad-dev.install b/debian/libgstreamer-plugins-bad-dev.install
index ac87bac..0f20b1e 100644
--- a/debian/libgstreamer-plugins-bad-dev.install
+++ b/debian/libgstreamer-plugins-bad-dev.install
@@ -1,3 +1,5 @@
 debian/tmp/usr/include
+debian/tmp/usr/lib/*/gstreamer-1.0/include
 debian/tmp/usr/lib/*/pkgconfig
 debian/tmp/usr/lib/*/*.so
+debian/tmp/usr/share/gir-*
diff --git a/debian/rules b/debian/rules
index fd8e4b6..ed85dbd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -149,6 +149,8 @@
 			> debian/libgstreamer-plugins-bad$(gst_deb_abi).install
 	sed 's/@GST_ABI@/$(gst_abi)/g' debian/libgstreamer-plugins-bad-dev.install \
 			> debian/libgstreamer-plugins-bad$(gst_abi)-dev.install
+	cp debian/gir1.2-gst-plugins-bad.install \
+			debian/gir1.2-gst-plugins-bad-$(gst_abi).install
 
 maint: debian/control