%define product iHotfix %define version 0.5.2 %define release 7 %define rpm_prefix erp5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: Localizer's dynamic patch for Zope Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: Development/Python Source0: %{product}-%{version}.tar.bz2 Patch0: iHotfix-0.5.2-get_request.patch.bz2 Patch1: iHotfix-0.5.2-no_mx.DateTime_patch.patch.bz2 URL: http://www.ikaaro.org/localizer/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Requires: %{rpm_prefix}-zope python2.4 python2.4-itools #---------------------------------------------------------------------- %description This product dynamically patches Zope to fix four problems: the global request, the accept language, unicode for ZPT and mx.DateTime. #---------------------------------------------------------------------- %prep %setup -q -c %patch0 -p1 %patch1 -p1 %build %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}%{software_home}/Products %{__cp} -a * %{buildroot}%{software_home}/Products/ %py_compile %{buildroot}%{software_home}/Products %clean %{__rm} -rf %{buildroot} %post if [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then service erp5 restart fi %postun if [ "$1" = "0" ] && [ "`%{_prefix}/bin/zopectl-erp5 status`" != "daemon manager not running" ] ; then service erp5 restart fi %files %defattr(0644, zope, zope, 0755) %doc %{product}/CHANGES.txt %{product}/README.txt %{product}/TODO.txt %{product}/version.txt %{software_home}/Products/* #---------------------------------------------------------------------- %changelog * Mon Oct 6 2008 Kazuhiko Shiozaki 0.5.2-7mdv2008.1 - drop the patch for mxDateTime, that does not work * Wed Aug 8 2007 Kazuhiko Shiozaki 0.5.2-6mdv2007.1 - add *.pyc * Mon Jan 22 2007 Kevin Deldycke 0.5.2-5mdv2007.0 - Rebuild for Mandriva 2007.0 * Wed Feb 01 2006 Kevin Deldycke 0.5.2-4mdk - Give ownership to zope * Wed Jan 6 2006 Kevin Deldycke 0.5.2-3mdk - Update spec file to follow Mandriva 2006 rules - Update the patch * Tue Apr 25 2005 Yoshinori Okuji 0.5.2-2mdk - Depend on python-itools instead of itools * Sun Apr 24 2005 Yoshinori Okuji 0.5.2-1mdk - Initial package