]> git.pld-linux.org Git - packages/Zope-kupu.git/blob - Zope-kupu.spec
1ee6bd6f39b1e92c2121daf51d8673d69c33b4b7
[packages/Zope-kupu.git] / Zope-kupu.spec
1 %define         zope_subname    kupu
2 Summary:        Kupu is a 'document-centric' open source client-side editor for web browsers
3 Summary(pl):    Kupu jest edytorem klienckim pracuj±cym 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 
23 for Mozilla, Netscape and Internet Explorer.
24 This version kupu is only for Zope.
25
26 %description -l pl
27 Kupu jest edytorem klienckim pracuj±cym z popularnymi 
28 przegl±darkami WWW (Mozilla, Netscape and Internet Explorer).
29 Wersja dla Zope.
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}
55 if [ -f /var/lock/subsys/zope ]; then
56         /etc/rc.d/init.d/zope restart >&2
57 fi
58
59 %postun
60 if [ "$1" = "0" ]; then
61         /usr/sbin/installzopeproduct -d %{zope_subname}
62         if [ -f /var/lock/subsys/zope ]; then
63                 /etc/rc.d/init.d/zope restart >&2
64         fi
65 fi
66
67 %files
68 %defattr(644,root,root,755)
69 %doc doc/*
70 %{_datadir}/%{name}
This page took 0.047945 seconds and 2 git commands to generate.