]>
Commit | Line | Data |
---|---|---|
4e090bae JB |
1 | Summary: Library to read AES SOFA files |
2 | Summary(pl.UTF-8): Biblioteka do odczytu plików AES SOFA | |
3 | Name: libmysofa | |
2910ba6f | 4 | Version: 1.1 |
1fa3362c | 5 | Release: 1 |
4e090bae JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/hoene/libmysofa/releases | |
1fa3362c | 9 | Source0: https://github.com/hoene/libmysofa/archive/v%{version}/%{name}-%{version}.tar.gz |
2910ba6f | 10 | # Source0-md5: 19f4e4f46ed7724fd50e76772dbaa0bc |
4e090bae JB |
11 | URL: https://github.com/hoene/libmysofa |
12 | BuildRequires: CUnit | |
13 | BuildRequires: cmake >= 2.8 | |
14 | BuildRequires: zlib-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | This is a simple set of C functions to read AES SOFA files, if they | |
19 | contain HRTFs stored according to the AES69-2015 standard | |
20 | <http://www.aes.org/publications/standards/search.cfm?docID=99>. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Prosty zbiór funkcji C do odczytu plików AES SOFA, zawierających dane | |
24 | HRTF zapisane zgodnie ze standardem AES69-2015 | |
25 | <http://www.aes.org/publications/standards/search.cfm?docID=99>. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for libmysofa library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmysofa | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Header files for libmysofa library. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Pliki nagłówkowe biblioteki libmysofa. | |
38 | ||
39 | %package static | |
40 | Summary: Static libmysofa library | |
41 | Summary(pl.UTF-8): Statyczna biblioteka libmysofa | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static libmysofa library. | |
47 | ||
48 | %description static -l pl.UTF-8 | |
49 | Statyczna biblioteka libmysofa. | |
50 | ||
51 | %prep | |
1fa3362c | 52 | %setup -q |
4e090bae JB |
53 | |
54 | %build | |
55 | install -d build | |
56 | cd build | |
92e970e3 JP |
57 | %cmake .. \ |
58 | -DCODE_COVERAGE:BOOL=OFF | |
4e090bae JB |
59 | |
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} -C build install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %post -p /sbin/ldconfig | |
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc LICENSE README.md | |
77 | %attr(755,root,root) %{_bindir}/mysofa2json | |
78 | %attr(755,root,root) %{_libdir}/libmysofa.so.*.*.* | |
1fa3362c | 79 | %attr(755,root,root) %ghost %{_libdir}/libmysofa.so.1 |
4e090bae JB |
80 | %{_datadir}/libmysofa |
81 | ||
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libmysofa.so | |
85 | %{_includedir}/mysofa.h | |
728809c3 | 86 | %{_pkgconfigdir}/libmysofa.pc |
4e090bae JB |
87 | |
88 | %files static | |
89 | %defattr(644,root,root,755) | |
90 | %{_libdir}/libmysofa.a |