1 %define prod_name ZMySQLDA
2 Summary: Zope MySQL database adapter
3 Summary(pl): Interfejs bazy danych MySQL do Zope
4 Name: Zope-%{prod_name}
8 Group: Development/Languages/Python
9 Source0: http://www.zope.org/Members/adustman/Products/ZMySQLDA/%{prod_name}-%{version}.tar.gz
10 # Source0-md5: 74332272e53b13c6b19d3185d575699c
11 URL: http://www.zope.org/Members/adustman/Products/ZMySQLDA/
12 BuildRequires: python-MySQLdb
14 Requires: python-MySQLdb
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
19 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
21 %define zope_dir %{_libdir}/zope
22 %define zope_productsdir %{zope_dir}/Products
25 Zope MySQL database adapter.
28 Interfejs bazy danych MySQL do Zope.
32 mv -f lib/python/Products/%{prod_name}/* .
39 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}