%define product CMFPhoto %define version 1.2.3 %define release 10 %define rpm_prefix erp5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: Custom version for ERP5 of the official CMFPhoto Zope product Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: System/Servers Source: %{product}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Requires: %{rpm_prefix}-zope, %{rpm_prefix}-CMF < 1.6.0, %{rpm_prefix}-Photo %description Extremely useful Zope Product for representing a resizable image (photo) in a Plone or CMF based site. Like Zope's standard Image but smarter. Requires either the ImageMagick or PIL package on your system, which can be tricky to install. This CMFPhoto product is different from the official CMFPhoto products that you can find at http://cvs.sourceforge.net/viewcvs.py/collective/CMFPhoto . The latter is packaged as "zope-CMFPhoto". The erp5-CMFPhoto is a custom version made by Nexedi from an old version of CMFPhoto. To make things perfect, new code from erp5-CMFPhoto must be merged with the official CMFPhoto, to let us deprecate erp5-CMFPhoto. %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) %{software_home}/Products/* #---------------------------------------------------------------------- %changelog * Wed Aug 8 2007 Kazuhiko Shiozaki 1.2.3-10mdv2007.1 - add *.pyc * Tue Jan 23 2007 Kevin Deldycke 1.2.3-9mdv2007.0 - CMFPhoto for ERP5 is based on CMF 1.5 branch. No greater version are officially supported. * Mon Jan 22 2007 Kevin Deldycke 1.2.3-8mdv2007.0 - Rebuild for Mandriva 2007.0 * Wed Feb 01 2006 Kevin Deldycke 1.2.3-7mdk - Give Ownership to zope * Tue Jan 24 2006 Kevin Deldycke 1.2.3-6mdk - Add "Conflicts:" statement - Delete "Provides:" statement * Wed Jan 05 2006 Kevin Deldycke 1.2.3-5mdk - Rewrite spec file based on the one written by Gaetan Lehmann for the zope-CMFPhoto release for Mandriva 2006 - Add 'erp5' prefix to package name - Update the description * Thu Sep 04 2003 Sebatien Robin 1.2.3-4mdk - Change in the spec file '/usr/lib' by %{_libdir} * Wed Sep 03 2003 S�astien Robin 1.2.3-3mdk - Update this rpm in order to follows Mandrake rules * Wed Apr 25 2003 S�astien Robin 1.2.3-2nxd - Clean the spec file * Mon Feb 03 2003 Jean-Paul Smets 1.2.3-1nxd - Initial release