- initial release
authorciesiel <ciesiel@pld-linux.org>
Sat, 20 Mar 2004 11:48:31 +0000 (11:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-TimerService.spec -> 1.1

Zope-TimerService.spec [new file with mode: 0644]

diff --git a/Zope-TimerService.spec b/Zope-TimerService.spec
new file mode 100644 (file)
index 0000000..22c1503
--- /dev/null
@@ -0,0 +1,94 @@
+# WARNING: not working propertly - Zope 2.7 not started 
+#
+%include       /usr/lib/rpm/macros.python
+%define                zope_subname    TimerService
+%define                module timerserver
+Summary:       Support module for Zope-Scheduler
+Summary(pl):   Modu³ wspomagaj±cy dla Zope-Scheduler
+Name:          Zope-%{zope_subname}
+Version:       0.2
+Release:       0.1
+License:       GPL
+Group:         Libraries/Python
+Source0:       http://dev.legco.biz/downloads/%{zope_subname}-%{version}.tar.gz
+# Source0-md5: 5fb0fce2b90f69478a9370b313a45aa9
+Source1:       Zope-timerserver_remover
+URL:           http://dev.legco.biz/products/timerservice/
+%pyrequires_eq python-modules
+Requires:      Zope
+Requires:      perl-modules
+Requires(post,postun): /usr/sbin/installzopeproduct
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Support module for Zope-Scheduler.
+
+%description -l pl
+Modu³ wspomagaj±cy dla Zope-Scheduler.
+
+%prep
+%setup -q -c
+
+%build
+CFLAGS="%{rpmcflags}"
+export CLFAGS
+cd %{zope_subname}/timerserver
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -d $RPM_BUILD_ROOT%{py_sitedir}
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/Zope-timerserver_remover
+
+cp -af %{zope_subname}/timerserver $RPM_BUILD_ROOT%{py_sitedir}/%{module}
+cp -af %{zope_subname}/{zpt,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+#cd $RPM_BUILD_ROOT%{_datadir}/%{name}/%{module}
+#
+#python setup.py install \
+#        --root=$RPM_BUILD_ROOT \
+#        --optimize=2
+#rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/timerserver
+
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}/%{module}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/%{module}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
+
+ln -s %{py_sitedir}/%{module} /usr/lib/zope/lib/python/timerserver
+
+echo "%import timerserver" >> /etc/zope/main/zope.conf
+echo "<timer-server>" >> /etc/zope/main/zope.conf
+echo "</timer-server>" >> /etc/zope/main/zope.conf
+
+if [ -f /var/lock/subsys/zope ]; then
+       /etc/rc.d/init.d/zope restart >&2
+fi
+
+%preun
+/usr/sbin/Zope-timerserver_remover
+
+%postun
+if [ "$1" = "0" ]; then
+       /usr/sbin/installzopeproduct -d %{zope_subname}
+       if [ -f /var/lock/subsys/zope ]; then
+            /etc/rc.d/init.d/zope restart >&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/Zope-timerserver_remover
+%doc %{zope_subname}/{CREDITS.txt,INSTALL.txt}
+%{_datadir}/%{name}
+%{py_sitedir}/%{module}
This page took 0.038412 seconds and 4 git commands to generate.