2007-01-09 17:58:05 +01:00
#
2009-09-05 01:43:29 +02:00
# spec file for package evolution-data-server (Version 2.27.90)
2007-01-09 17:58:05 +01:00
#
2009-01-08 18:03:32 +01:00
# Copyright (c) 2009 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/
#
# norootforbuild
2008-02-21 02:29:25 +01:00
2007-01-09 17:58:05 +01:00
Name : evolution-data-server
2009-05-20 18:09:32 +02:00
%define _evo_version 2.28
2008-09-09 19:26:25 +02:00
BuildRequires : bison
BuildRequires : db-devel
2008-11-03 00:52:33 +01:00
%if %suse_version > 1100
BuildRequires : evoldap2-devel
%else
BuildRequires : openldap2-devel
%endif
2008-09-09 19:26:25 +02:00
BuildRequires : fdupes
BuildRequires : gcc-c++
BuildRequires : gnome-certauth-devel
BuildRequires : gnome-common
BuildRequires : gnome-keyring-devel
BuildRequires : gtk-doc
BuildRequires : intltool
BuildRequires : krb5-devel
2009-05-28 02:39:54 +02:00
BuildRequires : libbonobo-devel
2008-09-09 19:26:25 +02:00
BuildRequires : libglade2-devel
2009-02-06 22:33:39 +01:00
BuildRequires : libgweather-devel >= 2.25.4
BuildRequires : libical-devel >= 0.43
2008-09-09 19:26:25 +02:00
BuildRequires : libidl-devel
BuildRequires : libsoup-devel
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 : perl-XML-Parser
BuildRequires : python-devel
BuildRequires : sgml-skel
BuildRequires : sqlite3-devel
2009-03-11 17:53:16 +01:00
BuildRequires : translation-update-upstream
2007-07-21 18:10:00 +02:00
License : GPL v2 or later
2007-01-09 17:58:05 +01:00
Group : Development/Libraries/GNOME
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
2007-01-09 17:58:05 +01:00
Summary : Evolution Data Server
2009-09-05 01:43:29 +02:00
Version : 2.27.90
2009-02-20 22:35:57 +01:00
Release : 1
2009-02-06 22:33:39 +01:00
Source0 : ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/2.25/%{name} -%{version} .tar.bz2
2009-08-01 13:24:03 +02:00
# PATCH-NEEDS-REBASE evolution-data-server-1.11.5-cert-auth-complete.patch bgo253574 -- Fix has been submitted to bgo. (was PATCH-FIX-UPSTREAM)
#Patch3: evolution-data-server-1.11.5-cert-auth-complete.patch
# PATCH-NEEDS-REBASE bnc-304835-ex-crash-after-restart.patch bnc304835 bgo253574 -- Fix has been submitted to bgo. (was PATCH-FIX-UPSTREAM)
#Patch4: bnc-304835-ex-crash-after-restart.patch
# PATCH-NEEDS-REBASE bnc-307861-calendar-auth.diff -- bnc307861 bgo253574 -- Fix has been submitted to bgo. (was PATCH-FIX-UPSTREAM)
#Patch5: bnc-307861-calendar-auth.diff
2008-11-17 16:47:55 +01:00
# PATCH-FEATURE-OPENSUSE dice-eds-changes.patch pchenthill@novell.com -- Patch yet to be pushed upstream
Patch7 : dice-eds-changes.patch
2009-08-01 13:24:03 +02:00
# PATCH-NEEDS-REBASE bnc-210959-eds-accept_ics.patch bnc210959 pchenthill@novell.com -- Patch yet to be pushed upstream. (Was: PATCH-FIX-UPSTREAM)
#Patch16: bnc-210959-eds-accept_ics.patch
2008-11-03 00:52:33 +01:00
# PATCH-FEATURE-OPENSUSE evolution-data-server-shared-nss-db.patch hpj@novell.com -- Migrate to shared NSS database.
2008-11-20 15:20:09 +01:00
Patch18 : evolution-data-server-shared-nss-db.patch
2009-09-05 01:43:29 +02:00
# PATCH-FIX-UPSTREAM evolution-data-server-krb5-as-needed.patch bgo#591377 dominique-obs@leuenberger.net -- fix detection of krb5 in configure when using Wl,-as-needed
Patch19 : evolution-data-server-krb5-as-needed.patch
2007-01-09 17:58:05 +01:00
Url : http://www.gnome.org
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2007-08-09 17:25:13 +02:00
Requires : %{name} -lang = %{version}
2008-10-26 00:46:22 +02:00
Requires : libsoup >= 2.2.6
Requires : mozilla-nss
%if %suse_version > 1100
2008-10-27 21:48:32 +01:00
Requires : libevoldap-2_4-2
2008-10-26 00:46:22 +02:00
%endif
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.
%package devel
2008-04-10 14:11:29 +02:00
License : GPL v2 or later
2007-01-09 17:58:05 +01:00
Summary : Evolution Data Server Development Files
Group : Development/Libraries/GNOME
2008-02-21 02:29:25 +01:00
Requires : evolution-data-server = %{?epoch:}%{version} -%{release}
2008-10-26 00:46:22 +02:00
Requires : gconf2-devel
Requires : glib2-devel
Requires : gnome-certauth-devel
Requires : gnome-keyring-devel
Requires : gnome-vfs2-devel
Requires : gtk2-devel
2007-01-09 17:58:05 +01:00
Requires : krb5-devel
2008-10-26 00:46:22 +02:00
Requires : libbonobo-devel
2007-01-09 17:58:05 +01:00
Requires : libcom_err
2008-10-26 00:46:22 +02:00
Requires : libglade2-devel
2009-02-06 22:33:39 +01:00
Requires : libgweather-devel >= 2.25.4
2008-10-26 00:46:22 +02:00
Requires : libgpg-error-devel
2009-02-06 22:33:39 +01:00
Requires : libical-devel >= 0.43
2008-10-26 00:46:22 +02:00
Requires : libsoup-devel
Requires : libxml2-devel
2008-11-03 00:52:33 +01:00
Requires : nss-shared-helper-devel
2008-10-26 00:46:22 +02:00
Requires : orbit2-devel
Requires : sqlite3-devel
%if %suse_version > 1100
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
2008-04-10 14:11:29 +02:00
License : GPL v2 or later
Summary : Additional Package Documentation for the evolution-data-server
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
2007-03-16 10:09:45 +01:00
and calendar in the GNOME Desktop. This package contains additional
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
2009-03-11 17:53:16 +01:00
translation-update-upstream
2008-05-16 13:37:43 +02:00
###%patch3
###%patch4
###%patch5
2008-11-17 16:47:55 +01:00
%patch7 -p1
2009-08-01 13:24:03 +02:00
# NEEDS REBASE
# %%patch16
2008-11-20 15:20:09 +01:00
%patch18 -p1
2009-09-05 01:43:29 +02:00
%patch19 -p1
2007-01-09 17:58:05 +01:00
%build
2009-09-05 01:43:29 +02:00
intltoolize --force --copy
# should use autoreconf, but libdb is broken
libtoolize --force --copy
aclocal
autoconf
automake -a
autoheader
2008-10-26 00:46:22 +02:00
%{configure} \
--libexecdir=%{_libdir} /evolution-data-server \
%if %suse_version > 1100
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} \
--with-krb4=%{_prefix} \
2008-09-09 19:26:25 +02:00
--enable-gnome-keyring \
--enable-gtk-doc \
2008-10-26 00:46:22 +02:00
--enable-ipv6=yes \
2009-02-06 22:33:39 +01:00
--enable-nss=yes \
--enable-nspr=yes \
--enable-smime=yes \
--enable-nntp=yes \
--enable-hula=yes \
--enable-exchange=yes \
--with-e2k-debug \
--disable-static
2008-10-26 00:46:22 +02:00
%{__make} %{?jobs:-j%jobs}
2007-01-09 17:58:05 +01:00
%install
2009-02-06 22:33:39 +01:00
%{makeinstall}
# Remove the libtool archive files
%{__rm} $RPM_BUILD_ROOT /%{_libdir} /*.la
%{__rm} $RPM_BUILD_ROOT /%{_libdir} /*/*/*.la
2008-11-03 00:52:33 +01:00
%find_lang evolution-data-server-%{_evo_version}
2007-08-03 00:22:05 +02:00
%fdupes $RPM_BUILD_ROOT
2008-11-03 00:52:33 +01:00
%if %suse_version > 1100
%{__mv} $RPM_BUILD_ROOT /%{_libdir} /evolution-data-server/evolution-data-server-%{_evo_version} $RPM_BUILD_ROOT /%{_libdir} /evolution-data-server/evolution-data-server-%{_evo_version}.bin
2009-02-20 22:35:57 +01:00
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 \" %{_libdir} / e v o l u t i o n - d a t a - s e r v e r / e v o l u t i o n - d a t a - s e r v e r - % { _ e v o _ v e r s i o n } \" %{_libdir} / e v o l u t i o n - d a t a - s e r v e r / e v o l u t i o n - d a t a - s e r v e r - % { _ e v o _ v e r s i o n } . b i n \" \ $ @ \" " > $RPM_BUILD_ROOT /%{_libdir} /evolution-data-server/evolution-data-server-%{_evo_version}
2008-11-03 00:52:33 +01:00
%{__chmod} +x $RPM_BUILD_ROOT /%{_libdir} /evolution-data-server/evolution-data-server-%{_evo_version}
%endif
2007-08-03 00:22:05 +02:00
2007-01-09 17:58:05 +01:00
%clean
2008-10-26 00:46:22 +02:00
%{__rm} -rf $RPM_BUILD_ROOT
2007-01-09 17:58:05 +01:00
2007-05-24 01:53:24 +02:00
%post -p /sbin/ldconfig
%postun -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
2008-11-03 00:52:33 +01:00
%{_datadir} /evolution-data-server-%{_evo_version}
2007-01-09 17:58:05 +01:00
%{_datadir} /idl/evolution-data-server-1.2
2007-03-16 10:09:45 +01:00
%{_datadir} /pixmaps/evolution-data-server
2007-01-09 17:58:05 +01:00
%{_libdir} /*.so.*
%{_libdir} /bonobo/servers/*
2008-10-26 00:46:22 +02:00
%{_libdir} /evolution-data-server
2007-12-19 14:43:47 +01:00
%{_libdir} /evolution-data-server-1.2
2007-01-09 17:58:05 +01:00
2008-11-03 00:52:33 +01:00
%files lang -f evolution-data-server-%{_evo_version}.lang
2007-08-09 17:25:13 +02:00
2007-01-09 17:58:05 +01:00
%files devel
%defattr (-, root, root)
2008-11-03 00:52:33 +01:00
%{_includedir} /evolution-data-server-%{_evo_version}
2007-01-09 17:58:05 +01:00
%{_libdir} /*.so
%{_libdir} /pkgconfig/*.pc
%files doc
%defattr (-, root, root)
%{_datadir} /gtk-doc/html/*
2007-12-06 00:08:01 +01:00
2007-03-16 10:09:45 +01:00
%changelog