evolution-ews/evolution-ews.spec

104 lines
3.8 KiB
RPMSpec

#
# spec file for package evolution-ews
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# _version needs to be %{version} stripped to major.minor.micro only...
%define _version %(echo %{version} | grep -E -o '[0-9]+\.[0-9]+\.[0-9]+')
Name: evolution-ews
Version: 3.30.2
Release: 0
Summary: Exchange Connector for Evolution, compatible with Exchange 2007 and later
License: LGPL-2.1-only
Group: Productivity/Networking/Email/Clients
URL: https://wiki.gnome.org/Apps/Evolution
Source0: https://download.gnome.org/sources/evolution-ews/3.30/%{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(camel-1.2) >= %{_version}
BuildRequires: pkgconfig(evolution-calendar-3.0) >= %{_version}
BuildRequires: pkgconfig(evolution-data-server-1.2) >= %{_version}
BuildRequires: pkgconfig(evolution-mail-3.0) >= %{_version}
BuildRequires: pkgconfig(evolution-shell-3.0) >= %{_version}
BuildRequires: pkgconfig(glib-2.0) >= 2.46
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10
BuildRequires: pkgconfig(libebackend-1.2) >= %{_version}
BuildRequires: pkgconfig(libebook-1.2) >= %{_version}
BuildRequires: pkgconfig(libecal-1.2) >= %{_version}
BuildRequires: pkgconfig(libedata-book-1.2) >= %{_version}
BuildRequires: pkgconfig(libedata-cal-1.2) >= %{_version}
BuildRequires: pkgconfig(libedataserver-1.2) >= %{_version}
BuildRequires: pkgconfig(libemail-engine) >= %{_version}
BuildRequires: pkgconfig(libical)
BuildRequires: pkgconfig(libmspack) >= 0.4
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
%description
The EWS Exchange Connector for Evolution provides a Exchange backend
from evolution-data-server as well as plugins for Evolution to access
Exchange features.
The EWS Exchange Connector is using the Exchange Web Services interface
and is therefore compatible with Exchange 2007 and later.
Provides exchange connectivity for exchange server 2007 and later using
exchange web services protocol.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
# We need to build directly with the 'final rpath':
# cmake is too stupid to get it right otherwise
%cmake \
-DCMAKE_SKIP_RPATH=OFF \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
%make_jobs
%install
%cmake_install
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%files
%license COPYING
%doc README
%{_libdir}/evolution-data-server/addressbook-backends/libebookbackendews.so
%{_libdir}/evolution-data-server/calendar-backends/libecalbackendews.so
%{_libdir}/evolution-data-server/camel-providers/libcamelews.so
%{_libdir}/evolution-data-server/camel-providers/libcamelews.urls
%{_libdir}/evolution-data-server/registry-modules/module-ews-backend.so
%{_libdir}/evolution/modules/module-ews-configuration.so
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libcamelews-priv.so
%{_libdir}/%{name}/libevolution-ews.so
%{_datadir}/evolution/errors/module-ews-configuration.error
%dir %{_datadir}/evolution-data-server/ews
%{_datadir}/evolution-data-server/ews/windowsZones.xml
%{_datadir}/metainfo/org.gnome.Evolution-ews.metainfo.xml
%files lang -f evolution-ews.lang
%changelog