[packages/spatialaudio] - new

qboosh qboosh at pld-linux.org
Sat Mar 16 21:43:34 CET 2019


commit 7eb238eaed1399e24bca7b0bf65b829bb0c5f89d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 16 21:49:18 2019 +0100

    - new

 spatialaudio-cmake.patch | 44 ++++++++++++++++++++++
 spatialaudio.spec        | 96 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 140 insertions(+)
---
diff --git a/spatialaudio.spec b/spatialaudio.spec
new file mode 100644
index 0000000..845481b
--- /dev/null
+++ b/spatialaudio.spec
@@ -0,0 +1,96 @@
+Summary:	Ambisonic encoding / decoding and binauralization library
+Summary(pl.UTF-8):	Biblioteka kodowania/dekodowania dźwięku sferycznego Ambisonic i binauralnego
+Name:		spatialaudio
+Version:	0.3.0
+Release:	1
+License:	LGPL v2.1+ or commercial
+Group:		Libraries
+#Source0Download: https://github.com/videolabs/libspatialaudio/releases
+Source0:	https://github.com/videolabs/libspatialaudio/releases/download/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	be4db966f6ce6dfeea1788025a7e0a2d
+Patch0:		%{name}-cmake.patch
+URL:		https://github.com/videolabs/libspatialaudio
+BuildRequires:	cmake >= 3.1
+BuildRequires:	libmysofa-devel
+BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libspatialaudio is an open-source and cross-platform C++ library for
+Ambisonic encoding and decoding, filtering and binaural rendering. It
+is targetted to render High-Order Ambisonic (HOA) and VR/3D audio
+samples in multiple environments, from headphones to classic
+loudspeakers. Its binaural rendering can be used for classical 5.1/7.1
+spatial channels as well as Ambisonics inputs.
+
+%description -l pl.UTF-8
+libspatialaudio to wieloplatformowa, mająca otwarte źródła biblioteka
+C++ do kodowania i dekodowania sferycznego Ambisonic oraz filtrowania
+i renderowania binauralnego. Celem jest renderowanie próbek
+dźwiękowych HOA (High-Order Ambisonic) i VR/3D w wielu środowiskach,
+od słuchawek do klasycznych głośników. Renderowanie binauralne może
+być używane do klasycznych kanałów przestrzennych 5.1/7.1, jak i
+wejść Ambisonics.
+
+%package devel
+Summary:	Header files for spatialaudio library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki spatialaudio
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	libmysofa-devel
+Requires:	libstdc++-devel >= 6:4.7
+Requires:	zlib-devel
+
+%description devel
+Header files for spatialaudio library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki spatialaudio.
+
+%package static
+Summary:	Static spatialaudio library
+Summary(pl.UTF-8):	Statyczna biblioteka spatialaudio
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static spatialaudio library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka spatialaudio.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%{__sed} -ne '1,/^===/ p' LICENSE > COPYING
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.md
+%attr(755,root,root) %{_libdir}/libspatialaudio.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libspatialaudio.so
+%{_includedir}/spatialaudio
+%{_pkgconfigdir}/spatialaudio.pc
diff --git a/spatialaudio-cmake.patch b/spatialaudio-cmake.patch
new file mode 100644
index 0000000..1d0de54
--- /dev/null
+++ b/spatialaudio-cmake.patch
@@ -0,0 +1,44 @@
+--- spatialaudio-0.3.0/cmake/spatialaudio.pc.cmake.orig	2017-07-20 15:04:58.000000000 +0200
++++ spatialaudio-0.3.0/cmake/spatialaudio.pc.cmake	2019-03-16 19:04:17.519588557 +0100
+@@ -1,5 +1,5 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=${prefix}/lib
++libdir=${prefix}/lib at LIB_SUFFIX@
+ includedir=${prefix}/include
+ 
+ Name: libspatialaudio
+--- spatialaudio-0.3.0/cmake/Modules/FindMySofa.cmake.orig	2017-07-19 16:26:19.000000000 +0200
++++ spatialaudio-0.3.0/cmake/Modules/FindMySofa.cmake	2019-03-16 19:04:50.299410973 +0100
+@@ -23,7 +23,7 @@
+ 
+ find_library(MYSOFA_LIBRARIES
+     NAMES libmysofa.a mysofa
+-    HINTS ${MYSOFA_ROOT_DIR}/lib
++    HINTS ${MYSOFA_ROOT_DIR}/lib${LIB_SUFFIX}
+ )
+ 
+ find_path(MYSOFA_INCLUDE_DIRS
+--- spatialaudio-0.3.0/CMakeLists.txt.orig	2017-07-20 22:08:19.000000000 +0200
++++ spatialaudio-0.3.0/CMakeLists.txt	2019-03-16 19:07:51.928427005 +0100
+@@ -67,7 +67,8 @@
+     include_directories(${MYSOFA_INCLUDE_DIRS})
+ endif(${MYSOFA_FOUND})
+ 
+-add_library(spatialaudio STATIC ${sources})
++add_library(spatialaudio ${sources})
++set_target_properties(spatialaudio PROPERTIES SOVERSION 0)
+ 
+ if(${MYSOFA_FOUND})
+     target_link_libraries(spatialaudio ${MYSOFA_LIBRARIES})
+@@ -93,9 +93,9 @@
+   @ONLY
+ )
+ 
+-install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib)
++install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION lib${LIB_SUFFIX} LIBRARY DESTINATION lib${LIB_SUFFIX})
+ install(FILES ${headers} DESTINATION include/spatialaudio)
+-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION lib/pkgconfig)
++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc" DESTINATION lib${LIB_SUFFIX}/pkgconfig)
+ install(FILES ${PROJECT_BINARY_DIR}/config.h DESTINATION include/spatialaudio)
+ 
+ #Tarballs generation
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/spatialaudio.git/commitdiff/7eb238eaed1399e24bca7b0bf65b829bb0c5f89d



More information about the pld-cvs-commit mailing list