2011-10-14 14:16:37 +02:00
#
2011-11-28 09:25:53 +01:00
# spec file for package evolution-ews
2011-10-14 14:16:37 +02:00
#
2014-01-25 12:13:41 +01:00
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-10-14 14:16:37 +02:00
#
# 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 http://bugs.opensuse.org/
#
2012-02-23 13:19:05 +01:00
2011-10-14 14:16:37 +02:00
Name : evolution-ews
# This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in.
2014-04-03 22:36:36 +02:00
%define evolution_base_version 3.12
2014-12-16 11:16:30 +01:00
Version : 3.12.9
2011-12-21 06:10:53 +01:00
Release : 0
2011-10-14 14:51:15 +02:00
Summary : Exchange Connector for Evolution, compatible with Exchange 2007 and later
2011-12-21 06:10:53 +01:00
License : LGPL-2.1
2011-10-14 14:16:37 +02:00
Group : Productivity/Networking/Email/Clients
2011-12-21 06:10:53 +01:00
Url : http://projects.gnome.org/evolution/
2014-04-03 22:36:36 +02:00
Source : http://download.gnome.org/sources/evolution-ews/3.12/%{name} -%{version} .tar.xz
2014-12-16 11:16:30 +01:00
# PATCH-FIX-UPSTREAM evolution-ews-reuse-from-EmailSession.patch bgo#695754 badshah400@gmail.com -- Reuse existing ESourceRegistry from EMailSession, if possible; patch taken from upstream git
Patch0 : evolution-ews-reuse-from-EmailSession.patch
2011-10-14 14:16:37 +02:00
BuildRequires : fdupes
2011-10-14 14:51:15 +02:00
BuildRequires : intltool
2012-09-08 10:37:42 +02:00
BuildRequires : translation-update-upstream
2011-10-14 14:16:37 +02:00
BuildRequires : pkgconfig(evolution-data-server-1.2)
2013-07-08 23:15:36 +02:00
BuildRequires : pkgconfig(evolution-mail-3.0) >= %{version}
BuildRequires : pkgconfig(evolution-shell-3.0) >= %{version}
2014-10-13 13:35:20 +02:00
BuildRequires : pkgconfig(glib-2.0) >= 2.34
2012-09-08 10:20:46 +02:00
BuildRequires : pkgconfig(gtk+-3.0) >= 3.0
2011-10-14 14:51:15 +02:00
BuildRequires : pkgconfig(libebackend-1.2)
BuildRequires : pkgconfig(libedata-book-1.2)
BuildRequires : pkgconfig(libedata-cal-1.2)
BuildRequires : pkgconfig(libedataserver-1.2)
2013-07-08 23:15:36 +02:00
BuildRequires : pkgconfig(libemail-engine) >= %{version}
2013-06-23 16:11:51 +02:00
BuildRequires : pkgconfig(libmspack) >= 0.4
2014-04-03 22:36:36 +02:00
BuildRequires : pkgconfig(libsoup-2.4) >= 2.42
2011-10-14 14:16:37 +02:00
Recommends: %{name} -lang
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2011-10-14 14:51:15 +02:00
2011-10-14 14:16:37 +02:00
%description
2011-10-14 14:51:15 +02:00
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.
2011-10-14 14:16:37 +02:00
Provides exchange connectivity for exchange server 2007 and later using
exchange web services protocol.
2011-10-14 14:51:15 +02:00
%package -n libeews-1_2-0
Summary : Client library for Accessing Exchange Servers
Group : System/Libraries
%description -n libeews-1_2-0
This library is a client library for accessing Exchange servers through
the Exchange Web Services interface (compatible with Exchange 2007 and
later).
%package -n libewsutils0
Summary : Client library for Accessing Exchange Servers -- Utilities library
Group : System/Libraries
%description -n libewsutils0
This library provides utilities API for EWS Exchange Connector.
2011-10-14 14:16:37 +02:00
%package devel
2011-10-14 14:51:15 +02:00
Summary : Client library for Accessing Exchange Servers -- Development Files
2011-10-14 14:16:37 +02:00
Group : Development/Libraries/C and C++
2011-10-14 14:51:15 +02:00
Requires : libeews-1_2-0 = %{version}
Requires : libewsutils0 = %{version}
2011-10-14 14:16:37 +02:00
%description devel
2011-10-14 14:51:15 +02:00
This library is a client library for accessing Exchange servers through
the Exchange Web Services interface (compatible with Exchange 2007 and
later).
2011-10-14 14:16:37 +02:00
%lang_package
%prep
2011-11-28 09:25:53 +01:00
%setup -q
2014-12-16 11:16:30 +01:00
%patch0 -p1
2012-09-08 10:37:42 +02:00
translation-update-upstream
2011-10-14 14:16:37 +02:00
%build
%{configure} \
--disable-static
2011-10-14 14:51:15 +02:00
make %{?_smp_mflags}
2011-10-14 14:16:37 +02:00
%install
%make_install
find %{buildroot} %{_libdir} -name '*.la' -delete -print
%find_lang evolution-ews %{?no_lang_C}
%fdupes %{buildroot}
2011-10-14 14:51:15 +02:00
%post -n libeews-1_2-0 -p /sbin/ldconfig
2011-10-14 14:16:37 +02:00
2011-10-14 14:51:15 +02:00
%postun -n libeews-1_2-0 -p /sbin/ldconfig
2011-10-14 14:16:37 +02:00
2011-10-14 14:51:15 +02:00
%post -n libewsutils0 -p /sbin/ldconfig
%postun -n libewsutils0 -p /sbin/ldconfig
2011-10-14 14:16:37 +02:00
%files
%defattr (-,root,root)
2011-10-14 14:51:15 +02:00
%doc COPYING README
2011-10-14 14:16:37 +02:00
%{_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
2012-09-08 10:20:46 +02:00
%{_libdir} /evolution-data-server/registry-modules/module-ews-backend.so
%{_libdir} /evolution/%{evolution_base_version} /modules/module-ews-configuration.so
%{_datadir} /evolution/%{evolution_base_version} /errors/module-ews-configuration.error
2014-04-03 22:36:36 +02:00
%dir %{_datadir} /evolution-data-server/ews
%{_datadir} /evolution-data-server/ews/windowsZones.xml
2014-10-13 19:29:27 +02:00
%{_datadir} /appdata/evolution-ews.metainfo.xml
2011-10-14 14:51:15 +02:00
%files -n libeews-1_2-0
%defattr (-, root, root)
2013-03-13 23:59:53 +01:00
%dir %{_libdir} /evolution-data-server/
%{_libdir} /evolution-data-server/libeews-1.2.so.*
2011-10-14 14:51:15 +02:00
%files -n libewsutils0
%defattr (-, root, root)
2013-03-13 23:59:53 +01:00
%dir %{_libdir} /evolution-data-server/
%{_libdir} /evolution-data-server/libewsutils.so.*
2011-10-14 14:16:37 +02:00
%files devel
%defattr (-, root, root)
2013-03-13 23:59:53 +01:00
%dir %{_libdir} /evolution-data-server/
%{_libdir} /evolution-data-server/libeews-1.2.so
%{_libdir} /evolution-data-server/libewsutils.so
%dir %{_includedir} /evolution-data-server/
%{_includedir} /evolution-data-server/ews/
2011-10-14 14:16:37 +02:00
2011-10-14 14:51:15 +02:00
%files lang -f evolution-ews.lang
2011-10-14 14:16:37 +02:00
%changelog