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