Debian metadata patches to build in Mendel tree

Change-Id: Icf86fb5aa61a66133c987b9d7600caa838ef244a
diff --git a/debian/build-deps.in b/debian/build-deps.in
deleted file mode 100644
index f60ee26..0000000
--- a/debian/build-deps.in
+++ /dev/null
@@ -1,27 +0,0 @@
-@GST_LIB_DEV_DEP@
-@GST_EXTRA_BUILD_DEPENDS@
-libgstreamer-plugins-base@GST_ABI@-dev (>= 1.14.4)
-autotools-dev
-dh-autoreconf
-automake (>= 1.14)
-autoconf (>= 2.69)
-libtool (>= 2.2.6)
-autopoint (>= 0.17)
-cdbs (>= 0.4.93)
-debhelper (>= 9)
-dpkg-dev (>= 1.15.1)
-pkg-config (>= 0.11.0)
-gtk-doc-tools (>= 1.12)
-libglib2.0-dev (>= 2.40)
-liborc-0.4-dev (>= 1:0.4.17)
-liba52-0.7.4-dev
-libmpeg2-4-dev (>= 0.5.1)
-libsidplay1-dev
-libdvdread-dev (>= 0.9.0)
-gstreamer@GST_ABI@-plugins-base (>= 1.14.4)
-libcdio-dev (>= 0.76)
-libopencore-amrnb-dev (>= 0.1.3)
-libopencore-amrwb-dev (>= 0.1.3)
-gstreamer@GST_ABI@-doc
-gstreamer@GST_ABI@-plugins-base-doc
-libx264-dev (>= 2:0.120)
diff --git a/debian/control b/debian/control
index 3c1764a..2b31f8f 100644
--- a/debian/control
+++ b/debian/control
@@ -30,7 +30,7 @@
                libtool (>= 2.2.6),
                libx264-dev (>= 2:0.120),
                pkg-config (>= 0.11.0)
-Standards-Version: 3.9.3
+Standards-Version: 3.9.8
 Vcs-Git: https://salsa.debian.org/gstreamer-team/gst-plugins-ugly1.0.git
 Vcs-Browser: https://salsa.debian.org/gstreamer-team/gst-plugins-ugly1.0/
 Homepage: https://gstreamer.freedesktop.org
diff --git a/debian/control.in b/debian/control.in
deleted file mode 100644
index 1afe8cd..0000000
--- a/debian/control.in
+++ /dev/null
@@ -1,79 +0,0 @@
-Source: gst-plugins-ugly@GST_ABI@
-Section: libs
-Priority: optional
-Maintainer: Maintainers of GStreamer packages <gst-plugins-ugly1.0@packages.debian.org>
-Uploaders: Loic Minier <lool@dooz.org>,
-           Sebastian Dröge <slomo@debian.org>
-Build-Depends: BUILDDEPS
-Standards-Version: 3.9.3
-Vcs-Git: https://salsa.debian.org/gstreamer-team/gst-plugins-ugly1.0.git
-Vcs-Browser: https://salsa.debian.org/gstreamer-team/gst-plugins-ugly1.0/
-Homepage: https://gstreamer.freedesktop.org
-
-Package: @GST_PKGNAME@-plugins-ugly-doc
-Architecture: all
-Multi-Arch: foreign
-Section: doc
-Depends: ${misc:Depends},
-         gstreamer@GST_ABI@-doc,
-         gstreamer@GST_ABI@-plugins-base-doc
-Description: GStreamer documentation for plugins from the "ugly" 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.
- .
- This package contains documentation for plugins from the "ugly" set,
- a set of good-quality plug-ins that might pose distribution problems.
-
-Package: @GST_PKGNAME@-plugins-ugly
-Architecture: any
-Multi-Arch: same
-Depends: ${misc:Depends},
-         ${shlibs:Depends}
-Conflicts: gstreamer1.0-plugins-ugly-amr (<< 1.11.91)
-Replaces: gstreamer1.0-plugins-bad (<< 1.7.2),
-          gstreamer1.0-plugins-ugly-amr (<< 1.11.91)
-Breaks: gstreamer1.0-plugins-bad (<< 1.7.2)
-XB-GStreamer-Version: ${gstreamer:Version}
-XB-GStreamer-Elements: ${gstreamer:Elements}
-XB-GStreamer-URI-Sources: ${gstreamer:URISources}
-XB-GStreamer-URI-Sinks: ${gstreamer:URISinks}
-XB-GStreamer-Encoders: ${gstreamer:Encoders}
-XB-GStreamer-Decoders: ${gstreamer:Decoders}
-Provides: ${gstreamer:Provides},
-          gstreamer1.0-plugins-ugly-amr
-Description: GStreamer plugins from the "ugly" 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.
- .
- This package contains plugins from the "ugly" set, a set of
- good-quality plug-ins that might pose distribution problems.
-
-Package: @GST_PKGNAME@-plugins-ugly-dbg
-Architecture: any
-Multi-Arch: same
-Section: debug
-Priority: extra
-Depends: @GST_PKGNAME@-plugins-ugly (= ${binary:Version}),
-         ${misc:Depends}
-Replaces: gstreamer1.0-plugins-bad-dbg (<< 1.7.2)
-Breaks: gstreamer1.0-plugins-bad-dbg (<< 1.7.2)
-Description: GStreamer plugins from the "ugly" set (debug symbols)
- 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.
- .
- This package contains unstripped shared libraries. It is provided primarily
- to provide a backtrace with names in a debugger, this makes it somewhat
- easier to interpret core dumps. The libraries are installed in
- /usr/lib/debug and are automatically used by gdb.
diff --git a/debian/gstreamer-plugins-ugly.install b/debian/gstreamer-plugins-ugly.install
index eb19053..8fb5e66 100644
--- a/debian/gstreamer-plugins-ugly.install
+++ b/debian/gstreamer-plugins-ugly.install
@@ -8,7 +8,6 @@
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstdvdsub.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstmpeg2dec.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstrealmedia.so
-debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstsid.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstx264.so
 debian/tmp/usr/lib/*/gstreamer-@GST_ABI@/libgstxingmux.so
 debian/tmp/usr/share/locale
diff --git a/debian/rules b/debian/rules
index cc13f6b..09c0fae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -106,40 +106,6 @@
 
 maint: debian/control
 
-debian/build-deps: debian/build-deps.in debian/rules
-	cat $< > $@
-	for plugin in $(EXTRA_PLUGINS) ; do \
-		sh debian/extra deps $$plugin >> $@; \
-	done
-	sort $@ -o $@
-
-debian/control:: debian/control.in debian/build-deps debian/mk.control debian/rules
-	perl debian/mk.control | \
-		sed  -e 's/@GST_VERSION@/$(gst_version)/g' \
-		    -e 's/@GST_ABI@/$(gst_abi)/g' \
-		    -e 's/@GST_PKGNAME@/$(gst_pkgname)/g' \
-		    -e 's/@GST_LIB@/$(gst_lib)/g' \
-		    -e 's/@GST_LIB_DEV@/$(gst_lib_dev)/g' \
-		    -e 's/@GST_LIB_DEV_DEP@/$(gst_lib_dev_dep)/g' \
-		    -e 's/@GST_EXTRA_BUILD_DEPENDS@/$(gst_extra_build_depends)/g' \
-		    -e '/^Build-Depends\(-Indep\)\?/s/,\( *,\)*/,/g' \
-		    -e '/^Build-Depends\(-Indep\)\?/s/\ *,\ */,\n               /g' \
-		    >$@
-	for plugin in $(EXTRA_PLUGINS) ; do \
-		sh debian/extra control $$plugin | \
-			sed 's/@GST_ABI@/$(gst_abi)/g' | \
-			sed 's/@GST_PKGNAME@/$(gst_pkgname)/g' | \
-			sed 's/@GST_LIB@/$(gst_lib)/g' | \
-			sed 's/@GST_LIB_DEV@/$(gst_lib_dev)/g' | \
-			sed 's/@GST_LIB_DEV_DEP@/$(gst_lib_dev_dep)/g' | \
-			sed 's/@GST_PLUGINS_LIB@/$(gst_plugins_lib)/g' | \
-			sed 's/@GST_PLUGINS_LIB_DEV@/$(gst_plugins_lib_dev)/g' | \
-			sed 's/@GST_PLUGINS_LIB_DEV_DEP@/$(gst_plugins_lib_dev_dep)/g' | \
-			sed 's/@GST_GCONF_LIB@/$(gst_gconf_lib)/g' | \
-			sed 's/@GST_GCONF_LIB_DEV@/$(gst_gconf_lib_dev)/g' | \
-			sed 's/@GST_GCONF_LIB_DEV_DEP@/$(gst_gconf_lib_dev_dep)/g' >> $@; \
-	done
-
 space :=
 space +=
 X264_LIBRARY_PATHS := $(patsubst $(space),:,$(wildcard /usr/lib/*/x264-10bit/libx264.so.*))