2 %define prod_name ZMySQLDA
4 Summary: Zope MySQL database adapter.
5 Name: Zope-%{prod_name}
9 Source0: http://www.zope.org/Members/adustman/Products/%{prod_name}/%{prod_name}-%{version}.tar.gz
10 URL: http://www.zope.org/Members/adustman/Products/%{prod_name}
11 Group: Development/Languages/Python
12 Group(de): Entwicklung/Sprachen/Python
13 Group(pl): Programowanie/Jêzyki/Python
15 Requires: python-MySQLdb
16 BuildRequires: python-MySQLdb
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
21 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
23 %define zope_dir %{_libdir}/zope
24 %define zope_productsdir %{zope_dir}/Products
27 Zope MySQL database adapter.
30 %setup -q -c -a 0 -n %{name}-%{version}
31 mv lib/python/Products/%{prod_name}/* .
38 find . -name \*.py | xargs -r rm -f
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
45 cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
46 rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{zope_productsdir}/%{prod_name}