File mingw32-evolution.spec of Package mingw32-evolution

#
# spec file for package mingw32-evolution
#
# Copyright (c) 2014 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/
#


Name:           mingw32-evolution
Version:        2.32.3
Release:        0
Summary:        MinGW Windows port of the Integrated GNOME Mail, Calendar, and Address Book Suite
License:        GPL-2.0-or-later
Group:          Development/Libraries
Url:            http://projects.gnome.org/evolution/
Source0:        ftp://ftp.gnome.org/pub/gnome/sources/evolution/2.32/evolution-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
Patch0:         evolution-2.31.2-defaultdialog.patch
Patch1:         evolution-2.32.2-deprecated.patch
Patch2:         evolution-2.32.3-g_thread_init.patch
Patch3:         evolution-2.32.3-gmodule.patch
Patch4:         evolution-2.32.3-ar.patch
Patch5:         0001-Bug-681321-Support-both-old-and-new-buf-libxml2-APIs.patch
Patch6:         evolution-2.32.3-pst.patch
Patch7:         evolution-2.32.3-libical2.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-dbus-1-glib-devel
BuildRequires:  mingw32-enchant-devel
BuildRequires:  mingw32-evolution-data-server-devel >= %{version}
BuildRequires:  mingw32-filesystem >= 25
BuildRequires:  mingw32-gconf2-devel
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gnome-desktop-devel
BuildRequires:  mingw32-gnome-doc-utils
BuildRequires:  mingw32-gnome-doc-utils-devel
BuildRequires:  mingw32-gnome-icon-theme-devel
BuildRequires:  mingw32-gstreamer-0_10-devel >= 0.10.0
BuildRequires:  mingw32-gtk2-devel >= 2.20.0
BuildRequires:  mingw32-gtkhtml2-devel >= 3.31.2
BuildRequires:  mingw32-gtkimageview-devel
BuildRequires:  mingw32-libdb-devel
BuildRequires:  mingw32-libgdata-devel
BuildRequires:  mingw32-libgnurx-devel
BuildRequires:  mingw32-libgweather-devel
BuildRequires:  mingw32-libpst-devel
BuildRequires:  mingw32-libsoup-devel
BuildRequires:  mingw32-libunique-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-libytnef-devel
BuildRequires:  mingw32-mozilla-nss-devel
BuildRequires:  mingw32-shared-mime-info-devel
BuildRequires:  mingw32-win_iconv-devel
Requires:       %{name}-lang
Requires:       mingw32-iso-codes
Requires:       mingw32-shared-mime-info
%_mingw32_package_header_debug
BuildArch:      noarch
%if 0%{?suse_version} <= 1120
BuildRequires:  gnome-doc-utils
%else
BuildRequires:  xml2po
%endif

%description
Evolution consists of modular components (at the moment: mailer,
calendar, and address book) that should make daily life easier. Because
of the modular design, it is possible to plug new components into
Evolution or embed the existing ones in other applications.

%package devel
Summary:        MinGW Windows port of the Integrated GNOME Mail, Calendar, and Address Book Suite
Group:          Development/Libraries

%description devel
Evolution consists of modular components (at the moment: mailer,
calendar, and address book) that should make daily life easier. Because
of the modular design, it is possible to plug new components into
Evolution or embed the existing ones in other applications.
Include Files and Libraries mandatory for Development.

%_mingw32_debug_package

%lang_package

%prep
%setup -q -n evolution-%{version}

%patch -P 0  -b .defaultdialog
%patch -P 1  -b .deprecated
%patch -P 2 -p1 -b .g_thread_init
%patch -P 3 -p1 -b .gmodule
%patch -P 4 -p1 -b .ar
%patch -P 5 -p1 -b .libxml2
%patch -P 6 -p1 -b .pst
%patch -P 7 -p1 -b .libical

%build
%{_mingw32_env}; NOCONFIGURE=indeed PATH="$PATH:%{_mingw32_bindir}" \
ACLOCAL_FLAGS='-I%{_mingw32_datadir}/aclocal' \
AUTOMAKE=automake gnome-autogen.sh
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}

MINGW32_CFLAGS="-I%{_mingw32_includedir}/libytnef %{_mingw32_cflags} -fcommon"; export MINGW32_CFLAGS; \
CPPFLAGS=$MINGW32_CFLAGS; export CPPFLAGS; \
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--disable-scrollkeeper \
	--enable-plugins=experimental \
	--disable-schemas-install \
	--disable-nm \
	--disable-contacts-map \
	--disable-canberra

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw32_libdir}/evolution/2.32/plugins/*.dll.a
rm -f %{buildroot}%{_mingw32_libdir}/evolution/2.32/modules/*.dll.a
rm -f %{buildroot}%{_mingw32_sysconfdir}/xdg/autostart/evolution-alarm-notify.desktop
rm -f %{buildroot}%{_mingw32_datadir}/applications/evolution.desktop
rm -f %{buildroot}%{_mingw32_datadir}/applications/evolution-settings.desktop

%find_lang evolution-2.32

%files
%defattr(-,root,root)
%{_mingw32_bindir}/evolution.exe
%{_mingw32_bindir}/evolution-alarm-notify.exe
%{_mingw32_bindir}/evolution-settings.exe
%{_mingw32_bindir}/libart_lgpl-0.dll
%{_mingw32_bindir}/libcomposer-0.dll
%{_mingw32_bindir}/libeabutil-0.dll
%{_mingw32_bindir}/libecontacteditor-0.dll
%{_mingw32_bindir}/libecontactlisteditor-0.dll
%{_mingw32_bindir}/libemformat-0.dll
%{_mingw32_bindir}/libemiscwidgets-0.dll
%{_mingw32_bindir}/libeshell-0.dll
%{_mingw32_bindir}/libessmime-0.dll
%{_mingw32_bindir}/libetable-0.dll
%{_mingw32_bindir}/libetext-0.dll
%{_mingw32_bindir}/libetimezonedialog-0.dll
%{_mingw32_bindir}/libeutil-0.dll
%{_mingw32_bindir}/libevolution-a11y-0.dll
%{_mingw32_bindir}/libevolution-addressbook-importers-0.dll
%{_mingw32_bindir}/libevolution-calendar-0.dll
%{_mingw32_bindir}/libevolution-calendar-importers-0.dll
%{_mingw32_bindir}/libevolution-mail-0.dll
%{_mingw32_bindir}/libevolution-mail-importers-0.dll
%{_mingw32_bindir}/libevolution-mail-settings-0.dll
%{_mingw32_bindir}/libevolution-smime-0.dll
%{_mingw32_bindir}/libfilter-0.dll
%{_mingw32_bindir}/libgnomecanvas-0.dll
%{_mingw32_bindir}/libmenus-0.dll
%{_mingw32_datadir}/evolution/2.32
%{_mingw32_datadir}/gnome/help/evolution
%{_mingw32_datadir}/icons/hicolor
%{_mingw32_datadir}/mime-info
%{_mingw32_datadir}/omf/evolution
%{_mingw32_libdir}/evolution/2.32/modules/*.dll
%{_mingw32_libdir}/evolution/2.32/plugins/*.dll
%{_mingw32_libdir}/evolution/2.32/plugins/*.eplug
%{_mingw32_libdir}/evolution/2.32/plugins/*.xml
%{_mingw32_libexecdir}/evolution/2.32/csv2vcard
%{_mingw32_libexecdir}/evolution/2.32/evolution-addressbook-clean
%{_mingw32_libexecdir}/evolution/2.32/evolution-addressbook-export.exe
%{_mingw32_libexecdir}/evolution/2.32/evolution-backup.exe
%{_mingw32_sysconfdir}/gconf/schemas

%files lang -f evolution-2.32.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw32_datadir}/gtk-doc/html/eshell
%{_mingw32_includedir}/evolution-2.32/addressbook/gui/widgets
%{_mingw32_includedir}/evolution-2.32/calendar/common
%{_mingw32_includedir}/evolution-2.32/calendar/gui
%{_mingw32_includedir}/evolution-2.32/composer
%{_mingw32_includedir}/evolution-2.32/e-util
%{_mingw32_includedir}/evolution-2.32/em-format
%{_mingw32_includedir}/evolution-2.32/filter
%{_mingw32_includedir}/evolution-2.32/libart_lgpl
%{_mingw32_includedir}/evolution-2.32/libgnomecanvas
%{_mingw32_includedir}/evolution-2.32/mail
%{_mingw32_includedir}/evolution-2.32/menus
%{_mingw32_includedir}/evolution-2.32/misc
%{_mingw32_includedir}/evolution-2.32/shell
%{_mingw32_includedir}/evolution-2.32/table
%{_mingw32_includedir}/evolution-2.32/text
%{_mingw32_libdir}/libart_lgpl.dll.a
%{_mingw32_libdir}/libcomposer.dll.a
%{_mingw32_libdir}/libeabutil.dll.a
%{_mingw32_libdir}/libecontacteditor.dll.a
%{_mingw32_libdir}/libecontactlisteditor.dll.a
%{_mingw32_libdir}/libemformat.dll.a
%{_mingw32_libdir}/libemiscwidgets.dll.a
%{_mingw32_libdir}/libeshell.dll.a
%{_mingw32_libdir}/libessmime.dll.a
%{_mingw32_libdir}/libetable.dll.a
%{_mingw32_libdir}/libetext.dll.a
%{_mingw32_libdir}/libetimezonedialog.dll.a
%{_mingw32_libdir}/libeutil.dll.a
%{_mingw32_libdir}/libevolution-a11y.dll.a
%{_mingw32_libdir}/libevolution-addressbook-importers.dll.a
%{_mingw32_libdir}/libevolution-calendar.dll.a
%{_mingw32_libdir}/libevolution-calendar-importers.dll.a
%{_mingw32_libdir}/libevolution-mail.dll.a
%{_mingw32_libdir}/libevolution-mail-importers.dll.a
%{_mingw32_libdir}/libevolution-mail-settings.dll.a
%{_mingw32_libdir}/libevolution-smime.dll.a
%{_mingw32_libdir}/libfilter.dll.a
%{_mingw32_libdir}/libgnomecanvas.dll.a
%{_mingw32_libdir}/libmenus.dll.a
%{_mingw32_libdir}/pkgconfig/evolution-calendar.pc
%{_mingw32_libdir}/pkgconfig/evolution-mail.pc
%{_mingw32_libdir}/pkgconfig/evolution-plugin.pc
%{_mingw32_libdir}/pkgconfig/evolution-shell.pc

%changelog
openSUSE Build Service is sponsored by