]> git.pld-linux.org Git - packages/Zope-kupu.git/blob - Zope-kupu.spec
- descs cleanup
[packages/Zope-kupu.git] / Zope-kupu.spec
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}
5 Version:        1.3.1
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
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-FileSystemSite >= 1.3
17 Requires(post,postun):  /usr/sbin/installzopeproduct
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Kupu is a 'document-centric' open source client-side editor for
23 Mozilla, Netscape and Internet Explorer. This version of kupu is only
24 for Zope.
25
26 %description -l pl
27 Kupu jest edytorem klienckim pracuj±cym z popularnymi przegl±darkami
28 WWW (Mozilla, Netscape i Internet Explorer). Wersja dla Zope.
29
30 %prep
31 %setup -q -n %{zope_subname}
32 %patch0 -p1
33
34 %build
35
36 %install
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}
42
43
44 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
45 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46
47 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
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
56 fi
57
58 %postun
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
63         fi
64 fi
65
66 %files
67 %defattr(644,root,root,755)
68 %doc doc/*
69 %{_datadir}/%{name}
This page took 0.067598 seconds and 3 git commands to generate.