]>
Commit | Line | Data |
---|---|---|
0b7ee419 | 1 | %define zope_subname ExternalEditor |
2c5f793a | 2 | Summary: A Zope product integrating Zope more seamlessly with client-side tools |
33629311 | 3 | Summary(pl.UTF-8): Dodatek do Zope lepiej intergrujący Zope z narzędziami od strony klienta |
0b7ee419 | 4 | Name: Zope-%{zope_subname} |
e70d0d15 | 5 | Version: 0.9.3 |
9f05c9eb | 6 | Release: 1 |
96eec1ce | 7 | License: ZPL 2.0 |
0b7ee419 | 8 | Group: Development/Tools |
9f05c9eb | 9 | Source0: http://plope.com/software/ExternalEditor/ExternalEditor-%{version}-src.tgz |
e70d0d15 | 10 | # Source0-md5: 6519dbddb7755d91823025d9c14adaa1 |
9f05c9eb | 11 | URL: http://plope.com/software/ExternalEditor/ |
8a83038a | 12 | BuildRequires: python |
22d0412b | 13 | BuildRequires: rpmbuild(macros) >= 1.268 |
0b7ee419 | 14 | %pyrequires_eq python-modules |
8a83038a | 15 | Requires(post,postun): /usr/sbin/installzopeproduct |
22d0412b | 16 | Requires: Zope |
0b7ee419 | 17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
0b7ee419 | 20 | %description |
22d0412b ER |
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. | |
0b7ee419 | 24 | |
03abcbdb JR |
25 | %description -l pl.UTF-8 |
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. | |
8d001a33 | 30 | |
0b7ee419 | 31 | %prep |
8d001a33 | 32 | %setup -q -n %{zope_subname} |
0b7ee419 | 33 | |
0b7ee419 | 34 | %install |
35 | rm -rf $RPM_BUILD_ROOT | |
543c1f9c | 36 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
21a8432b | 37 | # install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
22a7391b | 38 | |
70208fc5 | 39 | cp -af {Plugins,*.py,*.gif,*.dtml,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name} |
21a8432b | 40 | # cp -af man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
0b7ee419 | 41 | |
543c1f9c JK |
42 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
43 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
0b7ee419 | 44 | |
f98fb57b | 45 | # rm $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.py |
0b7ee419 | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %post | |
543c1f9c | 51 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
22d0412b | 52 | %service -q zope restart |
0b7ee419 | 53 | |
0b7ee419 | 54 | %postun |
543c1f9c | 55 | if [ "$1" = "0" ]; then |
22d0412b ER |
56 | /usr/sbin/installzopeproduct -d %{zope_subname} |
57 | %service -q zope restart | |
0b7ee419 | 58 | fi |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
70208fc5 | 62 | %doc CHANGES.txt INSTALL-UNIX.txt README.txt |
21a8432b | 63 | # %%{_mandir}/man1/* |
543c1f9c | 64 | %{_datadir}/%{name} |