1 %include /usr/lib/rpm/macros.python
3 %define zope_subname TranslationService
5 Summary: TranslationService is a placeful translation service for Zope
6 Summary(pl): TranslationService jest ¶rodowiskiem dla translacji jêzykowych dla Zope
7 Name: Zope-%{zope_subname}
11 Group: Development/Tools
12 Source0: http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{version}.tgz
13 # Source0-md5: b1399f80dc71ea8a54f4c6dc179c12dd
14 URL: http://www.zope.org/Members/efge/TranslationService
15 %pyrequires_eq python-modules
17 Requires: Zope-Localizer
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define product_dir /usr/lib/zope/Products
24 TranslationService is a placeful translation service for Zope
27 TranslationService jest ¶rodowiskiem dla translacji jêzykowych dla
31 %setup -q -c %{zope_subname}-%{version}
36 mv -f HISTORY.txt docs/
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{product_dir}
41 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
43 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
44 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
46 find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
47 rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/docs
50 rm -rf $RPM_BUILD_ROOT
53 if [ -f /var/lock/subsys/zope ]; then
54 /etc/rc.d/init.d/zope restart >&2
60 if [ -f /var/lock/subsys/zope ]; then
61 /etc/rc.d/init.d/zope restart >&2
65 %defattr(644,root,root,755)
66 %doc %{zope_subname}/docs/*
67 %{product_dir}/%{zope_subname}