diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6b03e89 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libbs2b (3.1.0+dfsg-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- openKylinBot Mon, 25 Apr 2022 22:03:04 +0800 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..4967da8 --- /dev/null +++ b/debian/control @@ -0,0 +1,48 @@ +Source: libbs2b +Priority: extra +Section: libs +Maintainer: Andrew Gainer +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9), libsndfile1-dev, dh-autoreconf +Homepage: http://bs2b.sourceforge.net/ +Vcs-Git: git://git.debian.org/collab-maint/libbs2b.git +Vcs-Browser: http://git.debian.org/?p=collab-maint/libbs2b.git;a=summary + +Package: libbs2b0 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Bauer stereophonic-to-binaural DSP library + The Bauer stereophonic-to-binaural DSP (bs2b) is designed to improve + headphone listening of stereo audio records. + . + Typical stereo recordings are made for listening with speakers. + What's missing in headphones is the sound going from each channel + to the opposite ear, arriving a short time later for the extra distance + traveled, and with a bit of high frequency roll-off for the shadowing + effect of the head. The time delay to the far ear should also be + somewhat longer at low frequencies than at high frequencies. bs2b + implements both of these ideas to transform stereophonic recordings + for headphone listening. + +Package: libbs2b-dev +Architecture: any +Multi-Arch: same +Section: libdevel +Depends: libbs2b0 (= ${binary:Version}), ${misc:Depends} +Description: Bauer stereophonic-to-binaural DSP library development files + The Bauer stereophonic-to-binaural DSP (bs2b) is designed to improve + headphone listening of stereo audio records. + . + Typical stereo recordings are made for listening with speakers. + What's missing in headphones is the sound going from each channel + to the opposite ear, arriving a short time later for the extra distance + traveled, and with a bit of high frequency roll-off for the shadowing + effect of the head. The time delay to the far ear should also be + somewhat longer at low frequencies than at high frequencies. bs2b + implements both of these ideas to transform stereophonic recordings + for headphone listening. + . + This package contains the files needed to build packages linking against + libbs2b. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6e6686b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,111 @@ +Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=174 +Upstream-Name: libbs2b +Source: http://bs2b.sourceforge.net/ + +Files: * +Copyright: Copyright 2009 Boris Mikhaylov +License: GPL-2+ + +Files: debian/* +Copyright: Copyright 2011 Andrew Gainer +License: GPL-3+ + +Files: m4/pkg.m4 +Copyright: Copyright 2004 Scott James Remnant +License: GPL-2+ + +Files: src/* +Copyright: Copyright 2005 Boris Mikhaylov +License: MIT + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Files: build-aux/* +Copyright: Copyright 1996-2010 Free Software Foundation, Inc. +License: GPL-2+ + +Files: build-aux/install-sh +Copyright: Copyright 1994 X Consortium +License: MIT+FSF-public + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN + AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- + TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + . + Except as contained in this notice, the name of the X Consortium shall not + be used in advertising or otherwise to promote the sale, use or other deal- + ings in this Software without prior written authorization from the X Consor- + tium. + . + FSF changes to this file are in the public domain. + +Files: configure +Copyright: 1992-2010 Free Software Foundation, Inc. +License: FSF-unlimited + This configure script is free software; the Free Software Foundation + gives unlimited permission to copy, distribute and modify it. + +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 full text of the GNU General Public License + version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. + +License: GPL-3+ + 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 3 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, see . + . + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. diff --git a/debian/libbs2b-dev.install b/debian/libbs2b-dev.install new file mode 100644 index 0000000..76f28fa --- /dev/null +++ b/debian/libbs2b-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/debian/libbs2b0.install b/debian/libbs2b0.install new file mode 100644 index 0000000..3ddde58 --- /dev/null +++ b/debian/libbs2b0.install @@ -0,0 +1 @@ +usr/lib/*/lib*.so.* diff --git a/debian/patches/fix-format-security-warning.diff b/debian/patches/fix-format-security-warning.diff new file mode 100644 index 0000000..20b5a43 --- /dev/null +++ b/debian/patches/fix-format-security-warning.diff @@ -0,0 +1,21 @@ +Description: Apply "format security" warning/error fix from Ilya Barygin. + I don't think it will actually cause a security issue in this context and + i'm not sure if it will cause a FTBFS in debian (apparently it didn't back + in 2011) but it's certainly horrible coding practice to pass a string that + is not explicitly intended to be a format string to the first parameter of + a printf so may as well fix it. (Closes: #646327) +Author: Ilya Barygin +Reviewed-by: Peter Michael Green +Bug-Debian: https://bugs.debian.org/646327 + +--- libbs2b-3.1.0+dfsg.orig/src/bs2bconvert.c ++++ libbs2b-3.1.0+dfsg/src/bs2bconvert.c +@@ -153,7 +153,7 @@ int main( int argc, char *argv[] ) + if( ( infile = sf_open( infilename, SFM_READ, &sfinfo ) ) == NULL ) + { + printf( "Not able to open input file %s.\n", infilename ); +- printf( sf_strerror( NULL ) ); ++ printf( "%s", sf_strerror( NULL ) ); + return 1; + } + diff --git a/debian/patches/missing_math_lib.patch b/debian/patches/missing_math_lib.patch new file mode 100644 index 0000000..3bd411f --- /dev/null +++ b/debian/patches/missing_math_lib.patch @@ -0,0 +1,29 @@ +Index: libbs2b-3.1.0+dfsg/src/Makefile.am +=================================================================== +--- libbs2b-3.1.0+dfsg.orig/src/Makefile.am 2009-03-20 10:13:53.000000000 -0400 ++++ libbs2b-3.1.0+dfsg/src/Makefile.am 2014-01-02 11:28:11.433565170 -0500 +@@ -18,7 +18,10 @@ + $(bs2b_HEADERS) + + libbs2b_la_LDFLAGS = \ +- -lm -version-info 0:0:0 ++ -version-info 0:0:0 ++ ++libbs2b_la_LIBADD = \ ++ -lm + + libbs2b_la_SOURCES = \ + bs2b.c \ +Index: libbs2b-3.1.0+dfsg/configure.ac +=================================================================== +--- libbs2b-3.1.0+dfsg.orig/configure.ac 2009-06-04 14:17:02.000000000 -0400 ++++ libbs2b-3.1.0+dfsg/configure.ac 2014-01-02 11:39:23.214145269 -0500 +@@ -5,7 +5,7 @@ + AC_INIT([libbs2b], [3.1.0], [boris_mikhaylov@users.sourceforge.net]) + AC_CONFIG_AUX_DIR([build-aux]) + AM_INIT_AUTOMAKE([1.10.1 -Wall foreign subdir-objects +- dist-zip dist-bzip2 dist-lzma]) ++ dist-zip dist-bzip2]) + AC_CONFIG_SRCDIR([src/bs2b.h]) + + # Checks for programs. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6da06b5 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +fix-format-security-warning.diff +missing_math_lib.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ff445e4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +LDFLAGS += -Wl,--as-needed + +%: + dh $@ --parallel --with autoreconf + + +PROJECT="bs2b/libbs2b" +PACKAGE=libbs2b +VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)+.*/\1/p') +TARBALL=$(PACKAGE)_$(VERSION).orig.tar.gz + + +get-orig-source: + wget -c http://downloads.sourceforge.net/project/$(PROJECT)/$(VERSION)/$(PACKAGE)-$(VERSION).tar.gz + tar zxf $(PACKAGE)-$(VERSION).tar.gz + find $(PACKAGE)-$(VERSION)/win32/* -type d -exec rm -rf {} + + mv $(PACKAGE)-$(VERSION) $(PACKAGE)_$(VERSION)+dfsg.orig + tar zcf ../$(PACKAGE)_$(VERSION)+dfsg.orig.tar.gz $(PACKAGE)_$(VERSION)+dfsg.orig + rm -r $(PACKAGE)_$(VERSION)+dfsg.orig $(PACKAGE)-$(VERSION).tar.gz + +override_dh_auto_configure: + dh_auto_configure -- --libdir="\$${prefix}/lib/$(DEB_HOST_MULTIARCH)" + +override_dh_auto_clean: + dh_auto_clean + rm -f config.log 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/watch b/debian/watch new file mode 100644 index 0000000..bc3177c --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts=dversionmangle=s/\+dfsg$// \ +http://sf.net/bs2b/libbs2b-(.*)\.tar\.bz2