%define Product Marshall %define product marshall %define name zope-%{Product} %define version 0.6.1 %define release %mkrel 1 %define zope_minver 2.7 %define zope_home %{_prefix}/lib/zope %define software_home %{zope_home}/lib/python Name: %{name} Version: %{version} Release: %{release} Summary: A new look for Plone 3 License: GPL Group: System/Servers URL: http://plone.org/products/%{product} Source: http://plone.org/products/%{product}/releases/%{version}/%{Product}-%{version}.tgz Requires: zope >= %{zope_minver} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description A developers framework for rapidly developing and deploying rich, full featured content types within the context of Zope/CMF and Plone %prep %setup -c -q %build # Not much, eh? :-) %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}/%{software_home}/Products %{__cp} -a * %{buildroot}%{software_home}/Products/ %clean %{__rm} -rf %{buildroot} %post if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then service zope restart fi %postun if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then service zope restart fi %files %defattr(-,root,root) %{software_home}/Products/* %changelog * Sun Sep 16 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.6.1-1mdv2008.0 + Revision: 88702 - import zope-Marshall