1 %define zope_subname I18NLayer
2 Summary: Provide multilanguage content support for existing document types
3 Summary(pl): Umo¿liwia tworzenie wielojêzykowych dokumentów w ¶rodowisku Zope
4 Name: Zope-%{zope_subname}
8 Group: Development/Tools
9 Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: c665c8dc212c3bd36a62df57fd60994d
11 URL: http://plone.org/Members/longsleep/I18NLayer/
12 %pyrequires_eq python-modules
14 Requires: Zope-CMFPlone
15 Requires: Zope-archetypes
16 Requires: Zope-PloneLanguageTool
18 Requires(post,postun): /usr/sbin/installzopeproduct
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 I18NLayer provides a transparent overlay above multiple content
24 objects to provide multilanguage content support for existing document
28 I18NLayer dostarcza mechanizm tworzenia wielojêzykowych dokumentów dla
32 %setup -q -n %{zope_subname}
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af {Extensions,i18n,skins,tests,*.py,version.txt} \
39 $RPM_BUILD_ROOT%{_datadir}/%{name}
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52 /etc/rc.d/init.d/zope restart >&2
56 if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 if [ -f /var/lock/subsys/zope ]; then
59 /etc/rc.d/init.d/zope restart >&2
64 %defattr(644,root,root,755)