1 %define zope_subname CMFVisualEditor
2 Summary: A Zope product, a skin for Plone using the DHTML Editing Control
3 Summary(pl.UTF-8): Dodatek do Zope umożliwiający wizualną edycję DHTML dla Plone
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: c4dedabced3f11af450e6750e7201f8a
11 URL: http://sourceforge.net/projects/collective/
13 BuildRequires: rpmbuild(macros) >= 1.268
14 %pyrequires_eq python-modules
15 Requires(post,postun): /usr/sbin/installzopeproduct
18 Requires: Zope-CMFPlone
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 CMFVisualEditor is a Zope product, a skin for Plone that makes use of
26 the DHTML Editing Control.
28 %description -l pl.UTF-8
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%{_datadir}/%{name}
39 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 %service -q zope restart
54 if [ "$1" = "0" ]; then
55 /usr/sbin/installzopeproduct -d %{zope_subname}
56 %service -q zope restart
60 %defattr(644,root,root,755)