2 %define prod_name ZMySQLDA
4 Summary: Zope MySQL database adapter
5 Summary(pl): Interfejs bazy danych MySQL do Zope
6 Name: Zope-%{prod_name}
10 Source0: http://www.zope.org/Members/adustman/Products/%{prod_name}/%{prod_name}-%{version}.tar.gz
11 URL: http://www.zope.org/Members/adustman/Products/%{prod_name}
12 Group: Development/Languages/Python
13 Group(de): Entwicklung/Sprachen/Python
14 Group(pl): Programowanie/Jêzyki/Python
16 Requires: python-MySQLdb
17 BuildRequires: python-MySQLdb
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
22 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
24 %define zope_dir %{_libdir}/zope
25 %define zope_productsdir %{zope_dir}/Products
28 Zope MySQL database adapter.
31 Interfejs bazy danych MySQL do Zope.
35 mv -f lib/python/Products/%{prod_name}/* .
42 find . -name \*.py | xargs -r rm -f
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
49 cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
50 rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{zope_productsdir}/%{prod_name}