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