evolution-ews/evolution-ews.spec
Vincent Untz fe8309fcad Accepting request 87792 from GNOME:Evolution:snapshot-3.2
evolution-ews is a evolution backend which connects to MS Exchange servers 2007 and later using Exchange web services protocol.

OBS-URL: https://build.opensuse.org/request/show/87792
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution-ews?expand=0&rev=1
2011-10-14 12:16:37 +00:00

109 lines
3.6 KiB
RPMSpec

#
# spec file for package
#
# Copyright (c) 2010 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: evolution-ews
# This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in.
%define evolution_base_version 3.2
Version: 3.2
Release: 1
# FIXME: on update after 3.1.1, update license tag (see bgo#651254) if needed
License: LGPLv2.0 ; LGPLv3
Summary: Exchange Connector for MS exchange servers 2007 and later
Url: http://projects.gnome.org/evolution/
Group: Productivity/Networking/Email/Clients
Source: %{name}.tar.bz2
Patch0: base-version-changed.patch
Patch1: change-compiler-flag-dimstar.patch
BuildRequires: intltool
BuildRequires: gnome-common
BuildRequires: fdupes
BuildRequires: translation-update-upstream
BuildRequires: evolution-devel >= 3.2
BuildRequires: pkgconfig(evolution-data-server-1.2)
BuildRequires: libsoup-devel
Requires: libsoup > 2.30
Requires: evolution-data-server >= 3.2
Requires: evolution >= 3.2
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides exchange connectivity for exchange server 2007 and later using
exchange web services protocol.
%package devel
Summary: Include files and libraries for develop applications using EWS protocol
Group: Development/Libraries/C and C++
Requires: %{name}=%{version}-%{release}
%description devel
Include files and libraries for develop applications using exchange
webservices protocol to connect to exchange server 2007 or later
%lang_package
%prep
%setup -q -n %{name}
translation-update-upstream
%patch0 -p1
%patch1 -p1
%build
NOCONFIGURE=1 ./autogen.sh \
--disable-static
%{configure} \
--disable-static
%{__make} %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%find_lang evolution-ews %{?no_lang_C}
%find_lang evolution-ews %{?no_lang_C} evolution-ews.lang
%fdupes %{buildroot}
%clean
%{?buildroot:%__rm -rf %{buildroot}}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%{_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/%{evolution_base_version}/plugins/liborg-gnome-exchange-ews.so
%{_libdir}/evolution/%{evolution_base_version}/plugins/org-gnome-exchange-ews.eplug
%{_libdir}/libeews-1.2.so.*
%{_libdir}/libewsutils.so.*
%{_libdir}/liblzx.so.*
%files lang -f evolution-ews.lang
%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/libeews-1.2.pc
%{_libdir}/libeews-1.2.so
%{_libdir}/libewsutils.so
%{_libdir}/liblzx.so
%dir %{_includedir}/evolution-data-server-%{evolution_base_version}
%{_includedir}/evolution-data-server-%{evolution_base_version}/ews/
%changelog