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)
22 %define product_dir /usr/lib/zope/Products
25 CMFVisualEditor is a Zope product, a skin for Plone that makes use of
26 the DHTML Editing Control.
29 CMFVisualEditor jest dodatkiem do Zope umo¿liwiaj±cym wizualn± edycjê
33 %setup -q -n %{zope_subname}
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39 cp -af {Extensions,i18n,skins,*.py} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
42 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT
50 if [ -f /var/lock/subsys/zope ]; then
51 /etc/rc.d/init.d/zope restart >&2
55 if [ -f /var/lock/subsys/zope ]; then
56 /etc/rc.d/init.d/zope restart >&2
60 %defattr(644,root,root,755)
62 %{product_dir}/%{zope_subname}