From 1a4e2f2999e0875683b5402fc26f2d70f3e009ea Mon Sep 17 00:00:00 2001 From: Boris Manojlovic Date: Fri, 30 Oct 2015 19:52:01 +0100 Subject: [PATCH] added debian build control files --- debian/changelog | 11 +++ debian/compat | 1 + debian/control | 91 +++++++++++++++++++ debian/copyright | 73 +++++++++++++++ debian/libbcg729-0-dbg.lintian-overrides | 2 + debian/libbcg729-0.install | 1 + debian/libbcg729-0.lintian-overrides | 2 + debian/libbcg729-0.symbols | 7 ++ debian/libbcg729-dev.install | 4 + debian/libbcg729-dev.lintian-overrides | 2 + ...streamer-plugin-g729-dbg.lintian-overrides | 2 + debian/mediastreamer-plugin-g729.install | 2 + ...ediastreamer-plugin-g729.lintian-overrides | 2 + ...onversioned-shared-version-of-plugin.patch | 16 ++++ debian/patches/enable-subdir-objects.patch | 17 ++++ .../install-codec-library-normally.patch | 30 ++++++ .../remove-lib-prefix-from-plugin.patch | 29 ++++++ debian/patches/series | 4 + debian/rules | 26 ++++++ debian/source/format | 1 + debian/source/source.lintian-overrides | 2 + debian/source/watch | 5 + 22 files changed, 330 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libbcg729-0-dbg.lintian-overrides create mode 100644 debian/libbcg729-0.install create mode 100644 debian/libbcg729-0.lintian-overrides create mode 100644 debian/libbcg729-0.symbols create mode 100644 debian/libbcg729-dev.install create mode 100644 debian/libbcg729-dev.lintian-overrides create mode 100644 debian/mediastreamer-plugin-g729-dbg.lintian-overrides create mode 100644 debian/mediastreamer-plugin-g729.install create mode 100644 debian/mediastreamer-plugin-g729.lintian-overrides create mode 100644 debian/patches/build-only-nonversioned-shared-version-of-plugin.patch create mode 100644 debian/patches/enable-subdir-objects.patch create mode 100644 debian/patches/install-codec-library-normally.patch create mode 100644 debian/patches/remove-lib-prefix-from-plugin.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/source.lintian-overrides create mode 100644 debian/source/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..235f141 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +bcg729 (1.0.0-2) unstable; urgency=medium + + * Custom build. + + -- Boris Manojlovic Fri, 30 Oct 2015 09:19:52 +0000 + +bcg729 (1.0.0-1) unstable; urgency=medium + + * Initial release (Closes: #785480) + + -- Felix Lechner Sat, 16 May 2015 14:03:19 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7e42103 --- /dev/null +++ b/debian/control @@ -0,0 +1,91 @@ +Source: bcg729 +Priority: optional +Maintainer: Debian VoIP Team +Uploaders: Mark Purcell , Kilian Krause , Tzafrir Cohen +Build-Depends: + debhelper (>= 9), + autotools-dev, + dh-autoreconf, + pkg-config, + libmediastreamer-dev, + libortp-dev +Standards-Version: 3.9.6 +Section: libs +Homepage: http://www.linphone.org/technical-corner/bcg729/overview +Vcs-Browser: https://github.com/BelledonneCommunications/bcg729 +Vcs-Git: git://git.linphone.org/bcg729.git + +Package: libbcg729-0 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${shlibs:Depends}, + ${misc:Depends} +Description: ITU G.729 Annex A compatible audio codec + Bcg729 is an open source implementation of the ITU G729 Annex A + speech codec. Written in C 99, the library is fully portable. It + runs on many platforms, including ARM and x86. + . + Bcg729 supports concurrent channels encoding/decoding for multi + call application such as conferencing. + . + The project was developed as part of mediastreamer2, Linphone's + media processing engine. It therefore also contains the glue for + integration into Linphone/mediastreamer2. + +Package: libbcg729-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libbcg729-0 (= ${binary:Version}), + ${misc:Depends} +Description: Development files for the ITU G.729 compatible audio codec + Bcg729 is an open source implementation of the ITU G729 Annex A + speech codec. Written in C 99, the library is fully portable. It + runs on many platforms, including ARM and x86. + . + This package contains the development files. + +Package: libbcg729-0-dbg +Architecture: any +Multi-Arch: same +Section: debug +Priority: extra +Depends: + libbcg729-0 (= ${binary:Version}), + ${misc:Depends} +Description: Debug symbols for the ITU G.729 compatible audio codec + Bcg729 is an open source implementation of the ITU G729 Annex A + speech codec. Written in C 99, the library is fully portable. It + runs on many platforms, including ARM and x86. + . + This package contains the debugging symbols. + +Package: mediastreamer-plugin-g729 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: + ${shlibs:Depends}, + ${misc:Depends} +Description: Mediastreamer plugin for G.729 compatible audio codec + Mediastreamer plugin for Belledonne's open source implementation + of the ITU G729 Annex A speech codec. Mediastreamer is Linphone's + media processing engine. + +Package: mediastreamer-plugin-g729-dbg +Architecture: any +Multi-Arch: same +Section: debug +Priority: extra +Depends: + mediastreamer-plugin-g729 (= ${binary:Version}), + ${misc:Depends} +Description: Debug symbols for the G.729 mediastreamer plugin + Mediastreamer plugin for Belledonne's open source implementation + of the ITU G729 Annex A speech codec. Mediastreamer is Linphone's + media processing engine. + . + This package contains the debugging symbols. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4ceb287 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,73 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: bcg729 +Upstream-Contact: Simon Morlat +Source: https://github.com/BelledonneCommunications/bcg729/tags + +Files: * +Copyright: 2011 Belledonne Communications, Grenoble, France +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in + "/usr/share/common-licenses/GPL-2". + +Files: include/MSVC/stdint.h +Copyright: 2006-2008 Alexander Chemeris +License: BSD-2-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + 3. The name of the author may be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: debian/* +Copyright: 2015 Felix Lechner +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in + "/usr/share/common-licenses/GPL-2". diff --git a/debian/libbcg729-0-dbg.lintian-overrides b/debian/libbcg729-0-dbg.lintian-overrides new file mode 100644 index 0000000..4ab9d8b --- /dev/null +++ b/debian/libbcg729-0-dbg.lintian-overrides @@ -0,0 +1,2 @@ +# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog +libbcg729-0-dbg binary: no-upstream-changelog diff --git a/debian/libbcg729-0.install b/debian/libbcg729-0.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libbcg729-0.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/libbcg729-0.lintian-overrides b/debian/libbcg729-0.lintian-overrides new file mode 100644 index 0000000..e1103d3 --- /dev/null +++ b/debian/libbcg729-0.lintian-overrides @@ -0,0 +1,2 @@ +# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog +libbcg729-0 binary: no-upstream-changelog diff --git a/debian/libbcg729-0.symbols b/debian/libbcg729-0.symbols new file mode 100644 index 0000000..a6ad740 --- /dev/null +++ b/debian/libbcg729-0.symbols @@ -0,0 +1,7 @@ +libbcg729.so.0 libbcg729-0 #MINVER# + bcg729Decoder@Base 1.0.0 + bcg729Encoder@Base 1.0.0 + closeBcg729DecoderChannel@Base 1.0.0 + closeBcg729EncoderChannel@Base 1.0.0 + initBcg729DecoderChannel@Base 1.0.0 + initBcg729EncoderChannel@Base 1.0.0 diff --git a/debian/libbcg729-dev.install b/debian/libbcg729-dev.install new file mode 100644 index 0000000..76f28fa --- /dev/null +++ b/debian/libbcg729-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/debian/libbcg729-dev.lintian-overrides b/debian/libbcg729-dev.lintian-overrides new file mode 100644 index 0000000..f537565 --- /dev/null +++ b/debian/libbcg729-dev.lintian-overrides @@ -0,0 +1,2 @@ +# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog +libbcg729-dev binary: no-upstream-changelog diff --git a/debian/mediastreamer-plugin-g729-dbg.lintian-overrides b/debian/mediastreamer-plugin-g729-dbg.lintian-overrides new file mode 100644 index 0000000..34269c2 --- /dev/null +++ b/debian/mediastreamer-plugin-g729-dbg.lintian-overrides @@ -0,0 +1,2 @@ +# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog +mediastreamer-plugin-g729-dbg binary: no-upstream-changelog diff --git a/debian/mediastreamer-plugin-g729.install b/debian/mediastreamer-plugin-g729.install new file mode 100644 index 0000000..8095585 --- /dev/null +++ b/debian/mediastreamer-plugin-g729.install @@ -0,0 +1,2 @@ +usr/lib/*/mediastreamer/plugins/*.so +usr/lib/*/mediastreamer/plugins/*.la diff --git a/debian/mediastreamer-plugin-g729.lintian-overrides b/debian/mediastreamer-plugin-g729.lintian-overrides new file mode 100644 index 0000000..86cc8cb --- /dev/null +++ b/debian/mediastreamer-plugin-g729.lintian-overrides @@ -0,0 +1,2 @@ +# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog +mediastreamer-plugin-g729 binary: no-upstream-changelog diff --git a/debian/patches/build-only-nonversioned-shared-version-of-plugin.patch b/debian/patches/build-only-nonversioned-shared-version-of-plugin.patch new file mode 100644 index 0000000..60b3093 --- /dev/null +++ b/debian/patches/build-only-nonversioned-shared-version-of-plugin.patch @@ -0,0 +1,16 @@ +Description: Do not build static plugin, and don't version the shared one +Author: Felix Lechner +Forwarded: no +Last-Update: 2015-05-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/msbcg729/Makefile.am ++++ b/msbcg729/Makefile.am +@@ -10,6 +10,6 @@ msbcg729_la_LIBADD=\ + $(MEDIASTREAMER_LIBS) \ + $(top_builddir)/src/libbcg729.la + +-msbcg729_la_LDFLAGS=-module -no-undefined ++msbcg729_la_LDFLAGS=-module -no-undefined -avoid-version -shared + AM_CPPFLAGS = -I$(top_srcdir)/include + msbcg729_la_CFLAGS= $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) diff --git a/debian/patches/enable-subdir-objects.patch b/debian/patches/enable-subdir-objects.patch new file mode 100644 index 0000000..7c60bba --- /dev/null +++ b/debian/patches/enable-subdir-objects.patch @@ -0,0 +1,17 @@ +Description: Enable subdir-objects in Automake +Author: Felix Lechner +Forwarded: no +Last-Update: 2015-05-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/configure.ac ++++ b/configure.ac +@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM + AC_PREREQ(2.63) + AC_CONFIG_SRCDIR([src/encoder.c]) + AC_CONFIG_MACRO_DIR([m4]) +-AM_INIT_AUTOMAKE([tar-ustar --warnings=no-portability]) ++AM_INIT_AUTOMAKE([tar-ustar subdir-objects --warnings=no-portability]) + AC_PROG_LIBTOOL + AC_PROG_CC + AC_CONFIG_HEADERS(config.h) diff --git a/debian/patches/install-codec-library-normally.patch b/debian/patches/install-codec-library-normally.patch new file mode 100644 index 0000000..82365c8 --- /dev/null +++ b/debian/patches/install-codec-library-normally.patch @@ -0,0 +1,30 @@ +Description: Install codec library in normal location, and with headers + For some reason, the library is installed in a different place + when the mediastreamer plugin is also built. +Author: Felix Lechner +Forwarded: no +Last-Update: 2015-05-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,8 +1,4 @@ +-if BUILD_MSBCG729 +-noinst_LTLIBRARIES = libbcg729.la +-else + lib_LTLIBRARIES = libbcg729.la +-endif + + libbcg729_la_SOURCES= LP2LSPConversion.c \ + LPSynthesisFilter.c \ +--- a/include/bcg729/Makefile.am ++++ b/include/bcg729/Makefile.am +@@ -3,8 +3,6 @@ bcg729_includedir=$(includedir)/bcg729 + public_headers=encoder.h decoder.h + + bcg729_include_HEADERS= +-if !BUILD_MSBCG729 + bcg729_include_HEADERS+=$(public_headers) +-endif + + EXTRA_DIST=$(public_headers) diff --git a/debian/patches/remove-lib-prefix-from-plugin.patch b/debian/patches/remove-lib-prefix-from-plugin.patch new file mode 100644 index 0000000..711140c --- /dev/null +++ b/debian/patches/remove-lib-prefix-from-plugin.patch @@ -0,0 +1,29 @@ +Description: Remove lib prefix from mediastreamer plugin +Author: Felix Lechner +Forwarded: no +Last-Update: 2015-05-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/msbcg729/Makefile.am ++++ b/msbcg729/Makefile.am +@@ -1,15 +1,15 @@ + + pluginsdir = $(libdir)/mediastreamer/plugins + +-plugins_LTLIBRARIES=libmsbcg729.la ++plugins_LTLIBRARIES=msbcg729.la + +-libmsbcg729_la_SOURCES=bcg729_dec.c bcg729_enc.c ++msbcg729_la_SOURCES=bcg729_dec.c bcg729_enc.c + +-libmsbcg729_la_LIBADD=\ ++msbcg729_la_LIBADD=\ + $(ORTP_LIBS) \ + $(MEDIASTREAMER_LIBS) \ + $(top_builddir)/src/libbcg729.la + +-libmsbcg729_la_LDFLAGS=-module -no-undefined ++msbcg729_la_LDFLAGS=-module -no-undefined + AM_CPPFLAGS = -I$(top_srcdir)/include +-libmsbcg729_la_CFLAGS= $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) ++msbcg729_la_CFLAGS= $(ORTP_CFLAGS) $(MEDIASTREAMER_CFLAGS) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a428174 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,4 @@ +enable-subdir-objects.patch +install-codec-library-normally.patch +remove-lib-prefix-from-plugin.patch +build-only-nonversioned-shared-version-of-plugin.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7b38839 --- /dev/null +++ b/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Uncomment this to change the hardening options +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +%: + dh $@ --parallel \ + --with autotools-dev --with autoreconf \ + --buildsystem=autoconf + +override_dh_auto_configure: + dh_auto_configure -- --enable-static --enable-shared --disable-tests + +override_dh_auto_install: + dh_auto_install --destdir=debian/tmp + sed -i "/dependency_libs/ s/'.*'/''/" "$(CURDIR)"/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/mediastreamer/plugins/msbcg729.la + +override_dh_strip: + dh_strip -plibbcg729-0 --dbg-package=libbcg729-0-dbg + dh_strip -pmediastreamer-plugin-g729 --dbg-package=mediastreamer-plugin-g729-dbg diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/source.lintian-overrides b/debian/source/source.lintian-overrides new file mode 100644 index 0000000..fd8f90b --- /dev/null +++ b/debian/source/source.lintian-overrides @@ -0,0 +1,2 @@ +# Upstream does not sign GitHub tarfiles +bcg729 source: debian-watch-may-check-gpg-signature diff --git a/debian/source/watch b/debian/source/watch new file mode 100644 index 0000000..58a3796 --- /dev/null +++ b/debian/source/watch @@ -0,0 +1,5 @@ +version=3 + +opts=\ +filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/bcg729-$1\.tar\.gz/,\ + https://github.com/BelledonneCommunications/bcg729/tags .*/v?(\d\S*)\.tar\.gz