]>
Commit | Line | Data |
---|---|---|
7cf01c45 | 1 | %define zope_subname Epoz |
26c9a592 | 2 | Summary: epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor (primary ver.) |
e5397c65 | 3 | Summary(pl.UTF-8): Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w trybie WYSIWYG |
7cf01c45 | 4 | Name: Zope-%{zope_subname} |
b9283d48 | 5 | Version: 2.0.2 |
5c4b175f | 6 | Release: 1 |
7cf01c45 | 7 | License: ZPL 2.0 |
8 | Group: Development/Tools | |
0584da94 | 9 | Source0: http://iungo.org/products/Epoz/releases/%{zope_subname}-%{version}.tar.gz |
b9283d48 | 10 | # Source0-md5: b5e15ee8450715832475968a02886e8c |
0584da94 | 11 | URL: http://iungo.org/products/Epoz/ |
6b7b35b2 | 12 | BuildRequires: python |
5eb81442 | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
7cf01c45 | 14 | %pyrequires_eq python-modules |
7cf01c45 | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
5eb81442 | 16 | Requires: Zope |
7cf01c45 | 17 | Obsoletes: Zope-epoz |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
26c9a592 | 22 | epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor. |
7cf01c45 | 23 | (primary version) |
24 | ||
b9db8714 JR |
25 | %description -l pl.UTF-8 |
26 | Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w | |
7cf01c45 | 27 | trybie WYSIWYG - (wersja pierwotna). |
28 | ||
29 | %prep | |
30 | %setup -q -c | |
31 | ||
7cf01c45 | 32 | %install |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} | |
5c4b175f | 35 | cp -af %{zope_subname}/{Extensions,epoz,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
7cf01c45 | 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} | |
5eb81442 | 47 | %service -q zope restart |
7cf01c45 | 48 | |
49 | %postun | |
50 | if [ "$1" = "0" ]; then | |
51 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
5eb81442 | 52 | %service -q zope restart |
7cf01c45 | 53 | fi |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
d34f0654 | 57 | %doc %{zope_subname}/{CHANGES.txt,HISTORY.txt,README.txt,TODO.txt,FAQ.txt,mx*.txt} |
7cf01c45 | 58 | %{_datadir}/%{name} |