]>
Commit | Line | Data |
---|---|---|
0f45d230 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
5 | Summary: BroadVoice16 floating point codec | |
6 | Summary(pl.UTF-8): Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową | |
7 | Name: bv16-floatingpoint | |
d906e419 | 8 | Version: 2.1 |
0f45d230 JB |
9 | Release: 1 |
10 | License: BSD | |
11 | Group: Libraries | |
12 | # original sources: https://docs.broadcom.com/docs/12358447 (found via https://www.broadcom.com/site-search?q=broadvoice) | |
13 | # linphone added cmake build | |
14 | #Source0Download: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/tags | |
15 | Source0: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/archive/%{version}/%{name}-%{version}.tar.bz2 | |
d906e419 | 16 | # Source0-md5: b28dd02e633cd71136c32cacc2797566 |
0f45d230 JB |
17 | URL: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint |
18 | BuildRequires: cmake >= 3.0 | |
d906e419 | 19 | BuildRequires: rpmbuild(macros) >= 1.605 |
0f45d230 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | BroadVoice16 floating point codec. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for bv16 library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bv16 | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for bv16 library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki bv16. | |
39 | ||
40 | %package static | |
41 | Summary: Static bv16 library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka bv16 | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static bv16 library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka bv16. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | %cmake .. \ | |
d906e419 JB |
59 | %{!?with_static_libs:-DENABLE_STATIC=OFF} \ |
60 | -DENABLE_TOOLS=ON \ | |
0f45d230 JB |
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 | %attr(755,root,root) %{_bindir}/BroadVoice16 | |
79 | %attr(755,root,root) %{_libdir}/libbv16.so | |
80 | ||
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %{_includedir}/bv16-floatingpoint | |
84 | ||
85 | %if %{with static_libs} | |
86 | %files static | |
87 | %defattr(644,root,root,755) | |
88 | %{_libdir}/libbv16.a | |
89 | %endif |