evolution-data-server/evolution-data-server.spec

221 lines
7.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package evolution-data-server (Version 2.27.92)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: evolution-data-server
%define _evo_version 2.28
BuildRequires: bison
BuildRequires: db-devel
%if %suse_version > 1100
BuildRequires: evoldap2-devel
%else
BuildRequires: openldap2-devel
%endif
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-certauth-devel
BuildRequires: gnome-common
BuildRequires: gnome-keyring-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: krb5-devel
BuildRequires: libbonobo-devel
BuildRequires: libglade2-devel
BuildRequires: libgweather-devel >= 2.25.4
BuildRequires: libical-devel >= 0.43
BuildRequires: libidl-devel
BuildRequires: libsoup-devel
BuildRequires: mozilla-nss-devel
BuildRequires: nss-shared-helper-devel
BuildRequires: perl-XML-Parser
BuildRequires: python-devel
BuildRequires: sgml-skel
BuildRequires: sqlite3-devel
BuildRequires: translation-update-upstream
License: GPL v2 or later
Group: Development/Libraries/GNOME
# bug437293
%ifarch ppc64
Obsoletes: evolution-data-server-64bit
%endif
%ifarch %ix86 ppc
Obsoletes: evolution-data-server-32bit
%endif
Summary: Evolution Data Server
Version: 2.27.92
Release: 1
Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/2.25/%{name}-%{version}.tar.bz2
# 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
# PATCH-FEATURE-OPENSUSE dice-eds-changes.patch pchenthill@novell.com -- Patch yet to be pushed upstream
Patch7: dice-eds-changes.patch
# 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
# PATCH-FEATURE-OPENSUSE evolution-data-server-shared-nss-db.patch hpj@novell.com -- Migrate to shared NSS database.
Patch18: evolution-data-server-shared-nss-db.patch
Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
Requires: libsoup >= 2.2.6
Requires: mozilla-nss
%if %suse_version > 1100
Requires: libevoldap-2_4-2
%endif
%description
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
%package devel
License: GPL v2 or later
Summary: Evolution Data Server Development Files
Group: Development/Libraries/GNOME
Requires: evolution-data-server = %{?epoch:}%{version}-%{release}
Requires: gconf2-devel
Requires: glib2-devel
Requires: gnome-certauth-devel
Requires: gnome-keyring-devel
Requires: gnome-vfs2-devel
Requires: gtk2-devel
Requires: krb5-devel
Requires: libbonobo-devel
Requires: libcom_err
Requires: libglade2-devel
Requires: libgweather-devel >= 2.25.4
Requires: libgpg-error-devel
Requires: libical-devel >= 0.43
Requires: libsoup-devel
Requires: libxml2-devel
Requires: nss-shared-helper-devel
Requires: orbit2-devel
Requires: sqlite3-devel
%if %suse_version > 1100
Requires: evoldap2-devel
%else
Requires: openldap2-devel
%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
License: GPL v2 or later
Summary: Additional Package Documentation for the evolution-data-server
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description doc
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop. This package contains additional
documentation.
%lang_package
%prep
%setup -q
translation-update-upstream
###%patch3
###%patch4
###%patch5
%patch7 -p1
# NEEDS REBASE
# %%patch16
%patch18 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%{configure} \
--libexecdir=%{_libdir}/evolution-data-server \
%if %suse_version > 1100
--with-openldap=%{_libdir}/evoldap \
%else
--with-openldap=yes \
%endif
--with-krb5=%{_prefix} \
--with-krb4=%{_prefix} \
--enable-gnome-keyring \
--enable-gtk-doc \
--enable-ipv6=yes \
--enable-nss=yes \
--enable-nspr=yes \
--enable-smime=yes \
--enable-nntp=yes \
--enable-hula=yes \
--enable-exchange=yes \
--with-e2k-debug \
--disable-static
%{__make} %{?jobs:-j%jobs}
%install
%{makeinstall}
# Remove the libtool archive files
%{__rm} $RPM_BUILD_ROOT/%{_libdir}/*.la
%{__rm} $RPM_BUILD_ROOT/%{_libdir}/*/*/*.la
%find_lang evolution-data-server-%{_evo_version}
%fdupes $RPM_BUILD_ROOT
%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
echo -e "#!/bin/bash\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib exec -a \"%{_libdir}/evolution-data-server/evolution-data-server-%{_evo_version}\" %{_libdir}/evolution-data-server/evolution-data-server-%{_evo_version}.bin \"\$@\"" > $RPM_BUILD_ROOT/%{_libdir}/evolution-data-server/evolution-data-server-%{_evo_version}
%{__chmod} +x $RPM_BUILD_ROOT/%{_libdir}/evolution-data-server/evolution-data-server-%{_evo_version}
%endif
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS TODO
%{_datadir}/evolution-data-server-%{_evo_version}
%{_datadir}/idl/evolution-data-server-1.2
%{_datadir}/pixmaps/evolution-data-server
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/*
%{_libdir}/evolution-data-server
%{_libdir}/evolution-data-server-1.2
%files lang -f evolution-data-server-%{_evo_version}.lang
%files devel
%defattr(-, root, root)
%{_includedir}/evolution-data-server-%{_evo_version}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/*
%changelog