2007-01-09 17:58:05 +01:00
#
2011-04-22 10:27:41 +02:00
# spec file for package evolution-data-server
2007-01-09 17:58:05 +01:00
#
2013-01-23 17:34:21 +01:00
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-09 17:58:05 +01:00
#
2008-08-14 02:25:04 +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.
2007-01-09 17:58:05 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-02-08 16:00:54 +01:00
2009-12-30 00:16:12 +01:00
%define USE_EVOLDAP 0
2011-12-21 10:07:02 +01:00
%define with_introspection 1
2008-02-21 02:29:25 +01:00
2010-10-15 13:59:34 +02:00
# Shared Library soNUMs, to make it easier for updates
# When updating the sonums, do not forget to also update baselibs.conf
2012-09-08 00:47:26 +02:00
%define so_camel 40
%define so_ebackend 5
%define so_ebook 14
%define so_ecal 15
%define so_edata_book 15
%define so_edata_cal 18
%define so_edataserver 17
%define so_edataserverui 4
2010-10-15 13:59:34 +02:00
2007-01-09 17:58:05 +01:00
Name : evolution-data-server
2012-09-08 00:47:26 +02:00
%define _evo_version 3.6
2013-01-23 17:34:21 +01:00
Version : 3.6.3
2011-12-21 05:19:33 +01:00
Release : 0
2011-04-22 11:15:35 +02:00
Summary : Evolution Data Server
2011-12-21 05:19:33 +01:00
License : LGPL-2.1+
Group : Development/Libraries/GNOME
2011-04-22 11:15:35 +02:00
Url : http://www.gnome.org
2012-09-23 19:23:59 +02:00
Source0 : http://download.gnome.org/sources/evolution-data-server/3.6/%{name} -%{version} .tar.xz
2011-04-22 11:15:35 +02:00
Source99 : baselibs.conf
2013-02-09 21:24:11 +01:00
# PATCH-FIX-UPSTREAM e-d-s-ldap-mutex-deadlock-fix.patch bgo#692278 badshah400@gmail.com -- Fix LDAP backend mutex deadlock on finalize; patch taken from upstream git
Patch0 : e-d-s-ldap-mutex-deadlock-fix.patch
# PATCH-FIX-UPSTREAM e-d-s-address-crash-on-cancel.patch badshah400@gmail.com -- Fix invalid memory access during situations while cancelling some synchronous operations; patch taken from upstream git
Patch1 : e-d-s-address-crash-on-cancel.patch
# PATCH-FIX-UPSTREAM e-d-s-fix-slow-composer-open.patch bgo#689476 badshah400@gmail.com -- Fix composer opening slowly because of leaks; patch taken from upstream git
Patch2 : e-d-s-fix-slow-composer-open.patch
# PATCH-FIX-UPSTREAM e-d-s-store_synchronize_sync.patch badshah400@gmail.com -- Cleanups in store_synchronize_sync(); patch taken from upstream git
Patch3 : e-d-s-store_synchronize_sync.patch
# PATCH-FIX-UPSTREAM e-d-s-schedule-higher-idle-priority-actions.patch bgo#683867 badshah400@gmail.com -- Schedule actions with higher idle priority; patch taken from upstream git
Patch4 : e-d-s-schedule-higher-idle-priority-actions.patch
# PATCH-FIX-UPSTREAM e-d-s-use-G_PRIORITY_HIGH_IDLE.patch badshah400@gmail.com -- Use G_PRIORITY_HIGH_IDLE to beat gtk+ redraws; patch taken from upstream git
Patch5 : e-d-s-use-G_PRIORITY_HIGH_IDLE.patch
2008-09-09 19:26:25 +02:00
BuildRequires : db-devel
2009-12-30 00:16:12 +01:00
%if %USE_EVOLDAP
2008-11-03 00:52:33 +01:00
BuildRequires : evoldap2-devel
%else
BuildRequires : openldap2-devel
%endif
2008-09-09 19:26:25 +02:00
BuildRequires : fdupes
BuildRequires : gcc-c++
2011-04-22 11:15:35 +02:00
BuildRequires : gobject-introspection-devel
2010-03-19 00:01:14 +01:00
BuildRequires : gperf
2008-09-09 19:26:25 +02:00
BuildRequires : gtk-doc
BuildRequires : intltool
BuildRequires : krb5-devel
2010-08-09 18:20:54 +02:00
BuildRequires : libgdata-devel
2009-12-30 00:16:12 +01:00
BuildRequires : libgnome-keyring-devel
2012-09-08 00:47:26 +02:00
BuildRequires : libgweather-devel >= 3.5.0
2009-02-06 22:33:39 +01:00
BuildRequires : libical-devel >= 0.43
2008-09-09 19:26:25 +02:00
BuildRequires : libidl-devel
2012-09-08 00:47:26 +02:00
BuildRequires : libsoup-devel >= 2.38.1
2008-09-09 19:26:25 +02:00
BuildRequires : mozilla-nss-devel
2008-11-03 00:52:33 +01:00
BuildRequires : nss-shared-helper-devel
2008-09-09 19:26:25 +02:00
BuildRequires : python-devel
BuildRequires : sqlite3-devel
2009-03-11 17:53:16 +01:00
BuildRequires : translation-update-upstream
2011-07-01 12:29:02 +02:00
BuildRequires : vala
2012-09-08 00:47:26 +02:00
BuildRequires : pkgconfig(gcr-base-3) >= 3.4
BuildRequires : pkgconfig(goa-1.0) >= 3.2
2012-03-11 18:39:18 +01:00
BuildRequires : pkgconfig(gtk+-3.0)
BuildRequires : pkgconfig(oauth)
2011-04-22 11:15:35 +02:00
%if %USE_EVOLDAP
Requires : libevoldap-2_4-2
%endif
Requires : libical0 >= 0.43
Requires : libsoup >= 2.2.6
Requires : mozilla-nss
Recommends: %{name} -lang = %{version}
2008-11-17 16:47:55 +01:00
# bug437293
%ifarch ppc64
Obsoletes : evolution-data-server-64bit
%endif
%ifarch %ix86 ppc
Obsoletes : evolution-data-server-32bit
%endif
2010-10-15 13:59:34 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2012-02-23 13:16:04 +01:00
%glib2_gsettings_schema_requires
2007-01-09 17:58:05 +01:00
%description
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
2010-10-15 13:59:34 +02:00
%package -n libcamel-1_2-%{so_camel}
Summary : Evolution Data Server - Messaging Library
Group : System/Libraries
%description -n libcamel-1_2-%{so_camel}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library for messaging.
%package -n libebackend-1_2-%{so_ebackend}
Summary : Evolution Data Server - Backend Utilities Library
Group : System/Libraries
%description -n libebackend-1_2-%{so_ebackend}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library for backends.
%package -n libebook-1_2-%{so_ebook}
Summary : Evolution Data Server - Address Book Client Library
Group : System/Libraries
%description -n libebook-1_2-%{so_ebook}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library to access address books.
%package -n libecal-1_2-%{so_ecal}
Summary : Evolution Data Server - Calendar Client Library
Group : System/Libraries
%description -n libecal-1_2-%{so_ecal}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library to access calendars.
2011-12-21 05:19:33 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%package -n typelib-1_0-ECalendar-1_2
Summary : Evolution Data Server - Calendar Client Library, Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-ECalendar-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package provides the GObject Introspection bindings for the library
to access calendars.
%endif
2010-10-15 13:59:34 +02:00
%package -n libedata-book-1_2-%{so_edata_book}
Summary : Evolution Data Server - Address Book Backend Library
Group : System/Libraries
%description -n libedata-book-1_2-%{so_edata_book}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library for address book backends.
2011-12-21 05:19:33 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%package -n typelib-1_0-EBook-1_2
Summary : Evolution Data Server - Address Book Backend Library, Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-EBook-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package provides the GObject Introspection bindings for the library
for address book backends.
%endif
2010-10-15 13:59:34 +02:00
%package -n libedata-cal-1_2-%{so_edata_cal}
Summary : Evolution Data Server - Calendar Backend Library
Group : System/Libraries
%description -n libedata-cal-1_2-%{so_edata_cal}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library for calendar backends.
%package -n libedataserver-1_2-%{so_edataserver}
Summary : Evolution Data Server - Utilities Library
Group : System/Libraries
%description -n libedataserver-1_2-%{so_edataserver}
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library.
2007-01-09 17:58:05 +01:00
2011-12-21 05:19:33 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%package -n typelib-1_0-EDataServer-1_2
Summary : Evolution Data Server - Utilities Library, Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-EDataServer-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package provides the GObject Introspection bindings for the
libedataserver library.
%endif
2011-04-22 10:27:41 +02:00
%package -n libedataserverui-3_0-%{so_edataserverui}
2010-10-15 13:59:34 +02:00
Summary : Evolution Data Server - Graphical Utilities Library
Group : System/Libraries
2011-04-22 10:27:41 +02:00
%description -n libedataserverui-3_0-%{so_edataserverui}
2010-10-15 13:59:34 +02:00
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
This package contains a shared system library.
2007-01-09 17:58:05 +01:00
%package devel
2010-10-15 13:59:34 +02:00
Summary : Evolution Data Server - Development Files
2007-01-09 17:58:05 +01:00
Group : Development/Libraries/GNOME
2010-10-15 13:59:34 +02:00
Requires : evolution-data-server = %{?epoch:}%{version}
Requires : libcamel-1_2-%{so_camel} = %{version}
Requires : libebackend-1_2-%{so_ebackend} = %{version}
Requires : libebook-1_2-%{so_ebook} = %{version}
Requires : libecal-1_2-%{so_ecal} = %{version}
Requires : libedata-book-1_2-%{so_edata_book} = %{version}
Requires : libedata-cal-1_2-%{so_edata_cal} = %{version}
Requires : libedataserver-1_2-%{so_edataserver} = %{version}
2011-04-22 10:27:41 +02:00
Requires : libedataserverui-3_0-%{so_edataserverui} = %{version}
2011-12-21 05:19:33 +01:00
%if %{?with_introspection}
Requires : typelib-1_0-EBook-1_2 = %{version}
Requires : typelib-1_0-ECalendar-1_2 = %{version}
Requires : typelib-1_0-EDataServer-1_2 = %{version}
%endif
2009-12-30 00:16:12 +01:00
%if %USE_EVOLDAP
2008-10-26 00:46:22 +02:00
Requires : evoldap2-devel
%else
Requires : openldap2-devel
2007-01-09 17:58:05 +01:00
%endif
%description devel
The Evolution Data Server development files provide the necessary
libraries, headers, and other files for developing applications which
use the Evolution Data Server for storing contact and calendar
information.
%package doc
2010-10-15 13:59:34 +02:00
Summary : Evolution Data Server - Developer Documentation
2007-01-09 17:58:05 +01:00
Group : Development/Libraries/GNOME
Requires : %{name} = %{version}
%description doc
Evolution Data Server provides a central location for your address book
2010-10-15 13:59:34 +02:00
and calendar in the GNOME Desktop.
2007-01-09 17:58:05 +01:00
2010-10-15 13:59:34 +02:00
This package contains developer documentation.
2007-01-09 17:58:05 +01:00
2007-08-09 17:25:13 +02:00
%lang_package
2007-01-09 17:58:05 +01:00
%prep
2009-02-12 16:18:41 +01:00
%setup -q
2013-02-09 21:24:11 +01:00
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
2011-07-06 11:19:49 +02:00
translation-update-upstream
2007-01-09 17:58:05 +01:00
%build
2008-10-26 00:46:22 +02:00
%{configure} \
2009-12-24 16:29:23 +01:00
--libexecdir=%{_libexecdir} /evolution-data-server \
2009-12-30 00:16:12 +01:00
%if %USE_EVOLDAP
2008-10-24 15:03:24 +02:00
--with-openldap=%{_libdir} /evoldap \
2008-10-26 00:46:22 +02:00
%else
--with-openldap=yes \
%endif
--with-krb5=%{_prefix} \
2008-09-09 19:26:25 +02:00
--enable-gtk-doc \
2008-10-26 00:46:22 +02:00
--enable-ipv6=yes \
2009-02-06 22:33:39 +01:00
--enable-smime=yes \
--enable-nntp=yes \
2011-11-28 09:30:00 +01:00
--disable-static \
%if %{?with_introspection}
2011-12-21 05:19:33 +01:00
--enable-vala-bindings \
--enable-introspection
2011-11-28 09:30:00 +01:00
%else
--disable-vala-bindings \
--disable-introspection
%endif
2011-09-22 14:02:09 +02:00
make %{?_smp_mflags} V=1
2007-01-09 17:58:05 +01:00
%install
2009-02-06 22:33:39 +01:00
%{makeinstall}
2009-12-24 16:29:23 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2009-12-30 00:16:12 +01:00
find %{buildroot} -name '*.la' -type f -delete -print
2008-11-03 00:52:33 +01:00
%find_lang evolution-data-server-%{_evo_version}
2009-12-30 00:16:12 +01:00
%if %USE_EVOLDAP
for file in %{buildroot} %{_libexecdir} /evolution-data-server/*; do
%{__mv} $file $file.bin
real_file=`echo $file | sed " s , %{buildroot} , , g " `
echo -e " # ! / b i n / b a s h \n \n L D _ L I B R A R Y _ P A T H = %{_libdir} / e v o l d a p / l i b e x e c - a \" $ r e a l _ f i l e \" $ r e a l _ f i l e . b i n \" \ $ @ \" " > $file
%{__chmod} +x $file
done
%endif
%fdupes %{buildroot}
2007-08-03 00:22:05 +02:00
2012-02-23 13:16:04 +01:00
%post
%glib2_gsettings_schema_post
%postun
%glib2_gsettings_schema_postun
2010-10-15 13:59:34 +02:00
%post -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
%postun -n libcamel-1_2-%{so_camel} -p /sbin/ldconfig
%post -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
%postun -n libebackend-1_2-%{so_ebackend} -p /sbin/ldconfig
%post -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
%postun -n libebook-1_2-%{so_ebook} -p /sbin/ldconfig
%post -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
%postun -n libecal-1_2-%{so_ecal} -p /sbin/ldconfig
%post -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
%postun -n libedata-book-1_2-%{so_edata_book} -p /sbin/ldconfig
%post -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
%postun -n libedata-cal-1_2-%{so_edata_cal} -p /sbin/ldconfig
2010-10-06 16:07:17 +02:00
2010-10-15 13:59:34 +02:00
%post -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
%postun -n libedataserver-1_2-%{so_edataserver} -p /sbin/ldconfig
2011-04-22 10:27:41 +02:00
%post -n libedataserverui-3_0-%{so_edataserverui} -p /sbin/ldconfig
2010-10-15 13:59:34 +02:00
2011-04-22 10:27:41 +02:00
%postun -n libedataserverui-3_0-%{so_edataserverui} -p /sbin/ldconfig
2010-10-15 13:59:34 +02:00
2007-08-09 17:25:13 +02:00
%files
2007-01-09 17:58:05 +01:00
%defattr (-,root,root)
2009-04-23 23:22:37 +02:00
%doc COPYING ChangeLog NEWS TODO
2010-10-15 13:59:34 +02:00
# ui/ subdir is used by libedataserverui
%{_datadir} /evolution-data-server-%{_evo_version}/
2012-09-08 00:47:26 +02:00
%{_datadir} /GConf/gsettings/evolution-data-server.convert
2012-02-23 13:16:04 +01:00
%{_datadir} /GConf/gsettings/libedataserver.convert
2012-09-08 00:47:26 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
2012-02-23 13:16:04 +01:00
%{_datadir} /glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
2012-09-08 00:47:26 +02:00
%{_datadir} /glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
%{_datadir} /glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
2010-10-15 13:59:34 +02:00
# Category icons that are used by libedataserver
%{_datadir} /pixmaps/evolution-data-server/
2009-12-24 16:29:23 +01:00
%{_datadir} /dbus-1/services/org.gnome.evolution.dataserver.*.service
2011-04-22 10:27:41 +02:00
%{_libdir} /evolution-data-server/
2011-04-22 11:15:35 +02:00
%if "%{_libdir}" != "%{_libexecdir}"
2010-10-15 13:59:34 +02:00
%{_libexecdir} /evolution-data-server/
2011-04-22 11:15:35 +02:00
%endif
2010-10-06 16:07:17 +02:00
2010-10-15 13:59:34 +02:00
%files -n libcamel-1_2-%{so_camel}
%defattr (-, root, root)
%{_libdir} /libcamel-1.2.so.%{so_camel} *
%files -n libebackend-1_2-%{so_ebackend}
%defattr (-, root, root)
%{_libdir} /libebackend-1.2.so.%{so_ebackend} *
%files -n libebook-1_2-%{so_ebook}
%defattr (-, root, root)
%{_libdir} /libebook-1.2.so.%{so_ebook} *
%files -n libecal-1_2-%{so_ecal}
%defattr (-, root, root)
%{_libdir} /libecal-1.2.so.%{so_ecal} *
2011-12-21 05:19:33 +01:00
2011-11-28 09:30:00 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%files -n typelib-1_0-ECalendar-1_2
%defattr (-, root, root)
2011-04-22 11:15:35 +02:00
%{_libdir} /girepository-1.0/ECalendar-1.2.typelib
2011-11-28 09:30:00 +01:00
%endif
2010-10-15 13:59:34 +02:00
%files -n libedata-book-1_2-%{so_edata_book}
%defattr (-, root, root)
%{_libdir} /libedata-book-1.2.so.%{so_edata_book} *
2011-12-21 05:19:33 +01:00
2011-11-28 09:30:00 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%files -n typelib-1_0-EBook-1_2
%defattr (-, root, root)
2011-06-16 15:44:05 +02:00
%{_libdir} /girepository-1.0/EBook-1.2.typelib
2011-11-28 09:30:00 +01:00
%endif
2010-10-15 13:59:34 +02:00
%files -n libedata-cal-1_2-%{so_edata_cal}
%defattr (-, root, root)
%{_libdir} /libedata-cal-1.2.so.%{so_edata_cal} *
%files -n libedataserver-1_2-%{so_edataserver}
%defattr (-, root, root)
%{_libdir} /libedataserver-1.2.so.%{so_edataserver} *
2011-12-21 05:19:33 +01:00
2011-11-28 09:30:00 +01:00
%if %{?with_introspection}
2012-09-08 00:47:26 +02:00
2011-12-21 05:19:33 +01:00
%files -n typelib-1_0-EDataServer-1_2
%defattr (-, root, root)
2011-04-22 11:15:35 +02:00
%{_libdir} /girepository-1.0/EDataServer-1.2.typelib
2011-11-28 09:30:00 +01:00
%endif
2010-10-15 13:59:34 +02:00
2011-04-22 10:27:41 +02:00
%files -n libedataserverui-3_0-%{so_edataserverui}
2010-10-15 13:59:34 +02:00
%defattr (-, root, root)
2011-04-22 10:27:41 +02:00
%{_libdir} /libedataserverui-3.0.so.%{so_edataserverui} *
2010-10-15 13:59:34 +02:00
2007-01-09 17:58:05 +01:00
%files devel
%defattr (-, root, root)
2010-10-15 13:59:34 +02:00
%{_includedir} /evolution-data-server-%{_evo_version}/
2007-01-09 17:58:05 +01:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/*.pc
2011-11-28 09:30:00 +01:00
%if %{?with_introspection}
2011-04-22 11:15:35 +02:00
%{_datadir} /gir-1.0/*.gir
2011-07-01 12:29:02 +02:00
%dir %{_datadir} /vala
%dir %{_datadir} /vala/vapi
%{_datadir} /vala/vapi/*.deps
%{_datadir} /vala/vapi/*.vapi
2011-11-28 09:30:00 +01:00
%endif
2007-01-09 17:58:05 +01:00
%files doc
%defattr (-, root, root)
%{_datadir} /gtk-doc/html/*
2007-12-06 00:08:01 +01:00
2010-10-15 13:59:34 +02:00
%files lang -f evolution-data-server-%{_evo_version}.lang
2007-03-16 10:09:45 +01:00
%changelog