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