%define product ZMySQLDDA %define version 5.4.2 %define release 1 %define rpm_prefix erp5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: The deferred version of ZMySQLDA zope product. Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: System/Servers URL: http://www.erp5.org Source0: http://www.erp5.org/dists/release/%{version}/%{product}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Conflicts: ZMySQLDDA Requires: %{rpm_prefix}-ZMySQLDA %{rpm_prefix}-zope MySQL-python2.4 #---------------------------------------------------------------------- %description This Zope Product is a deferred of ZMySQLDA and follows the same API. The main difference with ZMySQLDA is that the execution of SQL expressions is deferred and executed during the Zope commit time rather than immediately. This allows for example to group INSERT and DELETE statements in a very short amount of time, which reduces risks of lock. It also allows to use MyISAM tables without raising useless exception messages related to the non transactional nature of MyISAM. #---------------------------------------------------------------------- %prep %setup -q -c %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}/DEPENDENCIES.txt %{product}/README.txt %{product}/VERSION.txt %{software_home}/Products/* #---------------------------------------------------------------------- %changelog * Sat Apr 25 2009 Kazuhiko Shiozaki 5.4.2-1nxd2009.0 - version 5.4.2 * Sat Apr 18 2009 Kazuhiko Shiozaki 5.4.1-1nxd2009.0 - version 5.4.1 * Tue Mar 3 2009 Kazuhiko Shiozaki 5.4-1nxd2009.0 - version 5.4 * Tue Nov 4 2008 Kazuhiko Shiozaki 5.3-1nxd2008.1 - version 5.3 * Mon Oct 06 2008 Kazuhiko Shiozaki 5.1.2-1nxd2008.1 - version 5.1.2 * Fri Mar 23 2008 Julien Gormotte 2.0.9b2-8mdv2008.0 - New build from the SVN repository (SVN rev: 20187) * Mon Jan 7 2008 Julien Gormotte 2.0.9b2-7mdv2008.0 - New build from the SVN repository (SVN rev: 18630) * Wed Aug 8 2007 Kazuhiko Shiozaki 2.0.9-6mdv2007.1 - add *.pyc * Mon Jan 22 2007 Kevin Deldycke 2.0.9-5mdv2007.0 - Rebuild for Mandriva 2007.0 * Tue Jan 09 2007 Kevin Deldycke 2.0.9-4mdk - New build from the SVN repository (SVN rev: 11944; last changed rev: 11895) * Tue Jan 09 2007 Kevin Deldycke 2.0.9-3mdk - New build from the SVN repository (SVN rev: 11944; last changed rev: 11895) * Mon Jan 08 2007 Kevin Deldycke 2.0.9-2mdk - New build from the SVN repository * Tue May 02 2006 Kevin Deldycke 2.0.9-1mdk - Initial build