1 %define zope_subname CPSSkins
3 Summary: Theme creation and management product for CMF, Plone, CPS3
4 Summary(pl): Kreator i zarz±dca "skórek" dla CMF, Plone, CPS3
5 Name: Zope-%{zope_subname}
9 Group: Development/Tools
10 Source0: http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}.tgz
11 # Source0-md5: 8c93bf1966633fa8cd69353ef9e1a7f9
12 URL: http://www.medic.chalmers.se/~jmo/CPS/
13 Requires(post,postun): /usr/sbin/installzopeproduct
14 %pyrequires_eq python-modules
17 Requires: Zope-CMFPlone
18 Requires: Zope-OrderedFolderSupportPatch
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 CPSSkins is theme creation and management product for CMF, Plone,
29 CPSSkins jest kreatorem i zarz±dc± "skórek" dla CMF, Plone, CPS3.
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38 cp -af Products/%{zope_subname}/{Extensions,Install,i18n,icons,skins,tests,zmi,*.py,*.gif,version.txt,refresh.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)
65 %doc Products/%{zope_subname}/{doc/*,AUTHORS.TXT,CHANGES.TXT,COPYRIGHT.TXT,CREDITS.TXT,DEPEN*.TXT,INSTALL.TXT,README.TXT,UPGRADE.TXT}