diff --git a/libbs2b-3.1.0.tar.lzma b/libbs2b-3.1.0.tar.lzma new file mode 100644 index 0000000..eaeadf5 Binary files /dev/null and b/libbs2b-3.1.0.tar.lzma differ 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.spec b/libbs2b.spec new file mode 100644 index 0000000..b59c45d --- /dev/null +++ b/libbs2b.spec @@ -0,0 +1,69 @@ +Name: libbs2b +Version: 3.1.0 +Release: 22 +Summary: Bauer stereophonic-to-binaural DSP +License: Copyright only +URL: http://bs2b.sourceforge.net/ + +Source0: http://downloads.sourceforge.net/project/bs2b/libbs2b/%{version}/libbs2b-%{version}.tar.lzma +Patch0: libbs2b-security.patch + +BuildRequires: gcc-c++ autoconf automake libtool libsndfile-devel + +%description +The Bauer stereophonic-to-binaural DSP (bs2b) is designed to improve headphone listening of stereo +audio records. + +%package devel +Summary: Development files for libbs2b +Requires: libbs2b = %{version}-%{release} pkgconfig + +%description devel +%{summary} + +%package_help + + +%prep +%autosetup -n %{name}-%{version} -p1 + +sed -i -e 's/lzma/xz/g' configure.ac +autoreconf -vif + + +%build +%configure +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%make_build V=1 + + +%install +%make_install +%delete_la_and_a + + +%files +%defattr(-,root,root) +%doc AUTHORS README +%license COPYING +%{_bindir}/* +%{_libdir}/%{name}.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/libbs2b.so +%{_libdir}/pkgconfig/libbs2b.pc + +%files help +%defattr(-,root,root) +%doc ChangeLog + + +%ldconfig_scriptlets + + +%changelog +* Wed Dec 4 2019 openEuler Buildteam - 3.1.0-22 +- Package init \ No newline at end of file