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: 68505b6ec1ccad90c3992b51df9e231b
11 URL: http://plone.org/Members/longsleep/I18NLayer/
12 %pyrequires_eq python-modules
14 Requires: Zope-CMFPlone
16 Requires(post,postun): /usr/sbin/installzopeproduct
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 PloneLanguageTool is a multilanguage content tool.
24 PloneLanguageTool dostarcza narzêdzia dla wielojêzycznych dokumentów.
27 %setup -q -n %{zope_subname}
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
33 cp -af {Extensions,skins,www,*.py,*.gif,version.txt} \
34 $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42 rm -rf $RPM_BUILD_ROOT
45 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46 if [ -f /var/lock/subsys/zope ]; then
47 /etc/rc.d/init.d/zope restart >&2
51 if [ "$1" = "0" ]; then
52 /usr/sbin/installzopeproduct -d %{zope_subname}
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
59 %defattr(644,root,root,755)
60 %doc ChangeLog CREDITS.txt