commit 41a9e577ba179d16a7e2a5d474a934d9ed619494 Author: Adrian Schröter Date: Mon Oct 14 14:50:16 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 libbs2b revision 7de6eb61713e2b9475cc3ee962e6957b diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..6be87ce --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libbs2b0 diff --git a/libbs2b-3.1.0.tar.bz2 b/libbs2b-3.1.0.tar.bz2 new file mode 100644 index 0000000..0451d37 --- /dev/null +++ b/libbs2b-3.1.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4799974becdeeedf0db00115bc63f60ea3fe4b25f1dfdb6903505839a720e46f +size 606283 diff --git a/libbs2b-security.patch b/libbs2b-security.patch new file mode 100644 index 0000000..ca6dbd7 --- /dev/null +++ b/libbs2b-security.patch @@ -0,0 +1,11 @@ +--- libbs2b-3.1.0/src/bs2bconvert.c.orig 2014-05-20 23:09:11.975876646 +0100 ++++ libbs2b-3.1.0/src/bs2bconvert.c 2014-05-20 23:14:06.047076693 +0100 +@@ -153,7 +153,7 @@ + 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/libbs2b.changes b/libbs2b.changes new file mode 100644 index 0000000..b44fa9e --- /dev/null +++ b/libbs2b.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Wed Jun 15 13:55:43 UTC 2022 - Callum Farmer + +- Remove bad %defattr - not needed and causes SHLIB non-executable + rpmlint error +- Use %autosetup + +------------------------------------------------------------------- +Tue Apr 19 20:34:01 UTC 2022 - Dirk Müller + +- add libbs2b-security.patch to prevent format-security issues +- spec-cleaner fixes + +------------------------------------------------------------------- +Thu Aug 18 09:35:10 UTC 2016 - zaitor@opensuse.org + +- Add baselibs.conf to build 32-bit support. Also add to sources. + +------------------------------------------------------------------- +Wed Dec 16 08:52:37 UTC 2015 - olaf@aepfle.de + +- Add BuildRoot: for SLE_11 + +------------------------------------------------------------------- +Tue Jul 20 13:01:18 UTC 2010 - reddwarf@opensuse.org + +- Initial package + diff --git a/libbs2b.spec b/libbs2b.spec new file mode 100644 index 0000000..6306cab --- /dev/null +++ b/libbs2b.spec @@ -0,0 +1,94 @@ +# +# spec file for package libbs2b +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define soname 0 +Name: libbs2b +Version: 3.1.0 +Release: 0 +Summary: The Bauer stereophonic-to-binaural DSP library +License: MIT +Group: System/Libraries +URL: http://bs2b.sourceforge.net/ +Source0: https://downloads.sourceforge.net/project/bs2b/libbs2b/%{version}/libbs2b-%{version}.tar.bz2 +Patch0: libbs2b-security.patch +Source99: baselibs.conf +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: pkgconfig(sndfile) + +%description +The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed to +improve headphone listening of stereo audio records. Recommended for headphone +prolonged listening to disable superstereo fatigue without essential +distortions. + +%package -n libbs2b%{soname} +Summary: The Bauer stereophonic-to-binaural DSP library +Group: System/Libraries + +%description -n libbs2b%{soname} +The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed to +improve headphone listening of stereo audio records. Recommended for headphone +prolonged listening to disable superstereo fatigue without essential +distortions. + +%package -n libbs2b-devel +Summary: Development files for libbs2b +Group: Development/Libraries/C and C++ +Requires: libbs2b%{soname} = %{version} + +%description -n libbs2b-devel +Headers and libraries to program against libbs2b. + +%package -n bs2b-tools +Summary: Tools to use the Bauer stereophonic-to-binaural DSP +Group: Productivity/Multimedia/Sound/Utilities + +%description -n bs2b-tools +Tools (bs2bconvert and bs2bstream) to use the Bauer stereophonic-to-binaural +DSP. + +%prep +%autosetup -p1 + +%build +%configure --disable-static +%make_build + +%install +%make_install +rm -f '%{buildroot}%{_libdir}/libbs2b.la' + +%post -n libbs2b%{soname} -p /sbin/ldconfig +%postun -n libbs2b%{soname} -p /sbin/ldconfig + +%files -n libbs2b%{soname} +%license COPYING +%doc AUTHORS ChangeLog README +%{_libdir}/libbs2b.so.%{soname}* + +%files -n libbs2b-devel +%{_libdir}/libbs2b.so +%{_includedir}/bs2b +%{_libdir}/pkgconfig/libbs2b.pc + +%files -n bs2b-tools +%{_bindir}/bs2bconvert +%{_bindir}/bs2bstream + +%changelog