evolution-data-server/evolution-data-server.spec
OBS User autobuild 556d029107 Accepting request 27070 from GNOME:Factory
Copy from GNOME:Factory/evolution-data-server based on submit request 27070 from user dimstar

OBS-URL: https://build.opensuse.org/request/show/27070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/evolution-data-server?expand=0&rev=67
2009-12-18 12:04:26 +00:00

202 lines
5.7 KiB
RPMSpec

#
# spec file for package evolution-data-server (Version 2.29.3)
#
# 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.30
BuildRequires: bison
BuildRequires: db-devel
%if %suse_version > 1100
BuildRequires: evoldap2-devel
%else
BuildRequires: openldap2-devel
%endif
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-common
BuildRequires: gnome-keyring-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: krb5-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: GPLv2+
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.29.3
Release: 1
Source0: ftp://ftp.gnome.org/pub/gnome/sources/evolution-data-server/2.25/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE dice-eds-changes.patch pchenthill@novell.com -- Patch yet to be pushed upstream
Patch0: dice-eds-changes.patch
# PATCH-FEATURE-OPENSUSE evolution-data-server-shared-nss-db.patch hpj@novell.com -- Migrate to shared NSS database.
Patch1: 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
Requires: libical0 >= 0.43
%description
Evolution Data Server provides a central location for your address book
and calendar in the GNOME Desktop.
%package devel
License: GPLv2+
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-keyring-devel
Requires: gnome-vfs2-devel
Requires: gtk2-devel
Requires: krb5-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: GPLv2+
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
%patch0 -p1
%patch1 -p1
%build
NOCONFIGURE=1 gnome-autogen.sh
%{configure} \
--libexecdir=%{_libexecdir}/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}
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
# 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
%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}/pixmaps/evolution-data-server
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.*.service
%{_libdir}/*.so.*
%{_libdir}/evolution-data-server-1.2
%{_libexecdir}/evolution-data-server
%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