From 867d29df9a319e72aed3471c61224420f021396e Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 23 Apr 2019 06:15:27 +0200 Subject: [PATCH] - updated dependencies, don't assume gcc>=8 --- bzrtp.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bzrtp.spec b/bzrtp.spec index d634a11..e081086 100644 --- a/bzrtp.spec +++ b/bzrtp.spec @@ -1,4 +1,3 @@ -# TODO: switch to mbledtls when 2.x is supported (mbed_ssl_init instead of ssl_init) # # Conditional build: %bcond_without static_libs # static library @@ -19,8 +18,9 @@ BuildRequires: automake BuildRequires: bctoolbox-devel BuildRequires: libtool >= 2:2 BuildRequires: libxml2-devel >= 2.0 -BuildRequires: polarssl-devel BuildRequires: pkgconfig +BuildRequires: sqlite3-devel >= 3.6.0 +Requires: sqlite3 >= 3.6.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -66,8 +66,10 @@ Statyczna biblioteka bzrtp. %{__aclocal} -I m4 %{__autoconf} %{__automake} +%if "%{cc_version}" >= "8.0" +CPPFLAGS="%{rpmcppflags} -Wno-error=cast-function-type" +%endif %configure \ - CPPFLAGS="%{rpmcppflags} -Wno-error=cast-function-type" \ --disable-silent-rules \ %{?with_static_libs:--enable-static} -- 2.43.0