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
#
2014-01-25 12:15:50 +01:00
# Copyright (c) 2014 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
2014-04-03 22:36:29 +02:00
%define so_camel 49
2013-08-19 13:19:28 +02:00
%define so_ebackend 7
2012-09-08 00:47:26 +02:00
%define so_ebook 14
2013-03-14 00:00:01 +01:00
%define so_ebook_contacts 0
2013-07-31 20:53:37 +02:00
%define so_ecal 16
2013-08-19 13:19:28 +02:00
%define so_edata_book 20
%define so_edata_cal 23
%define so_edataserver 18
2010-10-15 13:59:34 +02:00
2007-01-09 17:58:05 +01:00
Name : evolution-data-server
2014-04-03 22:36:29 +02:00
%define _evo_version 3.12
2014-08-13 23:29:10 +02:00
Version : 3.12.5
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
2014-04-03 22:36:29 +02:00
Source0 : http://download.gnome.org/sources/evolution-data-server/3.12/%{name} -%{version} .tar.xz
2011-04-22 11:15:35 +02:00
Source99 : baselibs.conf
2014-08-28 10:55:41 +02:00
# PATCH-FIX-UPSTREAM 0001-Bug-735311-Adapt-to-new-Google-HTTP-restriction.patch bnc#893775 bgo#735311 fcrozat@suse.com -- Adapt to new Google HTTP restriction
Patch0 : 0001-Bug-735311-Adapt-to-new-Google-HTTP-restriction.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
2014-01-25 12:15:50 +01:00
BuildRequires : libgweather-devel >= 3.8
2009-02-06 22:33:39 +01:00
BuildRequires : libical-devel >= 0.43
2008-09-09 19:26:25 +02:00
BuildRequires : libidl-devel
2014-04-03 22:36:29 +02:00
BuildRequires : libsoup-devel >= 2.42
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
2013-05-05 13:48:43 +02:00
BuildRequires : pkgconfig(goa-1.0) >= 3.8
2012-03-11 18:39:18 +01:00
BuildRequires : pkgconfig(gtk+-3.0)
2014-04-03 22:36:29 +02:00
BuildRequires : pkgconfig(icu-i18n)
2013-03-14 00:00:01 +01:00
BuildRequires : pkgconfig(libsecret-unstable) >= 0.5
2011-04-22 11:15:35 +02:00
%if %USE_EVOLDAP
Requires : libevoldap-2_4-2
%endif
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
2013-03-14 00:00:01 +01:00
# typelib-1_0-ECalendar-1_2 was dropped with e-d-s 3.7.3 due to libical not being introspecatble.
Obsoletes : typelib-1_0-ECalendar-1_2 <= %{version}
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.
2013-03-14 00:00:01 +01:00
%package -n libebook-contacts-1_2-%{so_ebook_contacts}
Summary : Evolution Data Server - Address Book Client Library
2010-10-15 13:59:34 +02:00
Group : System/Libraries
2013-03-14 00:00:01 +01:00
%description -n libebook-contacts-1_2-%{so_ebook_contacts}
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.
2013-03-14 00:00:01 +01:00
This package contains a shared system library to access address books.
2012-09-08 00:47:26 +02:00
2013-03-14 00:00:01 +01:00
%package -n libecal-1_2-%{so_ecal}
Summary : Evolution Data Server - Calendar Client Library
2011-12-21 05:19:33 +01:00
Group : System/Libraries
2013-03-14 00:00:01 +01:00
%description -n libecal-1_2-%{so_ecal}
2011-12-21 05:19:33 +01:00
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
2013-03-14 00:00:01 +01:00
This package contains a shared system library to access calendars.
2011-12-21 05:19:33 +01:00
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.
2013-03-14 00:00:01 +01:00
This package provides the GObject Introspection bindings for the library
for address book backends.
%package -n typelib-1_0-EBookContacts-1_2
Summary : Evolution Data Server - Address Book Backend Library, Introspection bindings
Group : System/Libraries
%description -n typelib-1_0-EBookContacts-1_2
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
2011-12-21 05:19:33 +01:00
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
2013-02-17 15:20:58 +01:00
# libedataserver references the gsettings schemas, which live in e-d-s package
Requires : %{name} >= %{version}
2010-10-15 13:59:34 +02:00
%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
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}
2013-03-14 00:00:01 +01:00
Requires : libebook-contacts-1_2-%{so_ebook_contacts} = %{version}
2010-10-15 13:59:34 +02:00
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-12-21 05:19:33 +01:00
%if %{?with_introspection}
Requires : typelib-1_0-EBook-1_2 = %{version}
2013-03-14 00:00:01 +01:00
Requires : typelib-1_0-EBookContacts-1_2 = %{version}
2011-12-21 05:19:33 +01:00
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
2011-07-06 11:19:49 +02:00
translation-update-upstream
2014-08-28 10:55:41 +02:00
%patch0 -p1
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 \
2011-11-28 09:30:00 +01:00
--disable-static \
2013-03-14 00:00:01 +01:00
--disable-uoa \
2011-11-28 09:30:00 +01:00
%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
2013-03-14 00:00:01 +01:00
%post -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
%postun -n libebook-contacts-1_2-%{so_ebook_contacts} -p /sbin/ldconfig
2010-10-15 13:59:34 +02:00
%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
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
2013-03-14 00:00:01 +01:00
%{_datadir} /evolution-data-server/
2012-09-08 00:47:26 +02:00
%{_datadir} /GConf/gsettings/evolution-data-server.convert
%{_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} *
2013-03-14 00:00:01 +01:00
%files -n libebook-contacts-1_2-%{so_ebook_contacts}
2010-10-15 13:59:34 +02:00
%defattr (-, root, root)
2013-03-14 00:00:01 +01:00
%{_libdir} /libebook-contacts-1.2.so.%{so_ebook_contacts} *
2012-09-08 00:47:26 +02:00
2013-03-14 00:00:01 +01:00
%files -n libecal-1_2-%{so_ecal}
2011-12-21 05:19:33 +01:00
%defattr (-, root, root)
2013-03-14 00:00:01 +01:00
%{_libdir} /libecal-1.2.so.%{so_ecal} *
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
2013-03-14 00:00:01 +01:00
%files -n typelib-1_0-EBookContacts-1_2
%defattr (-, root, root)
%{_libdir} /girepository-1.0/EBookContacts-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
2007-01-09 17:58:05 +01:00
%files devel
%defattr (-, root, root)
2013-03-14 00:00:01 +01:00
%{_includedir} /evolution-data-server/
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