259489895f936997e383672dd2a2da0f9c00f1d0
[packages/Zope-epoz.git] / Zope-epoz.spec
1
2 %include        /usr/lib/rpm/macros.python
3 %define         zope_subname    epoz
4 Summary:        epoz allows you to edit Zope or Plone-objects with a wysiwyg-editor
5 Summary(pl):    Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w trybie WYSIWYG
6 Name:           Zope-%{zope_subname}
7 Version:        1.0.1
8 Release:        1
9 License:        ZPL 2.0
10 Group:          Development/Tools
11 Source0:        http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
12 # Source0-md5:  185615a0b1cdad4bd029a4bfc35f0afb
13 URL:            http://sourceforge.net/projects/epoz/
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 Obsoletes:      Zope-Epoz
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 epoz allows you to edit Zope or Plone-objects with a wysiwyg-editor.
23
24 %description -l pl
25 Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w
26 trybie WYSIWYG.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
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 doc
64 %{_datadir}/%{name}
This page took 0.031831 seconds and 2 git commands to generate.