1 %define zope_subname kupu
2 Summary: Kupu - a 'document-centric' open source client-side editor for web browsers
3 Summary(pl): Kupu - edytor kliencki pracuj±cy z popularnymi przegl±darkami WWW
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://kupu.oscom.org/midcom-serveattachmentguid-f40122579e491f7a7417987bef0c49ee/kupu-%{version}.tar.gz
10 # Source0-md5: 992cff3ccc2dc42a3e7c19344cf52dc4
11 Patch0: %{name}-python_ver.patch
12 URL: http://kupu.oscom.org/
14 %pyrequires_eq python-modules
16 Requires: Zope-FileSystemSite >= 1.3
17 Requires(post,postun): /usr/sbin/installzopeproduct
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Kupu is a 'document-centric' open source client-side editor for
23 Mozilla, Netscape and Internet Explorer. This version of kupu is only
27 Kupu jest edytorem klienckim pracuj±cym z popularnymi przegl±darkami
28 WWW (Mozilla, Netscape i Internet Explorer). Wersja dla Zope.
31 %setup -q -n %{zope_subname}
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af {Extensions,apache-lenya,cnf,common,default,form,i18n,multi} \
40 {plone,python,roundup,silva,tests,tools,widgeteer,zope2,zope3,*.zcml} \
41 {*.py,*.kupu,*.gif,*.xsl,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
47 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
50 rm -rf $RPM_BUILD_ROOT
53 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
59 if [ "$1" = "0" ]; then
60 /usr/sbin/installzopeproduct -d %{zope_subname}
61 if [ -f /var/lock/subsys/zope ]; then
62 /etc/rc.d/init.d/zope restart >&2
67 %defattr(644,root,root,755)