File evolution-exchange.spec of Package evolution-exchange

#
# spec file for package evolution-exchange (Version 2.28.2)
#
# Copyright (c) 2010 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-exchange
# This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in of evolution.
%define evolution_base_version 2.28
%if %suse_version > 1100
BuildRequires:  evoldap2-devel
%else
BuildRequires:  openldap2-devel
%endif
BuildRequires:  evolution-devel
BuildRequires:  fdupes
BuildRequires:  gnome-certauth-devel
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  lzo
BuildRequires:  lzo-devel
BuildRequires:  mozilla-nss-devel
BuildRequires:  nss-shared-helper-devel
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
License:        GPLv2+
Group:          Productivity/Networking/Email/Utilities
AutoReqProv:    on
Version:        2.28.2
Release:        0.<RELEASE1>
Summary:        Evolution Connector for Microsoft Exchange Server 2000/2003
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/evolution-exchange/2.25/%{name}-%{version}.tar.bz2
Url:            http://www.novell.com/products/connector
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
DocDir:         %{_defaultdocdir}/evolution-exchange
PreReq:         filesystem /usr/bin/touch gconf2
Requires:       %{name}-lang = %{version}
Provides:       ximian-connector
Obsoletes:      ximian-connector
%gconf_schemas_prereq

%description
With the Connector for Microsoft Exchange installed, Evolution
functions as an Exchange client, enabling users to become full
participants in companywide group scheduling and other collaborative
tasks. Linux and Solaris users can access public folders, Global
Address Lists, e-mail, calendar, task lists, and group scheduling
information.

%package devel
License:        GPLv2+
Summary:        Evolution Connector for Microsoft Exchange Server 2000/2003
Group:          Productivity/Networking/Email/Utilities
Provides:       ximian-connector-devel
Obsoletes:      ximian-connector-devel
Requires:       %{name} = %{version}
Requires:       gnome-certauth-devel

%description devel
With the Connector for Microsoft Exchange installed, Evolution
functions as an Exchange client, enabling users to become full
participants in companywide group scheduling and other collaborative
tasks. Linux and Solaris users can access public folders, Global
Address Lists, e-mail, calendar, task lists, and group scheduling
information.

%package doc
License:        GPLv2+
Summary:        Documentation about the Evolution Connector for MS Exchange 2000/2003
Group:          Productivity/Networking/Email/Utilities
Requires:       %{name} = %{version}

%description doc
With the Connector for Microsoft Exchange installed, Evolution
functions as an Exchange client, enabling users to become full
participants in companywide group scheduling and other collaborative
tasks. Linux and Solaris users can access public folders, Global
Address Lists, e-mail, calendar, task lists, and group scheduling
information.

This package contains additional documentation for the main package.

%lang_package
%prep
%setup -q

%build
# disable as-needed to fix build
export SUSE_ASNEEDED=0
# autoreconf -f -i
%{configure} \
%if %suse_version > 1100
	--with-openldap=%{_libdir}/evoldap \
%else
	--with-openldap=yes \
%endif
	--enable-gtk-doc \
	--with-e2k-debug \
	--disable-static
%{__make} %{?jobs:-j%jobs}

%install
%{makeinstall}
# Remove the libtool archive files
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*/*/*.la
%find_lang evolution-exchange-%evolution_base_version
%find_gconf_schemas
%{__cat} evolution-exchange.schemas_list > evolution-exchange.lst
%fdupes $RPM_BUILD_ROOT
%if %suse_version > 1100
%{__mv} $RPM_BUILD_ROOT/%{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage $RPM_BUILD_ROOT/%{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage.bin
echo -e "#!/bin/bash\n\nLD_LIBRARY_PATH=%{_libdir}/evoldap/lib exec -a \"%{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage\" %{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage.bin \"\$@\"" > $RPM_BUILD_ROOT/%{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage
%{__chmod} +x $RPM_BUILD_ROOT/%{_libexecdir}/evolution/%evolution_base_version/evolution-exchange-storage
%endif

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f evolution-exchange.lst
%defattr(-, root, root)
%{_bindir}/exchange-connector-setup*
%{_datadir}/evolution-exchange
%{_libdir}/bonobo/servers/*.server
%{_libdir}/evolution-data-server-1.2/camel-providers/*
%{_libexecdir}/evolution/*/evolution-exchange-storage*

%files lang -f evolution-exchange-%evolution_base_version.lang

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/%{name}

%changelog
openSUSE Build Service is sponsored by