]> git.pld-linux.org Git - packages/Zope-epoz.git/blob - Zope-epoz.spec
267e9886b45953b8425feaaa591c567e77543d42
[packages/Zope-epoz.git] / Zope-epoz.spec
1
2 %define         zope_subname    epoz
3 Summary:        epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor
4 Summary(pl):    Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w trybie WYSIWYG
5 Name:           Zope-%{zope_subname}
6 Version:        1.0.2
7 Release:        2
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  4d941438805dd849d4a3256c52ba65a4
12 URL:            http://sourceforge.net/projects/epoz/
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Obsoletes:      Zope-Epoz
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor.
22
23 %description -l pl
24 Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w
25 trybie WYSIWYG.
26
27 %prep
28 %setup -q -c
29
30 %build
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af %{zope_subname}-%{version}/* $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
48 if [ -f /var/lock/subsys/zope ]; then
49         /etc/rc.d/init.d/zope restart >&2
50 fi
51
52 %postun
53 if [ "$1" = "0" ]; then
54         /usr/sbin/installzopeproduct -d %{zope_subname}
55         if [ -f /var/lock/subsys/zope ]; then
56                 /etc/rc.d/init.d/zope restart >&2
57         fi
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %doc %{zope_subname}-%{version}/doc/*
63 %{_datadir}/%{name}
This page took 0.024837 seconds and 2 git commands to generate.