]> git.pld-linux.org Git - packages/Zope-ExternalEditor.git/blob - Zope-ExternalEditor.spec
- added missing files
[packages/Zope-ExternalEditor.git] / Zope-ExternalEditor.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    ExternalEditor
3 Summary:        A Zope product integrating Zope more seamlessly with client-side tools
4 Summary(pl):    Dodatek do Zope lepiej intergruj±cy Zope z narzêdziami od strony klienta
5 Name:           Zope-%{zope_subname}
6 Version:        0.7
7 Release:        7
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://zope.org/Members/Caseman/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  1dac15db90bb3c320955c114f2053963
12 URL:            http://sourceforge.net/projects/collective/
13 BuildRequires:  python >= 2.2
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires(post,postun):  /usr/sbin/installzopeproduct
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 seamlessly
22 with client-side tools. 
23 This package is supposed to be installed on Zope server, there is a zopeedit
24 tool for clients.
25
26 %description -l pl
27 ExternalEditor jest dodatkiem do Zope, umo¿liwiaj±cym w nowy, bardziej
28 przezroczysty sposób integrowaæ Zope z narzêdziami od strony klienta.
29 Ten pakiet powinien byæ zainstalowany na serwerze Zope. Od strony klienta
30 dostêp do niego zapewnia pakiet zopeedit.
31
32 %prep
33 %setup -q -n %{zope_subname}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 install -m 644 {*.py,*.gif,*.dtml,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # rm $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.py
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname} 
58         if [ -f /var/lock/subsys/zope ]; then
59                 /etc/rc.d/init.d/zope restart >&2
60         fi
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc CHANGES.txt INSTALL-UNIX.txt LICENSE.txt README.txt
66 %{_datadir}/%{name}
This page took 0.087384 seconds and 3 git commands to generate.