commit 4e090bae333f0fff76b67e1feaec481cc389c5bb
Author: Jakub Bogusz <[email protected]>
Date:   Mon Feb 25 21:10:51 2019 +0100

    - new

 libmysofa-libdir.patch | 11 ++++++
 libmysofa.spec         | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 101 insertions(+)
---
diff --git a/libmysofa.spec b/libmysofa.spec
new file mode 100644
index 0000000..511780a
--- /dev/null
+++ b/libmysofa.spec
@@ -0,0 +1,90 @@
+Summary:       Library to read AES SOFA files
+Summary(pl.UTF-8):     Biblioteka do odczytu plików AES SOFA
+Name:          libmysofa
+Version:       0.6
+Release:       1
+License:       BSD
+Group:         Libraries
+#Source0Download: https://github.com/hoene/libmysofa/releases
+Source0:       
https://github.com/hoene/libmysofa/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 9d595f890b93693a796835d43cf276ec
+Patch0:                %{name}-libdir.patch
+URL:           https://github.com/hoene/libmysofa
+BuildRequires: CUnit
+BuildRequires: cmake >= 2.8
+BuildRequires: zlib-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a simple set of C functions to read AES SOFA files, if they
+contain HRTFs stored according to the AES69-2015 standard
+<http://www.aes.org/publications/standards/search.cfm?docID=99>.
+
+%description -l pl.UTF-8
+Prosty zbiór funkcji C do odczytu plików AES SOFA, zawierających dane
+HRTF zapisane zgodnie ze standardem AES69-2015
+<http://www.aes.org/publications/standards/search.cfm?docID=99>.
+
+%package devel
+Summary:       Header files for libmysofa library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libmysofa
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for libmysofa library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libmysofa.
+
+%package static
+Summary:       Static libmysofa library
+Summary(pl.UTF-8):     Statyczna biblioteka libmysofa
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libmysofa library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libmysofa.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%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 LICENSE README.md
+%attr(755,root,root) %{_bindir}/mysofa2json
+%attr(755,root,root) %{_libdir}/libmysofa.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmysofa.so.0
+%{_datadir}/libmysofa
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmysofa.so
+%{_includedir}/mysofa.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmysofa.a
diff --git a/libmysofa-libdir.patch b/libmysofa-libdir.patch
new file mode 100644
index 0000000..5e65625
--- /dev/null
+++ b/libmysofa-libdir.patch
@@ -0,0 +1,11 @@
+--- libmysofa-0.6/src/CMakeLists.txt.orig      2017-07-11 13:36:33.000000000 
+0200
++++ libmysofa-0.6/src/CMakeLists.txt   2019-02-25 20:57:05.602899695 +0100
+@@ -62,7 +62,7 @@
+   GENERATE_EXPORT_HEADER(mysofa-shared BASE_NAME mysofa EXPORT_FILE_NAME 
${CMAKE_SOURCE_DIR}/src/hrtf/mysofa_export.h)
+   install(TARGETS mysofa-shared 
+     RUNTIME DESTINATION bin
+-    LIBRARY DESTINATION lib)
++    LIBRARY DESTINATION lib${LIB_SUFFIX})
+ else()
+   GENERATE_EXPORT_HEADER(mysofa-static BASE_NAME mysofa EXPORT_FILE_NAME 
${CMAKE_SOURCE_DIR}/src/hrtf/mysofa_export.h)
+ endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libmysofa.git/commitdiff/4e090bae333f0fff76b67e1feaec481cc389c5bb

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to