]>
Commit | Line | Data |
---|---|---|
06ae3cfd | 1 | %define zope_subname kupu |
34d9acdb | 2 | Summary: Kupu - a 'document-centric' open source client-side editor for web browsers |
ca7f03e9 | 3 | Summary(pl.UTF-8): Kupu - edytor kliencki pracujący z popularnymi przeglądarkami WWW |
06ae3cfd | 4 | Name: Zope-%{zope_subname} |
55de3173 | 5 | Version: 1.3.3 |
06ae3cfd | 6 | Release: 1 |
7 | License: Kupu | |
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/ | |
13 | BuildRequires: python | |
91e5ab98 | 14 | BuildRequires: rpmbuild(macros) >= 1.268 |
06ae3cfd | 15 | %pyrequires_eq python-modules |
91e5ab98 | 16 | Requires(post,postun): /usr/sbin/installzopeproduct |
06ae3cfd | 17 | Requires: Zope |
18 | Requires: Zope-FileSystemSite >= 1.3 | |
06ae3cfd | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
34d9acdb JB |
23 | Kupu is a 'document-centric' open source client-side editor for |
24 | Mozilla, Netscape and Internet Explorer. This version of kupu is only | |
25 | for Zope. | |
06ae3cfd | 26 | |
ec5018d4 JR |
27 | %description -l pl.UTF-8 |
28 | Kupu jest edytorem klienckim pracującym z popularnymi przeglądarkami | |
34d9acdb | 29 | WWW (Mozilla, Netscape i Internet Explorer). Wersja dla Zope. |
06ae3cfd | 30 | |
31 | %prep | |
32 | %setup -q -n %{zope_subname} | |
33 | %patch0 -p1 | |
34 | ||
35 | %build | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
40 | cp -af {Extensions,apache-lenya,cnf,common,default,form,i18n,multi} \ | |
41 | {plone,python,roundup,silva,tests,tools,widgeteer,zope2,zope3,*.zcml} \ | |
42 | {*.py,*.kupu,*.gif,*.xsl,refresh.txt,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} | |
43 | ||
44 | ||
45 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
46 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
47 | ||
48 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
54 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} | |
91e5ab98 | 55 | %service -q zope restart |
06ae3cfd | 56 | |
57 | %postun | |
58 | if [ "$1" = "0" ]; then | |
59 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
91e5ab98 | 60 | %service -q zope restart |
06ae3cfd | 61 | fi |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc doc/* | |
66 | %{_datadir}/%{name} |