]> git.pld-linux.org Git - packages/Zope-epoz.git/blob - Zope-epoz.spec
a717bb4fa078dbe934520a1c6034abc0f9ed8b7c
[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.2
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:  4d941438805dd849d4a3256c52ba65a4
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 -c
30
31 %build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36 cp -af %{zope_subname}-%{version}/* $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 %{zope_subname}-%{version}/doc/*
64 %{_datadir}/%{name}
This page took 0.070274 seconds and 2 git commands to generate.