]> git.pld-linux.org Git - packages/Zope-epoz.git/blob - Zope-epoz.spec
- cleanup
[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
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:        1.0.2
6 Release:        2
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/epoz/%{zope_subname}-%{version}.tgz
10 # Source0-md5:  4d941438805dd849d4a3256c52ba65a4
11 URL:            http://sourceforge.net/projects/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
24 %description -l pl.UTF-8
25 Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w
26 trybie WYSIWYG.
27
28 %prep
29 %setup -q -c
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 cp -af %{zope_subname}-%{version}/* $RPM_BUILD_ROOT%{_datadir}/%{name}
35
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
40 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
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}-%{version}/doc/*
58 %{_datadir}/%{name}
This page took 0.0744 seconds and 3 git commands to generate.