%define product Formulator %define version 1.8.0 %define release 1mdk %define zope_minver 2.6 %define zope_home %{_libdir}/zope %define software_home %{zope_home}/lib/python Summary: Formulator is an extensible framework that eases the creation and validation of web forms Name: zope-%{product} Version: %{version} Release: %{release} License: GPL Group: System/Servers Source: http://www.infrae.com/download/Formulator/%{version}/Formulator-%{version}.tar.bz2 URL: http://www.infrae.com/download/Formulator BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: zope >= %{zope_minver} %description Formulator is an extensible framework that eases the creation and validation of web forms. %prep %setup -c %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(0644, root, root, 0755) %{software_home}/Products/* %changelog * Thu Jan 27 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.8.0-1mdk - initial contrib