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 #Source0Download: https://gitlab.linphone.org/BC/public/bzrtp/tags
13 Source0: https://gitlab.linphone.org/BC/public/bzrtp/-/archive/%{version}/%{name}-%{version}.tar.bz2
14 # Source0-md5: 981738ec9161c2a4c5220605ed4cbb71
15 URL: http://www.linphone.org/
17 BuildRequires: autoconf >= 2.63
18 BuildRequires: automake
19 BuildRequires: bctoolbox-devel >= 4.4.0
20 BuildRequires: libtool >= 2:2
21 BuildRequires: libxml2-devel >= 2.0
22 BuildRequires: pkgconfig
23 BuildRequires: rpmbuild(macros) >= 1.748
24 BuildRequires: sqlite3-devel >= 3.6.0
25 Requires: bctoolbox >= 4.4.0
26 Requires: sqlite3 >= 3.6.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 bzrtp is an opensource implementation of ZRTP keys exchange protocol.
31 The library written in C 89 is fully portable and can be executed on
32 many platforms including both ARM processor and x86.
34 %description -l pl.UTF-8
35 bzrtp to mająca otwarte źródła implementacja protokołu wymiany kluczy
36 ZRTP. Napisana w C 89 biblioteka jest w pełni przenośna i może być
37 wykonywana na wielu platformach, w tym ARM oraz x86.
40 Summary: Header file for bzrtp library
41 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bzrtp
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
46 Header file for bzrtp library.
48 %description devel -l pl.UTF-8
49 Plik nagłówkowy biblioteki bzrtp.
52 Summary: Static bzrtp library
53 Summary(pl.UTF-8): Statyczna biblioteka bzrtp
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{version}-%{release}
60 %description static -l pl.UTF-8
61 Statyczna biblioteka bzrtp.
67 # rebuild ac/am/lt for as-needed to work
72 %if %{_ver_ge "%{cc_version}" "8.0"}
73 CPPFLAGS="%{rpmcppflags} -Wno-error=cast-function-type"
76 --disable-silent-rules \
77 %{?with_static_libs:--enable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbzrtp.la
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc CHANGELOG.md README.md
99 %attr(755,root,root) %{_libdir}/libbzrtp.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libbzrtp.so.0
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libbzrtp.so
106 %{_pkgconfigdir}/libbzrtp.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)
111 %{_libdir}/libbzrtp.a