%define product CMF %define version 1.5.4 %define release 3 %define zope_minver 2.7.3 %define rpm_prefix erp5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: Zope Content Management Framework Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel %{release} License: ZPL Group: System/Servers Source: http://zope.org/Products/CMF/CMF-%{version}/CMF-%{version}.tar.bz2 URL: http://www.zope.org/Products/CMF/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: %{rpm_prefix}-zope >= %{zope_minver} Provides: %{rpm_prefix}-CMFActionIcons Obsoletes: %{rpm_prefix}-CMFActionIcons Provides: CMF = %{version} Obsoletes: CMF %description The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. %prep %setup -q -n %{product}-%{version} %build %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}%{software_home}/Products %{__cp} -a CMF* %{buildroot}%{software_home}/Products/ %{__cp} -a DCWorkflow %{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, root, root, 0755) %{software_home}/Products/* %doc docs *.txt %changelog * Fri Mar 23 2008 Julien Gormotte 1.5.4-4mdv2008.0 - Rebuild for Mandriva 2008.0 * Wed Aug 8 2007 Kazuhiko Shiozaki 1.5.4-3mdv2007.1 - add *.pyc * Mon Jan 22 2007 Kevin Deldycke 1.5.4-2mdv2007.0 - Rebuild for Mandriva 2007.0 * Sat Oct 22 2005 Gaetan Lehmann 1.5.4-1mdk - New release 1.5.4 * Sun Aug 21 2005 Gaetan Lehmann 1.4.8-3mdk - fix path on x86_64 * Sun May 15 2005 Gaetan Lehmann 1.4.8-2mdk - provides/obsoletes CMF * Sun Apr 24 2005 Gaetan Lehmann 1.4.8-1mdk - New release 1.4.8 - use mkrel * Thu Jan 27 2005 Gaetan Lehmann 1.4.7-1mdk - initial contrib