From: Jakub Bogusz Date: Sat, 10 Jul 2021 13:46:27 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/bv16-floatingpoint-1.2-1~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0f45d230c2542dd6ebaa56b6203fca8094787fde;p=packages%2Fbv16-floatingpoint.git - new --- 0f45d230c2542dd6ebaa56b6203fca8094787fde diff --git a/bv16-floatingpoint.spec b/bv16-floatingpoint.spec new file mode 100644 index 0000000..24cbbbc --- /dev/null +++ b/bv16-floatingpoint.spec @@ -0,0 +1,87 @@ +# +# Conditional build: +%bcond_without static_libs # static library +# +Summary: BroadVoice16 floating point codec +Summary(pl.UTF-8): Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową +Name: bv16-floatingpoint +Version: 1.2 +Release: 1 +License: BSD +Group: Libraries +# original sources: https://docs.broadcom.com/docs/12358447 (found via https://www.broadcom.com/site-search?q=broadvoice) +# linphone added cmake build +#Source0Download: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/tags +Source0: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint/-/archive/%{version}/%{name}-%{version}.tar.bz2 +# Source0-md5: 359b6088c38524aae17822856b1bd219 +URL: https://gitlab.linphone.org/BC/public/external/bv16-floatingpoint +BuildRequires: cmake >= 3.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +BroadVoice16 floating point codec. + +%description -l pl.UTF-8 +Kodek BroadVoice16 z arytmetyką zmiennoprzecinkową. + +%package devel +Summary: Header files for bv16 library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bv16 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for bv16 library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki bv16. + +%package static +Summary: Static bv16 library +Summary(pl.UTF-8): Statyczna biblioteka bv16 +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static bv16 library. + +%description static -l pl.UTF-8 +Statyczna biblioteka bv16. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake .. \ + %{!?with_static_libs:-DENABLE_STATIC=OFF} + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/BroadVoice16 +%attr(755,root,root) %{_libdir}/libbv16.so + +%files devel +%defattr(644,root,root,755) +%{_includedir}/bv16-floatingpoint + +%if %{with static_libs} +%files static +%defattr(644,root,root,755) +%{_libdir}/libbv16.a +%endif