]> git.pld-linux.org Git - packages/bv16-floatingpoint.git/blame - bv16-floatingpoint.spec
- new
[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
8Version: 1.2
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
16# Source0-md5: 359b6088c38524aae17822856b1bd219
17URL: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint
18BuildRequires: cmake >= 3.0
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22BroadVoice16 floating point codec.
23
24%description -l pl.UTF-8
25Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową.
26
27%package devel
28Summary: Header files for bv16 library
29Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bv16
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
32
33%description devel
34Header files for bv16 library.
35
36%description devel -l pl.UTF-8
37Pliki nagłówkowe biblioteki bv16.
38
39%package static
40Summary: Static bv16 library
41Summary(pl.UTF-8): Statyczna biblioteka bv16
42Group: Development/Libraries
43Requires: %{name}-devel = %{version}-%{release}
44
45%description static
46Static bv16 library.
47
48%description static -l pl.UTF-8
49Statyczna biblioteka bv16.
50
51%prep
52%setup -q
53
54%build
55install -d build
56cd build
57%cmake .. \
58 %{!?with_static_libs:-DENABLE_STATIC=OFF}
59
60%{__make}
61
62%install
63rm -rf $RPM_BUILD_ROOT
64
65%{__make} -C build install \
66 DESTDIR=$RPM_BUILD_ROOT
67
68%clean
69rm -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
This page took 0.125973 seconds and 4 git commands to generate.