]>
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 | |
8 | Version: 1.2 | |
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 | |
16 | # Source0-md5: 359b6088c38524aae17822856b1bd219 | |
17 | URL: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint | |
18 | BuildRequires: cmake >= 3.0 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | BroadVoice16 floating point codec. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for bv16 library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bv16 | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Header files for bv16 library. | |
35 | ||
36 | %description devel -l pl.UTF-8 | |
37 | Pliki nagłówkowe biblioteki bv16. | |
38 | ||
39 | %package static | |
40 | Summary: Static bv16 library | |
41 | Summary(pl.UTF-8): Statyczna biblioteka bv16 | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static bv16 library. | |
47 | ||
48 | %description static -l pl.UTF-8 | |
49 | Statyczna biblioteka bv16. | |
50 | ||
51 | %prep | |
52 | %setup -q | |
53 | ||
54 | %build | |
55 | install -d build | |
56 | cd build | |
57 | %cmake .. \ | |
58 | %{!?with_static_libs:-DENABLE_STATIC=OFF} | |
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 | %attr(755,root,root) %{_bindir}/BroadVoice16 | |
77 | %attr(755,root,root) %{_libdir}/libbv16.so | |
78 | ||
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %{_includedir}/bv16-floatingpoint | |
82 | ||
83 | %if %{with static_libs} | |
84 | %files static | |
85 | %defattr(644,root,root,755) | |
86 | %{_libdir}/libbv16.a | |
87 | %endif |