]> git.pld-linux.org Git - packages/Zope-CMFVisualEditor.git/blob - Zope-CMFVisualEditor.spec
- changed req.
[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:        3
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
20 %define         product_dir     /usr/lib/zope/Products
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%{product_dir}/%{zope_subname}
36
37 cp -af {Extensions,i18n,skins,*.py} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38
39 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
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 if [ -f /var/lock/subsys/zope ]; then
49         /etc/rc.d/init.d/zope restart >&2
50 fi
51
52 %postun
53 if [ -f /var/lock/subsys/zope ]; then
54         /etc/rc.d/init.d/zope restart >&2
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README.txt
60 %{product_dir}/%{zope_subname}
This page took 0.062399 seconds and 3 git commands to generate.