Sophie

Sophie

distrib > Mandriva > 10.0-com > x86_64 > by-pkgid > 54e89ec2e589bf4be8ee6d643e61e31e > files > 3

ximian-connector-1.4.7.3-2mdk.src.rpm

%define major_version 1.4
%define evolution-version_required 1.4.6

Name:		ximian-connector
Summary:	Exchange Connector for Evolution
Version: 	%{major_version}.7.3
Release:	2mdk
License: 	GPL
Group:		Networking/Mail
Source0: 	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
Patch0:		ximian-connector-1.4.7.3-lib64.patch.bz2

URL: 		http://www.ximian.com/products/ximian_evolution/
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

# (fc) 0.8-5mdk implicit dependency is not enough
Requires: evolution = 1.4.6
BuildRequires: evolution-devel = 1.4.6
BuildRequires: openldap-devel >= 2.1.25-6.100.1mdk
Requires: %{mklibname ldap 2} >= 2.1.25-6.100.1mdk

%description
Evolution-exchange is a connector to allow access to Exchange server 
for Evolution.

This package is also known as Ximian Connector.

%prep
%setup -q 
%patch0 -p1 -b .lib64
autoconf

%build

#we don't use libtool 1.5 yet
%define __libtoolize /bin/true

%configure2_5x --with-openldap=yes --with-static-ldap=no 

cd lib
make e2k-propnames.h
cd ..

%make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%makeinstall_std


#remove unpackaged files
rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/%{major_version}/components/*.{a,la} \
 $RPM_BUILD_ROOT%{_libdir}/evolution/%{major_version}/camel-providers/*.{a,la} \
 $RPM_BUILD_ROOT%{_libdir}/evolution/%{major_version}/evolution-mail-importers/*.{a,la} \
 $RPM_BUILD_ROOT%{_libdir}/evolution/%{major_version}/evolution-calendar-importers/*.{a,la}

%{find_lang} %{name}-%{major_version} --with-gnome

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
for SCHEMA in apps_evolution_exchange ; do
 gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null
done

%preun
if [ "$1" = "0" ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
for SCHEMA in apps_evolution_exchange; do
 gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$SCHEMA.schemas > /dev/null
done
fi

%files -f %{name}-%{major_version}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_sysconfdir}/gconf/schemas/*
%{_bindir}/*
%{_libdir}/bonobo/servers/*
%{_libexecdir}/evolution/%{major_version}/evolution-exchange-storage
%{_libdir}/evolution/%{major_version}/camel-providers/*.so*
%{_libdir}/evolution/%{major_version}/camel-providers/*.urls
%{_datadir}/evolution/1.4/images/*
%{_datadir}/ximian-connector

%changelog
* Tue Sep 21 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.4.7.3-2mdk
- lib64 fixes

* Fri Aug 13 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.4.7.3-1mdk
- Release 1.4.7.3
- Remove patch 0 (merged upstream)

* Fri Jul 30 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.4.7.2-2mdk
- Rebuild with NTLM support in openldap

* Tue Jul 27 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.4.7.2-1mdk
- Release 1.4.7.2 
- Patch0 (CVS): fix crash when delegator has no account

* Tue May 11 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.4.7-1mdk
- Initial Mdk package