]> git.pld-linux.org Git - packages/Zope-Epoz.git/blob - Zope-Epoz.spec
d38515b5d1b710908f815306eb9f58107f3134cc
[packages/Zope-Epoz.git] / Zope-Epoz.spec
1 %define         zope_subname    Epoz
2 Summary:        epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor (primary ver.)
3 Summary(pl):    Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w trybie WYSIWYG
4 Name:           Zope-%{zope_subname}
5 Version:        0.8.5
6 Release:        1
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://mjablonski.zope.de/Epoz/releases/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  ac36ddcd6a7dc33ec7d943cbd4d5b5af
11 URL:            http://mjablonski.zope.de/Epoz/
12 %pyrequires_eq  python-modules
13 Requires:       Zope
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 Obsoletes:      Zope-epoz
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor.
21 (primary version)
22
23 %description -l pl
24 Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w
25 trybie WYSIWYG - (wersja pierwotna).
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}/{Extensions,skins,*.py,version.txt} $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
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname}
54         if [ -f /var/lock/subsys/zope ]; then
55                 /etc/rc.d/init.d/zope restart >&2
56         fi
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc %{zope_subname}/{CHANGES.txt,HISTORY.txt,README.txt,TODO.txt,FAQ.txt,mx*.txt}
62 %{_datadir}/%{name}
This page took 0.105284 seconds and 3 git commands to generate.