%define product MimetypesRegistry %define version 1.4.0 %define release 4 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: A Zope product to handle mime types information. Name: erp5-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: System/Servers Source0: %{product}-%{version}.tar.bz2 URL: http://sourceforge.net/projects/archetypes/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Requires: erp5-zope Conflicts: MimetypesRegistry #---------------------------------------------------------------------- %description A Zope product to handle mime types information. #---------------------------------------------------------------------- %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 * Mon Oct 1 2007 Ivan Tyagov 1.4.0-4mdv2007.1 - Initial release