+#
+# configure: WARNING:
+# No NTLM support in OpenLDAP; Plaintext password authentication will be
+# used when connecting to the Global Catalog server. Consider installing
+# the evo-openldap package, or building OpenLDAP with the patch in
+# docs/openldap-ntlm.diff
+#
+%define filterout_ld -Wl,--as-needed
Summary: Microsoft Exchange support for Evolution
-Summary(pl): Obs³uga Microsoft Exchange dla Evolution
+Summary(pl.UTF-8): Wsparcie dla Microsoft Exchange w Evolution
Name: evolution-exchange
-Version: 2.3.5
-Release: 0.1
+Version: 2.10.3
+Release: 2
License: GPL v2
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-exchange/2.3/%{name}-%{version}.tar.bz2
-# Source0-md5: c482766dd37172d59bca602fd1d02a2d
-BuildRequires: GConf2-devel
+Source0: http://ftp.gnome.org/pub/gnome/sources/evolution-exchange/2.10/%{name}-%{version}.tar.bz2
+# Source0-md5: 4e2024c1af8fdef1b9f4764632171711
+BuildRequires: GConf2-devel >= 2.18.0.1
BuildRequires: autoconf >= 2.53
BuildRequires: automake
-BuildRequires: evolution-data-server-devel >= 1.3.1
-BuildRequires: gtk+2-devel >= 2:2.6.4
-BuildRequires: heimdal-devel >= 0.7
-BuildRequires: intltool
-BuildRequires: libgnomeui-devel >= 2.11.0
-BuildRequires: libsoup-devel >= 2.2.3
-BuildRequires: openldap-devel
+BuildRequires: evolution-data-server-devel >= 1.10.3.1
+BuildRequires: evolution-devel >= 2.10.3
+BuildRequires: gtk+2-devel >= 2:2.10.14
+BuildRequires: gtk-doc >= 1.8
+BuildRequires: krb5-devel
+BuildRequires: intltool >= 0.35.5
+BuildRequires: libbonobo-devel >= 2.18.0
+BuildRequires: libglade2-devel >= 2.6.0
+BuildRequires: libgnomeprint-devel >= 2.18.0
+BuildRequires: libgnomeui-devel >= 2.18.1
+BuildRequires: libsoup-devel >= 2.2.100
+BuildRequires: libxml2-devel >= 1:2.6.28
+BuildRequires: openldap-devel >= 2.3.0
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.197
Requires(post,preun): GConf2
-Requires: evolution >= 2.3.5
-Requires: gtk+2 >= 2:2.6.4
+Requires: evolution >= 2.10.3
+Requires: gtk+2 >= 2:2.10.14
Obsoletes: ximian-connector
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This package adds support for Microsoft Exchange 2000 and 2003 to Evolution.
+This package adds support for Microsoft Exchange 2000 and 2003 to
+Evolution.
-%description -l pl
-Ten pakiet dodaje do Evolution obs³ugê Microsoft Exchange 2000 i 2003.
+%description -l pl.UTF-8
+Ten pakiet dodaje do Evolution obsługę Microsoft Exchange 2000 i 2003.
+
+%package apidocs
+Summary: Microsoft Exchange support for Evolution API documentation
+Summary(pl.UTF-8): Dokumentacja API wsparcia Microsoft Exchange w Evolution
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+Microsoft Exchange support for Evolution API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API wsparcia Microsoft Exchange w Evolution.
%prep
%setup -q
%build
+%{__glib_gettextize}
+%{__intltoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
- --with-openlda-=/usr \
+ --with-openldap=/usr \
--with-krb5=/usr \
--disable-schemas-install \
+ --enable-gtk-doc \
--with-html-dir=%{_gtkdocdir}
%{__make}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT \
- GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+ DESTDIR=$RPM_BUILD_ROOT
-rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
-rm -f $RPM_BUILD_ROOT%{_libdir}/evolution-data-server-*/camel-providers/*.*a
+rm -f $RPM_BUILD_ROOT%{_libdir}/evolution-data-server-*/camel-providers/*.{la,a}
-%find_lang %{name}-2.4
+%find_lang %{name}-2.10
%clean
rm -rf $RPM_BUILD_ROOT
-#post
-#gconf_schema_install evolution-webcal.schemas
+%post
+%gconf_schema_install apps_exchange_addressbook-2.10.schemas
-#preun
-#gconf_schema_uninstall evolution-webcal.schemas
+%preun
+%gconf_schema_uninstall apps_exchange_addressbook-2.10.schemas
-%files -f %{name}-2.4.lang
+%files -f %{name}-2.10.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/ximian-connector-setup-*
+%doc AUTHORS ChangeLog NEWS README
+%{_sysconfdir}/gconf/schemas/apps_exchange_addressbook-2.10.schemas
+%attr(755,root,root) %{_bindir}/exchange-connector-setup-*
+%attr(755,root,root) %{_libdir}/evolution-data-server-*/camel-providers/*.so
%attr(755,root,root) %{_libdir}/evolution/*/evolution-exchange-storage
+%{_datadir}/%{name}
%{_libdir}/bonobo/servers/*
-%attr(755,root,root) %{_libdir}/evolution-data-server-*/camel-providers/*.so
-#%attr(755,root,root) %{_libdir}/evolution/*/*.so.*
%{_libdir}/evolution-data-server-*/camel-providers/*.urls
-%{_datadir}/%{name}
+
+%files apidocs
+%defattr(644,root,root,755)
%{_gtkdocdir}/*