[Erp5-report] r8019 - in /spec/mandriva/2006.0/zope-TimerService: ./ zope-TimerService.spec
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jun 19 17:40:29 CEST 2006
Author: kevin
Date: Mon Jun 19 17:40:24 2006
New Revision: 8019
URL: http://svn.erp5.org?rev=8019&view=rev
Log:
Commit zope-TimerService-0.2-1mdk spec files and patches
Added:
spec/mandriva/2006.0/zope-TimerService/
spec/mandriva/2006.0/zope-TimerService/zope-TimerService.spec
Added: spec/mandriva/2006.0/zope-TimerService/zope-TimerService.spec
URL: http://svn.erp5.org/spec/mandriva/2006.0/zope-TimerService/zope-TimerService.spec?rev=8019&view=auto
==============================================================================
--- spec/mandriva/2006.0/zope-TimerService/zope-TimerService.spec (added)
+++ spec/mandriva/2006.0/zope-TimerService/zope-TimerService.spec Mon Jun 19 17:40:24 2006
@@ -1,0 +1,68 @@
+%define product TimerService
+%define version 0.2
+%define release 1
+
+%define zope_home %{_prefix}/lib/zope
+%define software_home %{zope_home}/lib/python
+%define python_home %{_libdir}/python%pyver/site-packages
+
+Summary: Timer server for Zope
+Name: zope-%{product}
+Version: %{version}
+Release: %mkrel %{release}
+License: GPL
+Group: System/Servers
+Source0: %{product}-%{version}.tar.bz2
+URL: http://dev.legco.biz/products/timerservice
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
+BuildArch: noarch
+Requires: zope
+
+#----------------------------------------------------------------------
+%description
+Timer server for Zope.
+
+#----------------------------------------------------------------------
+%prep
+%setup -c
+
+%build
+#cd %{product}/timerserver
+#python setup.py build
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}/%{software_home}/Products
+%{__cp} -a * %{buildroot}%{software_home}/Products/
+
+%{__mkdir_p} %{buildroot}/%{python_home}
+mv -f %{buildroot}%{software_home}/Products/%{product}/timerserver %{buildroot}/%{python_home}
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%post
+# Configure the zope server to make ot aware of the timerserver
+echo "%import timerserver
+<timer-server>
+</timer-server>" >> /etc/zope.conf
+# Restart zope server
+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)
+%doc %{product}/INSTALL.txt %{product}/CREDITS.txt %{product}/version.txt
+%{python_home}/timerserver
+%{software_home}/Products/*
+
+#----------------------------------------------------------------------
+%changelog
+* Wed Jan 18 2006 Kevin Deldycke <kevin at nexedi.com> 0.2-1mdk
+- Initial release
More information about the Erp5-report
mailing list