File mingw-evolution.spec of Package mingw-evolution

Name:		mingw-evolution
Version:	3.6.2
Release:	1%{?dist}
Summary:	MinGW port of the Integrated GNOME Mail, Calendar, and Address Book suite.

License:	GPLv2+

# From native packages
Patch01:	evolution-1.4.4-ldap-x86_64-hack.patch
Patch02:	evolution-2.30.1-help-contents.patch		

BuildRequires:	mingw32-filesystem >= 95
BuildRequires:	mingw64-filesystem >= 95
BuildRequires:	mingw32-gcc mingw64-gcc
BuildRequires:	mingw32-gcc-c++ mingw64-gcc-c++
BuildRequires:	mingw32-pkg-config mingw64-pkg-config
BuildRequires:	mingw32-binutils mingw64-binutils
BuildRequires:	mingw32-win-iconv mingw64-win-iconv
BuildRequires:	mingw32-glib2 mingw64-glib2
BuildRequires:	mingw32-gtk3 mingw64-gtk3
BuildRequires:	mingw32-gconf2 mingw64-gconf2
BuildRequires:	mingw32-libxml2 mingw64-libxml2
BuildRequires:	mingw32-libsoup mingw64-libsoup
# TODO: Build
BuildRequires:	mingw32-libdb mingw64-libdb
#BuildRequires:	mingw32-mozilla-nss mingw64-mozilla-nss
# TODO: Build
BuildRequires:	mingw32-evolution-data-server mingw64-evolution-data-server
BuildRequires:	mingw32-enchant mingw64-enchant
# TODO: Build
BuildRequires:	mingw32-shared-mime-info mingw64-shared-mime-info
# TODO: What?
BuildRequires:	mingw32-gnome-doc-utils mingw64-gnome-doc-utils
# TODO: Build
BuildRequires:	mingw32-libytnef mingw64-libytnef
# TODO: Build
BuildRequires:	mingw32-libpst mingw64-libpst
#BuildRequires:	mingw32-gtkhtml3 mingw64-gtkhtml3
BuildRequires:	mingw32-webkitgtk3 mingw64-webkitgtk3
BuildRequires:	mingw32-gstreamer mingw64-gstreamer
# TODO: Build
BuildRequires:	mingw32-libgweather mingw64-libgweather
BuildRequires:	mingw32-gettext mingw64-gettext
BuildRequires:	mingw32-dbus-glib mingw64-dbus-glib
BuildRequires:	mingw32-libgnurx mingw64-libgnurx
# TODO: Build
BuildRequires:	mingw32-libgdata mingw64-libgdata
# TODO: Build
BuildRequires:	mingw32-openldap mingw64-openldap

BuildRequires:	glib2-devel
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	python
BuildRequires:	libxml2-python
BuildRequires:	gnome-doc-utils
BuildRequires:	intltool
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool


Evolution is the GNOME mailer, calendar, contact manager and
communications tool.  The components which make up Evolution
are tightly integrated with one another and act as a seamless
personal information-management tool.

%setup -q -n evolution-%{version}
%patch01 -p1 -b .ldapcheck
%patch02 -p1 -b .help-contents

mkdir -p krb5-fakeprefix/include
mkdir -p krb5-fakeprefix/lib
mkdir -p krb5-fakeprefix/%{_lib}

# Remove the welcome email from Novell
for inbox in mail/default/*/Inbox; do
  echo -n "" > $inbox


CFLAGS="-fPIC -DLDAP_DEPRECATED -Wno-sign-compare"; export CFLAGS

aclocal -I m4
intltoolize --force

%mingw_configure \
	--disable-maintainer-mode \
	--disable-image-inline \
	--enable-gtk-doc \
	--with-sub-version=" (%{version}-%{release}) " \
	--with-kde-applink-path=no \
	--with-openldap=yes \
	--without-krb5 \
	--enable-nss=yes \
	--enable-smime=yes \
	--enable-plugins=all \

export tagname=CC

%mingw_make %{?_smp_mflags} LIBTOOL=/usr/bin/libtool CFLAGS="${CFLAGS} -fno-strict-aliasing"

export tagname=CC

%mingw_make LIBTOOL=/usr/bin/libtool install DESTDIR=%{buildroot}

find %{buildroot} -name '*.la' -delete


* Mon Dec 10 2012 Greg Hellings <> - 3.6.2-1
- Initial build