libbs2b/libbs2b.spec

69 lines
1.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-12-17 14:47:37 +08:00
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 <buildteam@openeuler.org> - 3.1.0-22
- Package init