1 %define zope_subname PloneLanguageTool
2 Summary: Multilanguage content tool
3 Summary(pl): Narzêdzie dla wielojêzycznych dokumentów
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: bdd5fd8e3383b6c9cca84db9e7831771
11 URL: http://plone.org/Members/longsleep/I18NLayer/
13 %pyrequires_eq python-modules
15 Requires: Zope-CMFPlone
17 Requires(post,postun): /usr/sbin/installzopeproduct
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 PloneLanguageTool is a multilanguage content tool.
25 PloneLanguageTool dostarcza narzêdzia dla wielojêzycznych dokumentów.
28 %setup -q -n %{zope_subname}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34 cp -af {Extensions,skins,www,*.py,*.gif,version.txt} \
35 $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43 rm -rf $RPM_BUILD_ROOT
46 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
47 if [ -f /var/lock/subsys/zope ]; then
48 /etc/rc.d/init.d/zope restart >&2
52 if [ "$1" = "0" ]; then
53 /usr/sbin/installzopeproduct -d %{zope_subname}
54 if [ -f /var/lock/subsys/zope ]; then
55 /etc/rc.d/init.d/zope restart >&2
60 %defattr(644,root,root,755)
61 %doc ChangeLog README.txt