]> git.pld-linux.org Git - packages/Zope-CMFVisualEditor.git/blob - Zope-CMFVisualEditor.spec
- release 9 for rebuild with python 2.4
[packages/Zope-CMFVisualEditor.git] / Zope-CMFVisualEditor.spec
1 %define         zope_subname    CMFVisualEditor
2 Summary:        A Zope product, a skin for Plone using the DHTML Editing Control
3 Summary(pl):    Dodatek do Zope umo¿liwiaj±cy wizualn± edycjê DHTML dla Plone
4 Name:           Zope-%{zope_subname}
5 Version:        0.2
6 Release:        9
7 License:        GPL v2+
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/
12 %pyrequires_eq  python-modules
13 Requires:       Zope-CMF
14 Requires:       Zope-CMFPlone
15 Requires:       Zope
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Conflicts:      CMF
20 Conflicts:      Plone
21
22 %description
23 CMFVisualEditor is a Zope product, a skin for Plone that makes use of
24 the DHTML Editing Control.
25
26 %description -l pl
27 CMFVisualEditor jest dodatkiem do Zope umo¿liwiaj±cym wizualn± edycjê
28 DHTML dla Plone.
29
30 %prep
31 %setup -q -n %{zope_subname}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 if [ -f /var/lock/subsys/zope ]; then
50         /etc/rc.d/init.d/zope restart >&2
51 fi
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         if [ -f /var/lock/subsys/zope ]; then
57                 /etc/rc.d/init.d/zope restart >&2
58         fi
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc README.txt
64 %{_datadir}/%{name}
This page took 0.11359 seconds and 3 git commands to generate.