%define product MailTemplates %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 %define instance_home /var/lib/erp5 Summary: Base objects for ERP5 Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel %{release} License: GPL Group: System/Servers URL: http://www.erp5.org Source0: %{product}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Conflicts: ERP5Type Requires: %{rpm_prefix}-zope #---------------------------------------------------------------------- %description ERP5 Mail_Template #---------------------------------------------------------------------- %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 mkdir -p %{instance_home}/Document 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 * Sat Apr 25 2009 Kazuhiko Shiozaki 5.4.2-1nxd2009.0 - version 5.4.2 * 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 * Wed Jul 09 2008 0.1-2nxd2008.0 - updated to revision 22405 * Fri Jun 13 2008 0.1-1mdv - Create the spec file - First build with SVN revision 21582