]> git.pld-linux.org Git - SPECS.git/blob - Zope-CMFVisualEditor.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.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.UTF-8):      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 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 Requires:       Zope-CMF
18 Requires:       Zope-CMFPlone
19 Conflicts:      CMF
20 Conflicts:      Plone
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.UTF-8
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%{_datadir}/%{name}
38
39 cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
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 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 %service -q zope restart
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         %service -q zope restart
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README.txt
62 %{_datadir}/%{name}
This page took 0.426416 seconds and 3 git commands to generate.