Summary(zh_CN): Evolution - GNOME2¸öÈ˺͹¤×÷×éÐÅÏ¢¹ÜÀí¹¤¾ß(°üÀ¨µç×ÓÓʼþ£¬ÈÕÀúºÍµØÖ·±¡)
Name: evolution
Version: 2.2.1.1
-Release: 2
+Release: 3
License: GPL v2
Group: Applications/Mail
Source0: http://ftp.gnome.org/pub/gnome/sources/evolution/2.2/%{name}-%{version}.tar.bz2
BuildRequires: pkgconfig
BuildRequires: psmisc
BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.197
BuildRequires: scrollkeeper >= 0.1.4
BuildRequires: which
Requires(post,postun): /sbin/ldconfig
-Requires(post,postun): /usr/bin/scrollkeeper-update
-Requires(post): GConf2
+Requires(post,preun): GConf2
+Requires(post,postun): scrollkeeper
Requires: %{name}-component = %{version}-%{release}
Requires: GConf2 >= 2.10.0
Requires: bonobo-activation
%patch3 -p1
%build
-glib-gettextize --copy --force
-intltoolize --copy --force
+%{__glib_gettextize}
+%{__intltoolize}
%{__libtoolize}
%{__aclocal}
%{__autoheader}
rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info
+
ln -sf evolution-2.0 $RPM_BUILD_ROOT%{_bindir}/evolution
%find_lang %{name} --all-name --with-gnome
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/ldconfig
-/usr/bin/scrollkeeper-update
-%gconf_schema_install
+%gconf_schema_install apps_evolution_shell-2.2.schemas
+%ldconfig_post
+%scrollkeeper_update_post
+
+%preun
+%gconf_schema_uninstall apps_evolution_shell-2.2.schemas
%postun
-/sbin/ldconfig
-/usr/bin/scrollkeeper-update
+%ldconfig_postun
+%scrollkeeper_update_postun
%post mail
-/sbin/ldconfig
-%gconf_schema_install
+%gconf_schema_install evolution-mail-2.2.schemas
+%ldconfig_post
+
+%preun mail
+%gconf_schema_uninstall evolution-mail-2.2.schemas
%postun mail
-/sbin/ldconfig
+%ldconfig_postun
%post addressbook
-/sbin/ldconfig
-%gconf_schema_install
+%gconf_schema_install apps_evolution_addressbook-2.2.schemas
+%ldconfig_post
+
+%preun addressbook
+%gconf_schema_uninstall apps_evolution_addressbook-2.2.schemas
-%postun addressbook -p /sbin/ldconfig
+%postun addressbook
+%ldconfig_postun
%post calendar
-/sbin/ldconfig
-%gconf_schema_install
+%gconf_schema_install apps_evolution_calendar-2.2.schemas
+%ldconfig_post
+
+%preun
+%gconf_schema_uninstall apps_evolution_calendar-2.2.schemas
-%postun calendar -p /sbin/ldconfig
+%postun calendar
+%ldconfig_postun
%files -f evolution.lang
%defattr(644,root,root,755)
%{_datadir}/evolution/*/images
%{_datadir}/evolution/*/ui
%{_datadir}/evolution/*/weather
-%{_datadir}/mime-info/*
%{_datadir}/idl/evolution-*/Evolution-Component.idl
%{_datadir}/idl/evolution-*/Evolution-ConfigControl.idl
%{_datadir}/idl/evolution-*/Evolution-Offline.idl