Initial import for libmysofa

epel9
Nicolas Chauvet 5 years ago
parent e367e4a317
commit 9059f07e45

1
.gitignore vendored

@ -0,0 +1 @@
libmysofa-*.tar.gz

@ -0,0 +1,93 @@
Name: libmysofa
Version: 1.1
Release: 1%{?dist}
Summary: C functions for reading HRTFs
License: BSD
URL: https://github.com/hoene/libmysofa
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# See https://github.com/hoene/libmysofa/pull/127
Patch0: libmysofa-no_static.patch
BuildRequires: cmake3
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: pkgconfig(cunit)
BuildRequires: pkgconfig(zlib)
# for tests
BuildRequires: nodejs
%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.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n mysofa
Summary: Tools for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n mysofa
Tools for %{name}.
%prep
%autosetup -p1
%build
mkdir -p build
cd build
%cmake3 \
-DBUILD_STATIC_LIBS=OFF \
-DCODE_COVERAGE=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
..
%make_build
%install
cd build
%make_install
%check
cd build
make test
%ldconfig_scriptlets
%files
%license LICENSE
%doc README.md
%{_libdir}/libmysofa.so.1*
%files -n mysofa
%{_bindir}/mysofa2json
%dir %{_datadir}/libmysofa
%{_datadir}/libmysofa/default.sofa
%{_datadir}/libmysofa/MIT_KEMAR_normal_pinna.sofa
%files devel
%doc CODE_OF_CONDUCT.md
%{_includedir}/mysofa.h
%{_libdir}/libmysofa.so
%{_libdir}/pkgconfig/libmysofa.pc
%changelog
* Mon Jun 29 2020 Nicolas Chauvet <kwizart@gmail.com> - 1.1-1
- Update to 1.1
* Mon Apr 13 2020 Nicolas Chauvet <kwizart@gmail.com> - 1.0-1
- Initial spec file

@ -0,0 +1 @@
SHA512 (libmysofa-1.1.tar.gz) = 8feafbf447f21f3ef5a283f5f494a647dd5db47cc43af4cc26efeae9f8684c93f5aa1131d8c5570d1d7811c3e3b08763fabdfad2beff0858eeb3cb78dda22332
Loading…
Cancel
Save