]>
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 | |
6f233324 JB |
4 | Version: 1.2 |
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 |
6f233324 | 10 | # Source0-md5: 706810632cc8207bde9fbfd4b7ec4e4b |
4e090bae JB |
11 | URL: https://github.com/hoene/libmysofa |
12 | BuildRequires: CUnit | |
6f233324 | 13 | BuildRequires: cmake >= 2.8.12 |
4e090bae JB |
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} | |
6f233324 | 32 | Requires: zlib-devel |
4e090bae JB |
33 | |
34 | %description devel | |
35 | Header files for libmysofa library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki libmysofa. | |
39 | ||
40 | %package static | |
41 | Summary: Static libmysofa library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka libmysofa | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static libmysofa library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka libmysofa. | |
51 | ||
52 | %prep | |
1fa3362c | 53 | %setup -q |
4e090bae JB |
54 | |
55 | %build | |
56 | install -d build | |
57 | cd build | |
92e970e3 JP |
58 | %cmake .. \ |
59 | -DCODE_COVERAGE:BOOL=OFF | |
4e090bae JB |
60 | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} -C build install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc LICENSE README.md | |
78 | %attr(755,root,root) %{_bindir}/mysofa2json | |
79 | %attr(755,root,root) %{_libdir}/libmysofa.so.*.*.* | |
1fa3362c | 80 | %attr(755,root,root) %ghost %{_libdir}/libmysofa.so.1 |
4e090bae JB |
81 | %{_datadir}/libmysofa |
82 | ||
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) %{_libdir}/libmysofa.so | |
86 | %{_includedir}/mysofa.h | |
728809c3 | 87 | %{_pkgconfigdir}/libmysofa.pc |
4e090bae JB |
88 | |
89 | %files static | |
90 | %defattr(644,root,root,755) | |
91 | %{_libdir}/libmysofa.a |