Disable bogofilter subpackage if EL6+
This commit is contained in:
parent
aac48978e4
commit
4b4690d64b
@ -1,3 +1,6 @@
|
|||||||
|
# Variable must exist even if unused
|
||||||
|
%{?!rhel:%define rhel 0}
|
||||||
|
|
||||||
%define dbus_glib_version 0.70
|
%define dbus_glib_version 0.70
|
||||||
%define dbus_version 1.0
|
%define dbus_version 1.0
|
||||||
%define glib2_version 2.16.0
|
%define glib2_version 2.16.0
|
||||||
@ -192,6 +195,8 @@ This package contains conduits for synchronizing PalmPilot<tm> or other
|
|||||||
PalmOS<tm> devices with %{name}.
|
PalmOS<tm> devices with %{name}.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
%package bogofilter
|
%package bogofilter
|
||||||
Group: Applications/Productivity
|
Group: Applications/Productivity
|
||||||
Summary: Bogofilter plugin for Evolution
|
Summary: Bogofilter plugin for Evolution
|
||||||
@ -200,6 +205,7 @@ Requires: bogofilter
|
|||||||
|
|
||||||
%description bogofilter
|
%description bogofilter
|
||||||
This package contains the plugin to filter junk mail using Bogofilter.
|
This package contains the plugin to filter junk mail using Bogofilter.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package spamassassin
|
%package spamassassin
|
||||||
Group: Applications/Productivity
|
Group: Applications/Productivity
|
||||||
@ -367,6 +373,13 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/mime-info/evolution.mime
|
|||||||
grep "/usr/share/locale" evolution-%{evo_major}.lang > translations.lang
|
grep "/usr/share/locale" evolution-%{evo_major}.lang > translations.lang
|
||||||
grep -v "/usr/share/locale" evolution-%{evo_major}.lang > help.lang
|
grep -v "/usr/share/locale" evolution-%{evo_major}.lang > help.lang
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
|
rm -f $RPM_BUILD_ROOT%{evo_plugin_dir}/org-gnome-bogo-junk-plugin.eplug
|
||||||
|
rm -f $RPM_BUILD_ROOT%{evo_plugin_dir}/liborg-gnome-bogo-junk-plugin.so
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ "$1" -gt 1 ] ; then
|
if [ "$1" -gt 1 ] ; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
@ -381,9 +394,12 @@ gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/apps_evolutio
|
|||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
%pre bogofilter
|
%pre bogofilter
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -402,9 +418,12 @@ gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/apps-evolution-
|
|||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/apps_evolution_email_custom_header.schemas > /dev/null || :
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/apps_evolution_email_custom_header.schemas > /dev/null || :
|
||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
%post bogofilter
|
%post bogofilter
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" -eq 0 ] ; then
|
if [ "$1" -eq 0 ] ; then
|
||||||
@ -420,11 +439,14 @@ gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/apps_evolutio
|
|||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/evolution-mail.schemas > /dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
%preun bogofilter
|
%preun bogofilter
|
||||||
if [ "$1" -eq 0 ] ; then
|
if [ "$1" -eq 0 ] ; then
|
||||||
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
||||||
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas > /dev/null || :
|
||||||
fi
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -660,11 +682,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_libdir}/gnome-pilot/conduits/e-todo.conduit
|
%{_libdir}/gnome-pilot/conduits/e-todo.conduit
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 6
|
||||||
|
# Disable bogofilter subpackage if EL6+
|
||||||
%files bogofilter
|
%files bogofilter
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{evo_plugin_dir}/org-gnome-bogo-junk-plugin.eplug
|
%{evo_plugin_dir}/org-gnome-bogo-junk-plugin.eplug
|
||||||
%{evo_plugin_dir}/liborg-gnome-bogo-junk-plugin.so
|
%{evo_plugin_dir}/liborg-gnome-bogo-junk-plugin.so
|
||||||
%{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas
|
%{_sysconfdir}/gconf/schemas/bogo-junk-plugin.schemas
|
||||||
|
%endif
|
||||||
|
|
||||||
%files spamassassin
|
%files spamassassin
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@ -684,6 +709,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Dec 02 2009 Warren Togami <wtogami@redhat.com> - 2.29.3-1
|
||||||
|
- Disable bogofilter subpackage if EL6+
|
||||||
|
|
||||||
* Mon Nov 30 2009 Milan Crha <mcrha@redhat.com> - 2.29.3-1.fc13
|
* Mon Nov 30 2009 Milan Crha <mcrha@redhat.com> - 2.29.3-1.fc13
|
||||||
- Update to 2.29.3
|
- Update to 2.29.3
|
||||||
- Add patch for missing m4 files from tarball.
|
- Add patch for missing m4 files from tarball.
|
||||||
|
Loading…
Reference in New Issue
Block a user