1 %define zope_subname CMFContentPanels
3 Summary: A CMF/Plone portlets product
4 Summary(pl.UTF-8): Produkt dla CMF/Plone pozwalajÄ…cy na manipulacje panelami portalu
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://plone.org/products/cmfcontentpanels/releases/%{version}/contentpanels-2_0.tgz
11 # Source0-md5: 95e2e17255faca6f1122fc64723074b2
12 URL: http://www.zopechina.com/products-en/CMFContentPanels/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires(post,postun): /usr/sbin/installzopeproduct
16 %pyrequires_eq python-modules
19 Requires: Zope-CMFPlone
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A CMF/Plone portlets product.
28 %description -l pl.UTF-8
29 Produkt dla CMF/Plone pozwalajÄ…cy na manipulacje panelami portalu.
32 %setup -q -n %{zope_subname}
34 find . -type d -name .svn | xargs rm -rf
35 find . -type d -name CVS | xargs rm -rf
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41 cp -af {Extensions,i18n,skins,*.py,*.gif,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
43 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
44 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49 rm -rf $RPM_BUILD_ROOT
52 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
53 %service -q zope restart
56 if [ "$1" = "0" ]; then
57 /usr/sbin/installzopeproduct -d %{zope_subname}
58 %service -q zope restart
62 %defattr(644,root,root,755)
63 %doc HISTORY.txt SUPPORT_WIKI.txt README.txt INSTALL.txt TODO.txt CREDIT.txt FAQ.txt