]> git.pld-linux.org Git - packages/Zope-epoz.git/blob - Zope-epoz.spec
78871aaee716a32afb7f0a80a8ba43f478a60f4a
[packages/Zope-epoz.git] / Zope-epoz.spec
1
2 %define         zope_subname    epoz
3 Summary:        epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor
4 Summary(pl.UTF-8):   Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w trybie WYSIWYG
5 Name:           Zope-%{zope_subname}
6 Version:        1.0.2
7 Release:        2
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://dl.sourceforge.net/%{zope_subname}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  4d941438805dd849d4a3256c52ba65a4
12 URL:            http://sourceforge.net/projects/epoz/
13 BuildRequires:  python
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 %pyrequires_eq  python-modules
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 Requires:       Zope
18 Obsoletes:      Zope-Epoz
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 epoz allows you to edit Zope or Plone-objects with a WYSIWYG-editor.
24
25 %description -l pl.UTF-8
26 Dodatek do Zope lub Plone umożliwiający manipulacje na obiektach w
27 trybie WYSIWYG.
28
29 %prep
30 %setup -q -c
31
32 %build
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37 cp -af %{zope_subname}-%{version}/* $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
50 %service -q zope restart
51
52 %postun
53 if [ "$1" = "0" ]; then
54         /usr/sbin/installzopeproduct -d %{zope_subname}
55         %service -q zope restart
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %doc %{zope_subname}-%{version}/doc/*
61 %{_datadir}/%{name}
This page took 0.055971 seconds and 2 git commands to generate.