-%include /usr/lib/rpm/macros.python
%define zope_subname CPSSkins
-%define sub_ver b2
+# %%define sub_ver rc5
Summary: Theme creation and management product for CMF, Plone, CPS3
Summary(pl): Kreator i zarz±dca "skórek" dla CMF, Plone, CPS3
Name: Zope-%{zope_subname}
-Version: 1.9
-Release: 1.%{sub_ver}.1
+Version: 2.3.2
+Release: 1
License: GPL
Group: Development/Tools
-Source0: http://www.medic.chalmers.se/~jmo/CPS/%{zope_subname}%{version}%{sub_ver}.tgz
-# Source0-md5: aee05832b5d2c4ad2959666293b818f3
+Source0: http://zope.org/Members/jmo/CPSSkins/CPSSkins-2.2/%{zope_subname}-%{version}/%{zope_subname}%{version}.tgz
+# Source0-md5: ba61d3279a8e1ac86887608ae02f3fa7
URL: http://www.medic.chalmers.se/~jmo/CPS/
Requires(post,postun): /usr/sbin/installzopeproduct
+BuildRequires: python
%pyrequires_eq python-modules
Requires: Zope
Requires: Zope-CMF
Requires: Zope-CMFPlone
-Requires: Zope-CMFPortalContentFolder
-Requires: Zope-TranslationService
-Requires: Zope-Localizer
+Requires: Zope-OrderedFolderSupportPatch
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Conflicts: CMF
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
-cp -af Products/%{zope_subname}/{Extensions,Install,Misc,html,i18n,icons,skins,tests,zmi,*.py,*.gif,version.txt,refresh.txt} \
- $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -af Products/%{zope_subname}/{Extensions,Install,i18n,icons,skins,tests,zmi,*.py,*.png,version.txt,refresh.txt} \
+ $RPM_BUILD_ROOT%{_datadir}/%{name}
%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
%postun
if [ "$1" = "0" ]; then
- /usr/sbin/installzopeproduct -d %{zope_subname}
- if [ -f /var/lock/subsys/zope ]; then
- /etc/rc.d/init.d/zope restart >&2
- fi
+ /usr/sbin/installzopeproduct -d %{zope_subname}
+ if [ -f /var/lock/subsys/zope ]; then
+ /etc/rc.d/init.d/zope restart >&2
+ fi
fi
%files
%defattr(644,root,root,755)
-%doc Products/%{zope_subname}/{doc/*,AUTHORS.TXT,COPYRIGHT.TXT,CREDITS.TXT,INSTALL.TXT,README.TXT}
+%doc Products/%{zope_subname}/{doc/*,AUTHORS.TXT,CHANGES.TXT,COPYRIGHT.TXT,CREDITS.TXT,DEPEN*.TXT,INSTALL.TXT,README.TXT,UPGRADE.TXT,TODO}
%{_datadir}/%{name}