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/ZMySQLDA/%{prod_name}-%{version}.tar.gz
11 # Source0-md5: 74332272e53b13c6b19d3185d575699c
12 URL: http://www.zope.org/Members/adustman/Products/ZMySQLDA/
13 Group: Development/Languages/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 Interfejs bazy danych MySQL do Zope.
34 mv -f lib/python/Products/%{prod_name}/* .
41 find . -name \*.py | xargs -r rm -f
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
47 cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
48 rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{zope_productsdir}/%{prod_name}