%define product ExtFile %define version 1.4.4 %define release 5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: A Zope product to store larges files outside the ZODB Name: erp5-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: System/Servers Source0: %{product}-%{version}.tar.bz2 URL: http://www.zope.org/Members/shh/ExtFile BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Requires: erp5-zope python2.4-imaging Conflicts: ExtFile #---------------------------------------------------------------------- %description A Zope product to store larges files outside the ZODB. #---------------------------------------------------------------------- %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}/README.txt %{product}/CHANGES.txt %{product}/UPGRADE.txt %{product}/version.txt %{software_home}/Products/* #---------------------------------------------------------------------- %changelog * Wed Aug 8 2007 Kazuhiko Shiozaki 1.4.4-5mdv2007.1 - add *.pyc * Mon Jan 22 2007 Kevin Deldycke 1.4.4-4mdv2007.0 - Rebuild for Mandriva 2007.0 * Thu Mar 09 2006 Kevin Deldycke 1.4.4-3mdk - Add a conflict statement with ExtFile * Wed Feb 01 2006 Kevin Deldycke 1.4.4-2mdk - Give ownership to zope * Wed Jan 18 2006 Kevin Deldycke 1.4.4-1mdk - New release for Mandriva 2006 - Spec file updated - Update to version 1.4.4 * Fri May 13 2005 Nicolas L�ureuil 1.1.3-4mdk - Rebuild * Wed Sep 05 2003 Sebastien Robin 1.1.3-3mdk - Update spec in order to follows Mandrake Rules * Wed Apr 25 2003 Sebastien Robin 1.1.3-2nxd - Clean the spec file * Mon Feb 3 2003 Jean-Paul Smets 1.1.3-1nxd - Initial release