%define Product PluginRegistry %define product pluginregistry %define name zope-%{Product} %define version 1.1.2 %define release %mkrel 6 %define zope_minver 2.7 %define plone_minver 2.0 %define zope_home %{_prefix}/lib/zope %define software_home %{zope_home}/lib/python Name: %{name} Version: %{version} Release: %{release} Summary: Tool for Product developers to enable a pluggable architecture License: GPL Group: System/Servers URL: http://www.zope.org/Products/%{Product} Source: http://zope.org/Products/%{Product}/%{Product}-%{version}/%{Product}-%{version}.tar.gz Requires: zope >= %{zope_minver} Requires: zope-Plone >= %{plone_minver} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description PluginRegistry is a tool for Product developers to enable a pluggable architecture. %prep %setup -c %build # Not much, eh? :-) %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot}/%{software_home}/Products %{__cp} -a %{Product}-%{version} %{buildroot}%{software_home}/Products/%{Product} %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 * Mon Aug 04 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.1.2-6mdv2009.0 + Revision: 263223 - rebuild * Mon Aug 04 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.1.2-5mdv2009.0 + Revision: 262899 - rebuild * Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.1.2-3mdv2008.1 + Revision: 171201 - rebuild - fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake - fix description-line-too-long - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Sep 20 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.1.2-2mdv2008.0 + Revision: 91601 - fix dependencies * Sun Sep 16 2007 Guillaume Rousse <guillomovitch@mandriva.org> 1.1.2-1mdv2008.0 + Revision: 88579 - new version * Tue Aug 08 2006 glehmann + 08/08/06 13:58:32 (54456) Import zope-PluginRegistry