1 %define zope_subname ZMySQLDA
2 Summary: Zope MySQL database adapter
3 Summary(pl): Interfejs bazy danych MySQL do Zope
4 Name: Zope-%{zope_subname}
8 Group: Development/Languages/Python
9 Source0: http://www.zope.org/Members/adustman/Products/ZMySQLDA/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5: 74332272e53b13c6b19d3185d575699c
11 URL: http://www.zope.org/Members/adustman/Products/ZMySQLDA/
12 %pyrequires_eq python-modules
14 Requires: python-MySQLdb
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Zope MySQL database adapter.
22 Interfejs bazy danych MySQL do Zope.
26 mv -f lib/python/Products/%{zope_subname}/* .
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35 cp -af *.py *.dtml help icons $RPM_BUILD_ROOT%{_datadir}/%{name}
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41 rm -rf $RPM_BUILD_ROOT
44 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
45 if [ -f /var/lock/subsys/zope ]; then
46 /etc/rc.d/init.d/zope restart >&2
50 if [ "$1" = "0" ]; then
51 /usr/sbin/installzopeproduct -d %{zope_subname}
52 if [ -f /var/lock/subsys/zope ]; then
53 /etc/rc.d/init.d/zope restart >&2
58 %defattr(644,root,root,755)