]> git.pld-linux.org Git - packages/Zope-ExternalEditor.git/blob - Zope-ExternalEditor.spec
1e5cc20ebda99b65b305f95a55de84778a78fca9
[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 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 ExternalEditor is a Zope product, a new way to integrate Zope more seamlessly
21 with client-side tools. 
22 This package is supposed to be installed on Zope server, there is a zopeedit
23 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 klienta
29 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 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %postun
57 if [ "$1" = "0" ]; then
58         /usr/sbin/installzopeproduct -d %{zope_subname} 
59         if [ -f /var/lock/subsys/zope ]; then
60                 /etc/rc.d/init.d/zope restart >&2
61         fi
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc CHANGES.txt INSTALL-UNIX.txt README.txt
67 # %%{_mandir}/man1/*
68 %{_datadir}/%{name}
This page took 0.056105 seconds and 2 git commands to generate.