]> git.pld-linux.org Git - packages/Zope-ExternalEditor.git/blob - Zope-ExternalEditor.spec
- upgraded to version 0.7.2
[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.2
7 Release:        1
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 Source0:        http://zope.org/Members/Caseman/%{zope_subname}/%{version}/%{zope_subname}-%{version}-src.tgz
11 # Source0-md5:  4f1b1540b8afe1088c312a0d543095d5
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 install -d $RPM_BUILD_ROOT%{_mandir}/man1
39
40 cp -af {Plugins,*.py,*.gif,*.dtml,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
42
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
45
46 # rm $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.py
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 if [ -f /var/lock/subsys/zope ]; then
54         /etc/rc.d/init.d/zope restart >&2
55 fi
56
57 %postun
58 if [ "$1" = "0" ]; then
59         /usr/sbin/installzopeproduct -d %{zope_subname} 
60         if [ -f /var/lock/subsys/zope ]; then
61                 /etc/rc.d/init.d/zope restart >&2
62         fi
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %doc CHANGES.txt INSTALL-UNIX.txt README.txt
68 %{_mandir}/man1/*
69 %{_datadir}/%{name}
This page took 0.256951 seconds and 3 git commands to generate.