]> git.pld-linux.org Git - packages/Zope-Epoz.git/blob - Zope-Epoz.spec
- upgraded to version 0.8.2
[packages/Zope-Epoz.git] / Zope-Epoz.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    Epoz
3 Summary:        epoz allows you to edit Zope or Plone-objects with a wysiwyg-editor (primary ver.)
4 Summary(pl):    Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w trybie WYSIWYG
5 Name:           Zope-%{zope_subname}
6 Version:        0.8.2
7 Release:        1
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://mjablonski.zope.de/Epoz/releases/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5:  230d63393b1bdef89c49ab8a7b3fc8d8
12 URL:            http://mjablonski.zope.de/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 (primary version)
23
24 %description -l pl
25 Dodatek do Zope lub Plone umo¿liwiaj±cy manipulacje na obiektach w
26 trybie WYSIWYG - (wersja pierwotna).
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}/{Extensions,skins,*.py,version.txt} $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
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}/{CHANGES.txt,HISTORY.txt,README.txt,TODO.txt}
63 %{_datadir}/%{name}
This page took 0.074576 seconds and 4 git commands to generate.