]> git.pld-linux.org Git - SPECS.git/blob - bv16-floatingpoint.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / bv16-floatingpoint.spec
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 Patch0:         %{name}-libdir.patch
18 URL:            https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint
19 BuildRequires:  cmake >= 3.0
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 %patch0 -p1
55
56 %build
57 install -d build
58 cd build
59 %cmake .. \
60         %{!?with_static_libs:-DENABLE_STATIC=OFF}
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
This page took 0.658033 seconds and 3 git commands to generate.