Build with phonenumber support

Closes https://src.fedoraproject.org/rpms/evolution-data-server/pull-request/2
This commit is contained in:
Nikhil Jha 2020-04-01 09:59:31 +02:00 committed by Milan Crha
parent d5766b0384
commit 5e5f21926b

View File

@ -2,6 +2,7 @@
%define static_ldap 0
%define krb5_support 1
%define largefile_support 1
%global phonenum_support 1
# Coverity scan can override this to 0, to skip checking in gtk-doc generated code
%{!?with_docs: %global with_docs 1}
@ -37,7 +38,7 @@
Name: evolution-data-server
Version: 3.36.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Backend data server for Evolution
License: LGPLv2+
URL: https://wiki.gnome.org/Apps/Evolution
@ -109,6 +110,12 @@ BuildRequires: pkgconfig(openssl)
BuildRequires: krb5-devel >= 1.11
%endif
%if %{phonenum_support}
BuildRequires: libphonenumber-devel
BuildRequires: protobuf-devel
BuildRequires: boost-devel
%endif
%description
The %{name} package provides a unified backend for programs that work
with contacts, tasks, and calendar information.
@ -214,6 +221,12 @@ fi
%define largefile_flags -DENABLE_LARGEFILE=OFF
%endif
%if %{phonenum_support}
%define phonenum_flags -DWITH_PHONENUMBER=ON
%else
%define phonenum_flags -DWITH_PHONENUMBER=OFF
%endif
%define ssl_flags -DENABLE_SMIME=ON
%if %{with_docs}
@ -245,7 +258,7 @@ export CFLAGS="$RPM_OPT_FLAGS -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et -Wno-d
-DDBUS_SERVICES_PREFIX=%{?_eds_dbus_services_prefix} \
%endif
%ldap_flags %krb5_flags %ssl_flags \
%largefile_flags %gtkdoc_flags \
%largefile_flags %gtkdoc_flags %phonenum_flags \
..
make %{?_smp_mflags}
@ -460,6 +473,9 @@ find $RPM_BUILD_ROOT -name '*.so.*' -exec chmod +x {} \;
%{_datadir}/installed-tests
%changelog
* Wed Apr 01 2020 Nikhil Jha <hi@nikhiljha.com> - 3.36.1-3
- Build with phonenumber support
* Mon Mar 30 2020 Milan Crha <mcrha@redhat.com> - 3.36.1-2
- Remove libdb dependency