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