#
+# TODO:
+# - it builds without kerberos5 support (undefined reference to `krb5_init_context'), check why and fix it
+#
# Conditional build:
%bcond_without ldap # build without ldap support
%bcond_without kerberos5 # build without kerberos5 support
%bcond_without pilot # build without pilot support
#
-%define basever 2.6
+%define basever 2.12
#
Summary: The GNOME Email/Calendar/Addressbook Suite
-Summary(pl): Klient poczty dla GNOME/Kalendarz/Ksi±¿ka Adresowa
-Summary(pt_BR): Cliente de email integrado com calendário e catálogo de endereços
-Summary(zh_CN): Evolution - GNOME¸öÈ˺͹¤×÷×éÐÅÏ¢¹ÜÀí¹¤¾ß(°üÀ¨µç×ÓÓʼþ£¬ÈÕÀúºÍµØÖ·±¡)
+Summary(pl.UTF-8): Klient poczty dla GNOME/Kalendarz/Książka Adresowa
+Summary(pt_BR.UTF-8): Cliente de email integrado com calendário e catálogo de endereços
+Summary(zh_CN.UTF-8): Evolution - GNOME个人和工作组信息管理工具(包括电子邮件,日历和地址薄)
Name: evolution
-Version: 2.6.0
-Release: 1.2
+Version: 2.12.0
+Release: 0.1
License: GPL v2
Group: Applications/Mail
-Source0: http://ftp.gnome.org/pub/gnome/sources/evolution/2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: 5c98650b2ccf3581e7cf5af3927b95d1
+Source0: http://ftp.gnome.org/pub/GNOME/sources/evolution/2.12/%{name}-%{version}.tar.bz2
+# Source0-md5: aaa378a63477b56de214ea9eaa7f8560
Source1: %{name}-gg16.png
Source2: %{name}-gg48.png
Source3: %{name}-addressbook.desktop
Source6: %{name}-tasks.desktop
Patch0: %{name}-nolibs.patch
Patch1: %{name}-gnome-icon-theme.patch
-Patch2: %{name}-GG-IM.patch
-URL: http://www.ximian.com/products/ximian_evolution/
-BuildRequires: GConf2-devel >= 2.12.0
-BuildRequires: ORBit2-devel >= 1:2.12.3
+Patch2: %{name}-groupwise-features-link.patch
+Patch3: %{name}-composer_includes.patch
+URL: http://www.gnome.org/projects/evolution/
+BuildRequires: GConf2-devel >= 2.20.0
+BuildRequires: ORBit2-devel >= 1:2.14.8
+BuildRequires: atk-devel >= 1:1.20.0
BuildRequires: autoconf >= 2.52
BuildRequires: automake
BuildRequires: bison
-BuildRequires: dbus-glib-devel
-BuildRequires: evolution-data-server-devel >= 1.6.0
+BuildRequires: dbus-glib-devel >= 0.73
+BuildRequires: evolution-data-server-devel >= 1.12.0
BuildRequires: flex
-BuildRequires: freetype-devel >= 2.0.5
BuildRequires: gettext-devel
-BuildRequires: gnome-common >= 2.8.0
-%{?with_pilot:BuildRequires: gnome-pilot-devel >= 2.0.13}
-BuildRequires: gnome-vfs2-devel >= 2.12.0
-BuildRequires: gtk-doc >= 1.4
-BuildRequires: gtkhtml-devel >= 3.8.1
-%{?with_kerberos5:BuildRequires: heimdal-devel}
-BuildRequires: intltool >= 0.33
-BuildRequires: libglade2-devel >= 1:2.5.1
-BuildRequires: libgnomeprintui-devel >= 2.12.0
-BuildRequires: libgnomeui-devel >= 2.12.0
-BuildRequires: libsoup-devel >= 2.2.6.1
+BuildRequires: gnome-common >= 2.18.0
+BuildRequires: gnome-doc-utils >= 0.11.2
+%{?with_pilot:BuildRequires: gnome-pilot-devel >= 2.0.14}
+BuildRequires: gnome-vfs2-devel >= 2.20.0
+BuildRequires: gtk-doc >= 1.8
+BuildRequires: gtk+2-devel >= 2:2.12.0
+BuildRequires: gtkhtml-devel >= 3.16.0
+BuildRequires: hal-devel >= 0.5.9
+%{?with_kerberos5:BuildRequires: krb5-devel}
+BuildRequires: intltool >= 0.36.2
+BuildRequires: libbonoboui-devel >= 2.20.0
+BuildRequires: libglade2-devel >= 1:2.6.2
+BuildRequires: libgnomeprintui-devel >= 2.18.1
+BuildRequires: libgnomeui-devel >= 2.20.0
+BuildRequires: libnotify-devel >= 0.3.0
+BuildRequires: libsoup-devel >= 2.2.100
BuildRequires: libtool
-BuildRequires: libxml2
+BuildRequires: libxml2-devel >= 1:2.6.30
BuildRequires: nspr-devel
BuildRequires: nss-devel
%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
BuildRequires: pkgconfig
BuildRequires: psmisc
BuildRequires: python
-BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: rpmbuild(macros) >= 1.311
BuildRequires: scrollkeeper >= 0.1.4
BuildRequires: which
-Requires(post,preun): GConf2
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
Requires(post,postun): scrollkeeper
+Requires(post,preun): GConf2
Requires: %{name}-component = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
-Requires: GConf2 >= 2.12.0
+Requires: GConf2 >= 2.20.0
Requires: bonobo-activation
-Requires: evolution-data-server >= 1.6.0
-Requires: gtkhtml >= 3.10.0
+Requires: evolution-data-server >= 1.12.0
+Requires: gtkhtml >= 3.16.0
Requires: hicolor-icon-theme
-Requires: libglade2 >= 1:2.5.1
+Requires: libglade2 >= 1:2.6.2
Requires: psmisc
Requires: scrollkeeper >= 0.1.4
Obsoletes: evolution2
integrated with one another and act as a seamless personal
information-management tool.
-%description -l pl
-Evolution to program pocztowy GNOME, kalendarz, ksi±¿ka adresowa i
-narzêdzie komunikacyjne.
+%description -l pl.UTF-8
+Evolution to program pocztowy GNOME, kalendarz, książka adresowa i
+narzędzie komunikacyjne.
-%description -l pt_BR
-Evolution é um cliente de email para o GNOME com calendário e outras
+%description -l pt_BR.UTF-8
+Evolution é um cliente de email para o GNOME com calendário e outras
ferramentas interessantes.
%package libs
Summary: Evolution libraries
-Summary(pl): Biblioteki Evolution
+Summary(pl.UTF-8): Biblioteki Evolution
Group: Development/Libraries
%description libs
This package contains Evolution libraries.
-%description libs -l pl
+%description libs -l pl.UTF-8
Pakiet zawiera biblioteki Evolution.
%package devel
Summary: Header files for evolution
-Summary(pl): Pliki nag³ówkowe i dokumentacja
-Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento
-Summary(zh_CN): Evolution×é¼þ¿ª·¢¿â
+Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja
+Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento
+Summary(zh_CN.UTF-8): Evolution组件开发库
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: cyrus-sasl-devel
-Requires: evolution-data-server-devel >= 1.6.0
+Requires: evolution-data-server-devel >= 1.12.0
Requires: freetype-devel
-Requires: gnome-vfs2-devel >= 2.12.1
-Requires: gtkhtml-devel >= 3.10.0
-Requires: libglade2-devel >= 1:2.5.1
-Requires: libgnomeprintui-devel >= 2.12.0
-Requires: libgnomeui-devel >= 2.12.0
-Requires: libsoup-devel >= 2.2.6.1
+Requires: gnome-vfs2-devel >= 2.20.0
+Requires: gtkhtml-devel >= 3.16.0
+Requires: libglade2-devel >= 1:2.6.2
+Requires: libgnomeprintui-devel >= 2.18.1
+Requires: libgnomeui-devel >= 2.20.0
+Requires: libsoup-devel >= 2.2.100
Requires: nspr-devel
Requires: nss-devel
%{?with_ldap:Requires: openldap-devel >= 2.3.0}
This package contains the files necessary to develop applications
using Evolution's libraries.
-%description devel -l pl
-Pakiet zawiera pliki potrzebne do rozwoju aplikacji u¿ywaj±cych
+%description devel -l pl.UTF-8
+Pakiet zawiera pliki potrzebne do rozwoju aplikacji używających
bibliotek programu Evolution.
-%description devel -l pt_BR
-Este pacote contém os arquivos necessários para desenvolvimento de
-aplicações utilizando as bibliotecas do Evolution.
+%description devel -l pt_BR.UTF-8
+Este pacote contém os arquivos necessários para desenvolvimento de
+aplicações utilizando as bibliotecas do Evolution.
%package static
Summary: Static libraries for evolution
-Summary(pl): Biblioteki statyczne dla evolution
-Summary(pt_BR): Bibliotecas estáticas para desenvolvimento
+Summary(pl.UTF-8): Biblioteki statyczne dla evolution
+Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Obsoletes: evolution2-static
%description static
This package contains static libraries for Evolution.
-%description static -l pl
+%description static -l pl.UTF-8
Pakiet zawiera statyczne biblioteki Evolution.
-%description static -l pt_BR
-Este pacote contém as bibliotecas estáticas para desenvolvimento de
-aplicações.
+%description static -l pt_BR.UTF-8
+Este pacote contém as bibliotecas estáticas para desenvolvimento de
+aplicações.
%package mail
Summary: Evolution mail component
-Summary(pl): Modu³ pocztowy Evolution
+Summary(pl.UTF-8): Moduł pocztowy Evolution
Group: X11/Applications
# mail composer requires addressbook component
-Requires: %{name}-addressbook = %{version}-%{release}
Requires(post,preun): GConf2
+Requires: %{name}-addressbook = %{version}-%{release}
Provides: %{name}-component = %{version}-%{release}
%description mail
Evolution mail.
-%description mail -l pl
-Modu³ pocztowy Evolution.
+%description mail -l pl.UTF-8
+Moduł pocztowy Evolution.
%package addressbook
Summary: Evolution addressbook component
-Summary(pl): Modu³ ksi±¿ki adresowej Evolution
+Summary(pl.UTF-8): Moduł książki adresowej Evolution
Group: X11/Applications
-Requires: %{name} = %{version}-%{release}
+Requires(post,postun): desktop-file-utils
Requires(post,preun): GConf2
+Requires: %{name} = %{version}-%{release}
Provides: %{name}-component = %{version}-%{release}
%description addressbook
Evolution addressbook.
-%description addressbook -l pl
-Ksi±¿ka adresowa Evolution.
+%description addressbook -l pl.UTF-8
+Książka adresowa Evolution.
%package calendar
Summary: Evolution calendar and todo component
-Summary(pl): Modu³ kalendarza i listy zadañ Evolution
+Summary(pl.UTF-8): Moduł kalendarza i listy zadań Evolution
Group: X11/Applications
-Requires: %{name} = %{version}-%{release}
Requires(post,preun): GConf2
+Requires: %{name} = %{version}-%{release}
Provides: %{name}-component = %{version}-%{release}
%description calendar
Evolution calendar and todo component.
-%description calendar -l pl
-Kalendarz i lista zadañ Evolution.
+%description calendar -l pl.UTF-8
+Kalendarz i lista zadań Evolution.
%package pilot
Summary: Evolution conduits for gnome-pilot
-Summary(pl): Dodatki do wymiany danych z gnome-pilot
+Summary(pl.UTF-8): Dodatki do wymiany danych z gnome-pilot
Group: X11/Applications
Requires: %{name} = %{version}-%{release}
Requires: gnome-pilot
This package contains conduits needed by gnome-pilot to synchronize
your Palm with Evolution.
-%description pilot -l pl
+%description pilot -l pl.UTF-8
Ten pakiet zawiera dodatki do synchronizacji danych Evolution z
Palmem.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
%{__glib_gettextize}
%{__automake}
%configure \
--enable-gtk-doc \
+ --disable-scrollkeeper \
%{?with_pilot:--enable-pilot-conduits=yes} \
%{!?with_pilot:--enable-pilot-conduits=no} \
%{?with_ldap:--with-openldap=yes} \
--enable-nss=yes \
--enable-smime=yes \
--enable-static \
+ --with-sub-version=" PLD Linux" \
--enable-file-chooser
# hack to rebuild *.c and *.h from *.idl (check if needed with new versions)
# remove useless files
rm -f $RPM_BUILD_ROOT%{_libdir}/evolution/*/*/*.{a,la}
rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-pilot/*/*.{a,la}
-rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
-rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info
+rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
rm -r $RPM_BUILD_ROOT%{_desktopdir}/evolution.desktop
-ln -sf evolution-%{basever} $RPM_BUILD_ROOT%{_bindir}/evolution
-
%find_lang %{name} --all-name --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%gconf_schema_install apps_evolution_shell-%{basever}.schemas
+%gconf_schema_install apps_evolution_shell.schemas
%scrollkeeper_update_post
+%update_icon_cache hicolor
%preun
-%gconf_schema_uninstall apps_evolution_shell-%{basever}.schemas
+%gconf_schema_uninstall apps_evolution_shell.schemas
%postun
%scrollkeeper_update_postun
+%update_icon_cache hicolor
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%post mail
-%gconf_schema_install evolution-mail-%{basever}.schemas
+%gconf_schema_install evolution-mail.schemas
+%gconf_schema_install bogo-junk-plugin.schemas
%preun mail
-%gconf_schema_uninstall evolution-mail-%{basever}.schemas
+%gconf_schema_uninstall evolution-mail.schemas
+%gconf_schema_uninstall bogo-junk-plugin.schemas
%post addressbook
-%gconf_schema_install apps_evolution_addressbook-%{basever}.schemas
+%update_desktop_database_post
+%gconf_schema_install apps_evolution_addressbook.schemas
%preun addressbook
-%gconf_schema_uninstall apps_evolution_addressbook-%{basever}.schemas
+%gconf_schema_uninstall apps_evolution_addressbook.schemas
+
+%postun addressbook
+%update_desktop_database_postun
%post calendar
-%gconf_schema_install apps_evolution_calendar-%{basever}.schemas
+%gconf_schema_install apps_evolution_calendar.schemas
%preun calendar
-%gconf_schema_uninstall apps_evolution_calendar-%{basever}.schemas
+%gconf_schema_uninstall apps_evolution_calendar.schemas
%files -f evolution.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/evolution/%{basever}/evolution-alarm-notify
%attr(755,root,root) %{_libdir}/evolution/%{basever}/killev
-%dir %{_libdir}/evolution
-%dir %{_libdir}/evolution/%{basever}
-%dir %{_libdir}/evolution/%{basever}/plugins
-%dir %{_libdir}/evolution/%{basever}/components
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*plugin-manager*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*sa-junk*.so
%{_libdir}/evolution/%{basever}/plugins/*plugin-manager*.eplug
%{_libdir}/evolution/%{basever}/plugins/*sa-junk*.eplug
%{_libdir}/evolution/%{basever}/plugins/*plugin-manager*.xml
-%{_libdir}/bonobo/servers/GNOME_Evolution_Shell_*.server
+%{_libdir}/bonobo/servers/GNOME_Evolution_Shell.server
%dir %{_datadir}/evolution
%dir %{_datadir}/evolution/%{basever}
%{_datadir}/evolution/%{basever}/*.xml
%lang(de) %dir %{_datadir}/evolution/%{basever}/default/de
+%lang(es) %dir %{_datadir}/evolution/%{basever}/default/es
+%lang(fi) %dir %{_datadir}/evolution/%{basever}/default/fi
+%lang(fr) %dir %{_datadir}/evolution/%{basever}/default/fr
%lang(ja) %dir %{_datadir}/evolution/%{basever}/default/ja
+%lang(lt) %dir %{_datadir}/evolution/%{basever}/default/lt
+%lang(mk) %dir %{_datadir}/evolution/%{basever}/default/mk
%lang(nl) %dir %{_datadir}/evolution/%{basever}/default/nl
+%lang(pl) %dir %{_datadir}/evolution/%{basever}/default/pl
%lang(pt) %dir %{_datadir}/evolution/%{basever}/default/pt
+%lang(sv) %dir %{_datadir}/evolution/%{basever}/default/sv
%lang(zh_CN) %dir %{_datadir}/evolution/%{basever}/default/zh_CN
%{_datadir}/evolution/%{basever}/errors
%{_datadir}/idl/evolution-%{basever}/Evolution.idl
%{_datadir}/idl/evolution-%{basever}/Evolution-Shell.idl
-%{_iconsdir}/hicolor/*/apps/*.png
-%{_pixmapsdir}/*.png
+%{_iconsdir}/hicolor/*/apps/*
%{_omf_dest_dir}/%{name}
-%{_sysconfdir}/gconf/schemas/apps_evolution_shell-%{basever}.schemas
+%{_sysconfdir}/gconf/schemas/apps_evolution_shell.schemas
%files libs
%defattr(644,root,root,755)
+%dir %{_libdir}/evolution
+%dir %{_libdir}/evolution/%{basever}
+%dir %{_libdir}/evolution/%{basever}/components
+%dir %{_libdir}/evolution/%{basever}/plugins
%attr(755,root,root) %{_libdir}/evolution/%{basever}/lib*.so.*
%files devel
%{_libdir}/evolution/%{basever}/*.la
%{_includedir}/%{name}-%{basever}
-%{_pkgconfigdir}/evolution-*-%{basever}.pc
+%{_pkgconfigdir}/evolution-*.pc
%files static
%defattr(644,root,root,755)
%files mail
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/evolution/%{basever}/components/libevolution-mail.so
+%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*bogo-junk*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*mail*.so
+%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*imap*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*exchange*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*print-message*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*itip*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*mark-all-read*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*startup-wizard*.so
+%{_libdir}/evolution/%{basever}/plugins/*bogo-junk*.eplug
%{_libdir}/evolution/%{basever}/plugins/*mail*.eplug
+%{_libdir}/evolution/%{basever}/plugins/*imap*.eplug
%{_libdir}/evolution/%{basever}/plugins/*exchange*.eplug
%{_libdir}/evolution/%{basever}/plugins/*print-message*.eplug
%{_libdir}/evolution/%{basever}/plugins/*itip*.eplug
%{_libdir}/evolution/%{basever}/plugins/*folder*.xml
%{_libdir}/evolution/%{basever}/plugins/*print-message*.xml
%{_libdir}/evolution/%{basever}/plugins/*compose-send*.xml
-%{_libdir}/bonobo/servers/GNOME_Evolution_Mail_*.server
+%{_libdir}/bonobo/servers/GNOME_Evolution_Mail.server
%{_datadir}/evolution/%{basever}/default/C/mail
%{_datadir}/evolution/%{basever}/views/mail
%{_datadir}/evolution/%{basever}/etspec/*message-list*
%{_datadir}/evolution/%{basever}/etspec/*contact-list*
+
%lang(de) %{_datadir}/evolution/%{basever}/default/de/mail
+%lang(es) %{_datadir}/evolution/%{basever}/default/es/mail
%lang(fi) %{_datadir}/evolution/%{basever}/default/fi/mail
%lang(fr) %{_datadir}/evolution/%{basever}/default/fr/mail
%lang(ja) %{_datadir}/evolution/%{basever}/default/ja/mail
%lang(lt) %{_datadir}/evolution/%{basever}/default/lt/mail
%lang(mk) %{_datadir}/evolution/%{basever}/default/mk/mail
%lang(nl) %{_datadir}/evolution/%{basever}/default/nl/mail
+%lang(pl) %{_datadir}/evolution/%{basever}/default/pl/mail
%lang(pt) %{_datadir}/evolution/%{basever}/default/pt/mail
+%lang(sv) %{_datadir}/evolution/%{basever}/default/sv/mail
%lang(zh_CN) %{_datadir}/evolution/%{basever}/default/zh_CN/mail
%{_datadir}/idl/evolution-%{basever}/Composer.idl
%{_datadir}/idl/evolution-%{basever}/Evolution-Composer.idl
%{_datadir}/idl/evolution-%{basever}/Evolution-Mail.idl
%{_desktopdir}/%{name}-mail.desktop
-%{_sysconfdir}/gconf/schemas/evolution-mail-%{basever}.schemas
+%{_sysconfdir}/gconf/schemas/evolution-mail.schemas
+%{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas
%files addressbook
%defattr(644,root,root,755)
%{_desktopdir}/%{name}-addressbook.desktop
-%{_sysconfdir}/gconf/schemas/apps_evolution_addressbook-%{basever}.schemas
+%{_sysconfdir}/gconf/schemas/apps_evolution_addressbook.schemas
%files calendar
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/evolution/%{basever}/components/libevolution-calendar.so
%{_libdir}/bonobo/servers/GNOME_Evolution_Calendar*
-%{_libdir}/evolution/%{basever}/plugins/publish-calendar.glade
+#%{_libdir}/evolution/%{basever}/plugins/publish-calendar.glade
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*calendar*.so
%attr(755,root,root) %{_libdir}/evolution/%{basever}/plugins/*default-source*.so
%{_desktopdir}/%{name}-calendar.desktop
%{_desktopdir}/%{name}-tasks.desktop
-%{_sysconfdir}/gconf/schemas/apps_evolution_calendar-%{basever}.schemas
+%{_sysconfdir}/gconf/schemas/apps_evolution_calendar.schemas
%if %{with pilot}
%files pilot