%define product Zelenium %define version 0.8+ %define svn_rev 82198 %define rpm_prefix erp5 %define zope_home %{_prefix}/lib/erp5 %define software_home %{zope_home}/lib/python Summary: A Zope-Selenium Integration to create Selenium test suites through-the-web. Name: %{rpm_prefix}-%{product} Version: %{version} Release: %mkrel 1 License: ZPL Group: System/Servers URL: http://www.zope.org/Members/tseaver/Zelenium # svn://svn.zope.org/repos/main/Zelenium/trunk Source0: %{product}-%{version}-%{svn_rev}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir BuildArch: noarch Requires: %{rpm_prefix}-zope #---------------------------------------------------------------------- %description This product allows developers to create through-the-web Selenium test suites inside their Zope instance, in order to do browser-based functional testing of their site. #---------------------------------------------------------------------- %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 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 * Sun Feb 1 2009 Kazuhiko Shiozaki 0.8+-1nxd2009.0 - svn trunk r.82198 * Wed Aug 8 2007 Kazuhiko Shiozaki 0.8-3mdv2007.1 - add *.pyc * Mon Jan 22 2007 Kevin Deldycke 0.8-2mdv2007.0 - Rebuild for Mandriva 2007.0 * Wed May 17 2006 Kevin Deldycke 0.8-1mdk - Initial release