1 %define zope_subname CMFContentPanels
3 Summary: A CMF/Plone portlets product
4 Summary(pl): Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://zope.org/Members/panjunyong/%{zope_subname}/contentpanels-1_7/contentpanels-1_7_1.tgz
11 # Source0-md5: bb0babbed01ae0f838c8e64185549416
12 URL: http://zope.org/Members/panjunyong/CMFContentPanels/
13 Requires(post,postun): /usr/sbin/installzopeproduct
14 %pyrequires_eq python-modules
17 Requires: Zope-CMFPlone
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 A CMF/Plone portlets product.
27 Produkt dla CMF/Plone pozwalaj±cy na manipulacje panelami portalu.
30 %setup -q -n %{zope_subname}
32 find . -type d -name .svn | xargs rm -rf
33 find . -type d -name CVS | xargs rm -rf
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
39 cp -af {Extensions,i18n,skins,*.py,*.gif,version.txt,refresh.txt} $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)
65 %doc HISTORY.txt README.txt INSTALL.txt TODO.txt CREDIT.txt FAQ.txt