Sync from SUSE:ALP:Source:Standard:1.0 libbs2b revision 7de6eb61713e2b9475cc3ee962e6957b

This commit is contained in:
Adrian Schröter 2024-10-14 14:50:16 +02:00
commit 41a9e577ba
6 changed files with 160 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

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

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libbs2b0

BIN
libbs2b-3.1.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

11
libbs2b-security.patch Normal file
View File

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

28
libbs2b.changes Normal file
View File

@ -0,0 +1,28 @@
-------------------------------------------------------------------
Wed Jun 15 13:55:43 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- 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 <dmueller@suse.com>
- 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

94
libbs2b.spec Normal file
View File

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