1 # TODO: switch to mbledtls when 2.x is supported (mbed_ssl_init instead of ssl_init)
4 %bcond_without static_libs # static library
6 Summary: Open source implementation of ZRTP keys exchange protocol
7 Summary(pl.UTF-8): Mająca otwarte źródła implementacja protokołu wymiany kluczy ZRTP
13 Source0: http://linphone.org/releases/sources/bzrtp/%{name}-%{version}.tar.gz
14 # Source0-md5: e77a6b074bb810a02cc77a1df776fb79
15 URL: http://www.linphone.org/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake
19 BuildRequires: bctoolbox-devel
20 BuildRequires: libtool >= 2:2
21 BuildRequires: libxml2-devel >= 2.0
22 BuildRequires: polarssl-devel
23 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 bzrtp is an opensource implementation of ZRTP keys exchange protocol.
28 The library written in C 89 is fully portable and can be executed on
29 many platforms including both ARM processor and x86.
31 %description -l pl.UTF-8
32 bzrtp to mająca otwarte źródła implementacja protokołu wymiany kluczy
33 ZRTP. Napisana w C 89 biblioteka jest w pełni przenośna i może być
34 wykonywana na wielu platformach, w tym ARM oraz x86.
37 Summary: Header file for bzrtp library
38 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bzrtp
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Header file for bzrtp library.
45 %description devel -l pl.UTF-8
46 Plik nagłówkowy biblioteki bzrtp.
49 Summary: Static bzrtp library
50 Summary(pl.UTF-8): Statyczna biblioteka bzrtp
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
57 %description static -l pl.UTF-8
58 Statyczna biblioteka bzrtp.
64 # rebuild ac/am/lt for as-needed to work
70 CPPFLAGS="%{rpmcppflags} -Wno-error=cast-function-type" \
71 --disable-silent-rules \
72 %{?with_static_libs:--enable-static}
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
82 # obsoleted by pkg-config
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbzrtp.la
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS NEWS README.md
94 %attr(755,root,root) %{_libdir}/libbzrtp.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libbzrtp.so.0
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libbzrtp.so
101 %{_pkgconfigdir}/libbzrtp.pc
103 %if %{with static_libs}
105 %defattr(644,root,root,755)
106 %{_libdir}/libbzrtp.a