3 %bcond_without static_libs # static library
5 Summary: Open source implementation of ZRTP keys exchange protocol
6 Summary(pl.UTF-8): Mająca otwarte źródła implementacja protokołu wymiany kluczy ZRTP
12 Source0: http://linphone.org/releases/sources/bzrtp/%{name}-%{version}.tar.gz
13 # Source0-md5: b52fa670fb319022166cb10d641da4e6
14 URL: http://www.linphone.org/
16 BuildRequires: autoconf >= 2.63
17 BuildRequires: automake
18 BuildRequires: libtool >= 2:2
19 BuildRequires: libxml2-devel >= 2.0
20 BuildRequires: polarssl-devel
21 BuildRequires: pkgconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 bzrtp is an opensource implementation of ZRTP keys exchange protocol.
26 The library written in C 89 is fully portable and can be executed on
27 many platforms including both ARM processor and x86.
29 %description -l pl.UTF-8
30 bzrtp to mająca otwarte źródła implementacja protokołu wymiany kluczy
31 ZRTP. Napisana w C 89 biblioteka jest w pełni przenośna i może być
32 wykonywana na wielu platformach, w tym ARM oraz x86.
35 Summary: Header file for bzrtp library
36 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bzrtp
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header file for bzrtp library.
43 %description devel -l pl.UTF-8
44 Plik nagłówkowy biblioteki bzrtp.
47 Summary: Static bzrtp library
48 Summary(pl.UTF-8): Statyczna biblioteka bzrtp
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
55 %description static -l pl.UTF-8
56 Statyczna biblioteka bzrtp.
62 # rebuild ac/am/lt for as-needed to work
68 --disable-silent-rules \
69 %{?with_static_libs:--enable-static}
74 rm -rf $RPM_BUILD_ROOT
77 DESTDIR=$RPM_BUILD_ROOT
79 # obsoleted by pkg-config
80 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbzrtp.la
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
90 %doc AUTHORS NEWS README
91 %attr(755,root,root) %{_libdir}/libbzrtp.so.*.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libbzrtp.so.0
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/libbzrtp.so
98 %{_pkgconfigdir}/libbzrtp.pc
100 %if %{with static_libs}
102 %defattr(644,root,root,755)
103 %{_libdir}/libbzrtp.a