1 %include /usr/lib/rpm/macros.python
2 %define zope_subname CMFVisualEditor
3 Summary: CMFVisualEditor - a Zope product, a skin for Plone using the DHTML Editing Control
4 Summary(pl): CMFVisualEditor - dodatkiem do Zope umo¿liwiaj±cy wizualn± edycjê DHTML dla Plone
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: c4dedabced3f11af450e6750e7201f8a
12 URL: http://sourceforge.net/projects/collective/
13 %pyrequires_eq python-modules
15 Requires: Zope-CMFPlone
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define product_dir /usr/lib/zope/Products
23 CMFVisualEditor is a Zope product, a skin for Plone that makes use of
24 the DHTML Editing Control.
27 CMFVisualEditor jest dodatkiem do Zope umo¿liwiaj±cym wizualn± edycjê
31 %setup -q -n %{zope_subname}
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
37 cp -af {Extensions,i18n,skins,*.py} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45 rm -rf $RPM_BUILD_ROOT
48 if [ -f /var/lock/subsys/zope ]; then
49 /etc/rc.d/init.d/zope restart >&2
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
58 %defattr(644,root,root,755)
60 %{product_dir}/%{zope_subname}