]> git.pld-linux.org Git - packages/Zope-ExternalEditor.git/blob - Zope-ExternalEditor.spec
- use %service
[packages/Zope-ExternalEditor.git] / Zope-ExternalEditor.spec
1 %define         zope_subname    ExternalEditor
2 Summary:        A Zope product integrating Zope more seamlessly with client-side tools
3 Summary(pl):    Dodatek do Zope lepiej intergruj±cy Zope z narzêdziami od strony klienta
4 Name:           Zope-%{zope_subname}
5 Version:        0.9.1
6 Release:        1
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://plope.com/software/ExternalEditor/ExternalEditor-%{version}-src.tgz
10 # Source0-md5:  6befe8f5af29e8b4e27d9aba0299b57c
11 URL:            http://plope.com/software/ExternalEditor/
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 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 ExternalEditor is a Zope product, a new way to integrate Zope more
22 seamlessly with client-side tools. This package is supposed to be
23 installed on Zope server, there is a zopeedit tool for clients.
24
25 %description -l pl
26 ExternalEditor jest dodatkiem do Zope, umo¿liwiaj±cym w nowy, bardziej
27 przezroczysty sposób integrowaæ Zope z narzêdziami od strony klienta.
28 Ten pakiet powinien byæ zainstalowany na serwerze Zope. Od strony
29 klienta dostêp do niego zapewnia pakiet zopeedit.
30
31 %prep
32 %setup -q -n %{zope_subname}
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37 # install -d $RPM_BUILD_ROOT%{_mandir}/man1
38
39 cp -af {Plugins,*.py,*.gif,*.dtml,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40 # cp -af man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
41
42 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 # rm $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.py
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
52 %service -q zope restart
53
54 %postun
55 if [ "$1" = "0" ]; then
56         /usr/sbin/installzopeproduct -d %{zope_subname}
57         %service -q zope restart
58 fi
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CHANGES.txt INSTALL-UNIX.txt README.txt
63 # %%{_mandir}/man1/*
64 %{_datadir}/%{name}
This page took 0.076097 seconds and 3 git commands to generate.