]> git.pld-linux.org Git - packages/bv16-floatingpoint.git/blame - bv16-floatingpoint.spec
- updated to 2.1
[packages/bv16-floatingpoint.git] / bv16-floatingpoint.spec
CommitLineData
0f45d230
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4#
5Summary: BroadVoice16 floating point codec
6Summary(pl.UTF-8): Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową
7Name: bv16-floatingpoint
d906e419 8Version: 2.1
0f45d230
JB
9Release: 1
10License: BSD
11Group: 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
15Source0: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/archive/%{version}/%{name}-%{version}.tar.bz2
d906e419 16# Source0-md5: b28dd02e633cd71136c32cacc2797566
0f45d230
JB
17URL: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint
18BuildRequires: cmake >= 3.0
d906e419 19BuildRequires: rpmbuild(macros) >= 1.605
0f45d230
JB
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23BroadVoice16 floating point codec.
24
25%description -l pl.UTF-8
26Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową.
27
28%package devel
29Summary: Header files for bv16 library
30Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bv16
31Group: Development/Libraries
32Requires: %{name} = %{version}-%{release}
33
34%description devel
35Header files for bv16 library.
36
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki bv16.
39
40%package static
41Summary: Static bv16 library
42Summary(pl.UTF-8): Statyczna biblioteka bv16
43Group: Development/Libraries
44Requires: %{name}-devel = %{version}-%{release}
45
46%description static
47Static bv16 library.
48
49%description static -l pl.UTF-8
50Statyczna biblioteka bv16.
51
52%prep
53%setup -q
54
55%build
56install -d build
57cd build
58%cmake .. \
d906e419
JB
59 %{!?with_static_libs:-DENABLE_STATIC=OFF} \
60 -DENABLE_TOOLS=ON \
0f45d230
JB
61
62%{__make}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} -C build install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70%clean
71rm -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.781094 seconds and 4 git commands to generate.