1 %define zope_subname ZopeScheduler
2 Summary: Cron like service for Zope
3 Summary(pl.UTF-8): Produkt dla Zope pomocny przy wywoływaniu okresowych zadań
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dev.legco.biz/downloads/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: 0dfcd5fa753a499b7e9f294971971f40
11 URL: http://dev.legco.biz/products/ZopeScheduler/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
17 Requires: Zope-TimerService
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 ZopeScheduler - Cron like service for Zope.
24 %description -l pl.UTF-8
25 ZopeScheduler jest produktem dla Zope pomocnym przy wywoływaniu
34 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af %{zope_subname}/{Extensions,skins,zpt,*.py,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 rm -rf $RPM_BUILD_ROOT
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 %service -q zope restart
51 if [ "$1" = "0" ]; then
52 /usr/sbin/installzopeproduct -d %{zope_subname}
53 %service -q zope restart
57 %defattr(644,root,root,755)
58 %doc %{zope_subname}/{README.txt,CREDITS.txt}