Browse Source

added debian build control files

pull/1/head
Boris Manojlovic 10 years ago
parent
commit
1a4e2f2999
22 changed files with 330 additions and 0 deletions
  1. +11
    -0
      debian/changelog
  2. +1
    -0
      debian/compat
  3. +91
    -0
      debian/control
  4. +73
    -0
      debian/copyright
  5. +2
    -0
      debian/libbcg729-0-dbg.lintian-overrides
  6. +1
    -0
      debian/libbcg729-0.install
  7. +2
    -0
      debian/libbcg729-0.lintian-overrides
  8. +7
    -0
      debian/libbcg729-0.symbols
  9. +4
    -0
      debian/libbcg729-dev.install
  10. +2
    -0
      debian/libbcg729-dev.lintian-overrides
  11. +2
    -0
      debian/mediastreamer-plugin-g729-dbg.lintian-overrides
  12. +2
    -0
      debian/mediastreamer-plugin-g729.install
  13. +2
    -0
      debian/mediastreamer-plugin-g729.lintian-overrides
  14. +16
    -0
      debian/patches/build-only-nonversioned-shared-version-of-plugin.patch
  15. +17
    -0
      debian/patches/enable-subdir-objects.patch
  16. +30
    -0
      debian/patches/install-codec-library-normally.patch
  17. +29
    -0
      debian/patches/remove-lib-prefix-from-plugin.patch
  18. +4
    -0
      debian/patches/series
  19. +26
    -0
      debian/rules
  20. +1
    -0
      debian/source/format
  21. +2
    -0
      debian/source/source.lintian-overrides
  22. +5
    -0
      debian/source/watch

+ 11
- 0
debian/changelog View File

@ -0,0 +1,11 @@
bcg729 (1.0.0-2) unstable; urgency=medium
* Custom build.
-- Boris Manojlovic <boris@steki.net> Fri, 30 Oct 2015 09:19:52 +0000
bcg729 (1.0.0-1) unstable; urgency=medium
* Initial release (Closes: #785480)
-- Felix Lechner <felix.lechner@gmail.com> Sat, 16 May 2015 14:03:19 -0700

+ 1
- 0
debian/compat View File

@ -0,0 +1 @@
9

+ 91
- 0
debian/control View File

@ -0,0 +1,91 @@
Source: bcg729
Priority: optional
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Uploaders: Mark Purcell <msp@debian.org>, Kilian Krause <kilian@debian.org>, Tzafrir Cohen <tzafrir@debian.org>
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.

+ 73
- 0
debian/copyright View File

@ -0,0 +1,73 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bcg729
Upstream-Contact: Simon Morlat <simon.morlat@linphone.org>
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 <felix.lechner@gmail.com>
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 <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in
"/usr/share/common-licenses/GPL-2".

+ 2
- 0
debian/libbcg729-0-dbg.lintian-overrides View File

@ -0,0 +1,2 @@
# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog
libbcg729-0-dbg binary: no-upstream-changelog

+ 1
- 0
debian/libbcg729-0.install View File

@ -0,0 +1 @@
usr/lib/*/lib*.so.*

+ 2
- 0
debian/libbcg729-0.lintian-overrides View File

@ -0,0 +1,2 @@
# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog
libbcg729-0 binary: no-upstream-changelog

+ 7
- 0
debian/libbcg729-0.symbols View File

@ -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

+ 4
- 0
debian/libbcg729-dev.install View File

@ -0,0 +1,4 @@
usr/include/*
usr/lib/*/lib*.a
usr/lib/*/lib*.so
usr/lib/*/pkgconfig/*

+ 2
- 0
debian/libbcg729-dev.lintian-overrides View File

@ -0,0 +1,2 @@
# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog
libbcg729-dev binary: no-upstream-changelog

+ 2
- 0
debian/mediastreamer-plugin-g729-dbg.lintian-overrides View File

@ -0,0 +1,2 @@
# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog
mediastreamer-plugin-g729-dbg binary: no-upstream-changelog

+ 2
- 0
debian/mediastreamer-plugin-g729.install View File

@ -0,0 +1,2 @@
usr/lib/*/mediastreamer/plugins/*.so
usr/lib/*/mediastreamer/plugins/*.la

+ 2
- 0
debian/mediastreamer-plugin-g729.lintian-overrides View File

@ -0,0 +1,2 @@
# High-level upstream changelog is kept in NEWS; debhelper skips empty ChangeLog
mediastreamer-plugin-g729 binary: no-upstream-changelog

+ 16
- 0
debian/patches/build-only-nonversioned-shared-version-of-plugin.patch View File

@ -0,0 +1,16 @@
Description: Do not build static plugin, and don't version the shared one
Author: Felix Lechner <felix.lechner@gmail.com>
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)

+ 17
- 0
debian/patches/enable-subdir-objects.patch View File

@ -0,0 +1,17 @@
Description: Enable subdir-objects in Automake
Author: Felix Lechner <felix.lechner@gmail.com>
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)

+ 30
- 0
debian/patches/install-codec-library-normally.patch View File

@ -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 <felix.lechner@gmail.com>
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)

+ 29
- 0
debian/patches/remove-lib-prefix-from-plugin.patch View File

@ -0,0 +1,29 @@
Description: Remove lib prefix from mediastreamer plugin
Author: Felix Lechner <felix.lechner@gmail.com>
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)

+ 4
- 0
debian/patches/series View File

@ -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

+ 26
- 0
debian/rules View File

@ -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

+ 1
- 0
debian/source/format View File

@ -0,0 +1 @@
3.0 (quilt)

+ 2
- 0
debian/source/source.lintian-overrides View File

@ -0,0 +1,2 @@
# Upstream does not sign GitHub tarfiles
bcg729 source: debian-watch-may-check-gpg-signature

+ 5
- 0
debian/source/watch View File

@ -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

Loading…
Cancel
Save