]> git.pld-linux.org Git - packages/Zope-Epoz.git/blob - Zope-Epoz.spec
- up to 2.0.2
[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.UTF-8):      Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w trybie WYSIWYG
4 Name:           Zope-%{zope_subname}
5 Version:        2.0.2
6 Release:        1
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://iungo.org/products/Epoz/releases/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  b5e15ee8450715832475968a02886e8c
11 URL:            http://iungo.org/products/Epoz/
12 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
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 (primary version)
24
25 %description -l pl.UTF-8
26 Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w
27 trybie WYSIWYG - (wersja pierwotna).
28
29 %prep
30 %setup -q -c
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af %{zope_subname}/{Extensions,epoz,*.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 %service -q zope restart
48
49 %postun
50 if [ "$1" = "0" ]; then
51         /usr/sbin/installzopeproduct -d %{zope_subname}
52         %service -q zope restart
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %doc %{zope_subname}/{CHANGES.txt,HISTORY.txt,README.txt,TODO.txt,FAQ.txt,mx*.txt}
58 %{_datadir}/%{name}
This page took 0.089331 seconds and 3 git commands to generate.