1 %include /usr/lib/rpm/macros.python
2 %define zope_subname PloneLanguageTool
3 Summary: Multilanguage content tool
4 Summary(pl): Narzêdzie dla wielojêzykowych dokumentów
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5: 35384a1383d9b611cbfd3c7b759c03a7
12 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êzykowych 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 CREDITS.txt