From edc10e261dddfae9d1e6050e210173ebb170c1c6 Mon Sep 17 00:00:00 2001 From: paladine Date: Fri, 8 Apr 2005 11:54:27 +0000 Subject: [PATCH] - new style macros - don't package deprecated gnome-mime-data stuff - rel. 3, STBR Changed files: evolution.spec -> 1.165 --- evolution.spec | 56 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/evolution.spec b/evolution.spec index b291762..5b8e16a 100644 --- a/evolution.spec +++ b/evolution.spec @@ -20,7 +20,7 @@ Summary(pt_BR): Cliente de email integrado com calend 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 @@ -60,11 +60,12 @@ BuildRequires: nss-devel 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 @@ -212,8 +213,8 @@ Palmem. %patch3 -p1 %build -glib-gettextize --copy --force -intltoolize --copy --force +%{__glib_gettextize} +%{__intltoolize} %{__libtoolize} %{__aclocal} %{__autoheader} @@ -269,6 +270,8 @@ 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 + ln -sf evolution-2.0 $RPM_BUILD_ROOT%{_bindir}/evolution %find_lang %{name} --all-name --with-gnome @@ -277,32 +280,46 @@ ln -sf evolution-2.0 $RPM_BUILD_ROOT%{_bindir}/evolution 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) @@ -352,7 +369,6 @@ rm -rf $RPM_BUILD_ROOT %{_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 -- 2.44.0