%include /usr/lib/rpm/macros.python Summary: An Python interface to MySQL Summary(pl): Interfejs Pythona do MySQL Name: python-MySQLdb Version: 0.9.2 Release: 3 License: GPL Group: Libraries/Python Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz # Source0-md5: afef758f56289f98408dd9f379d8fc8d URL: http://sourceforge.net/projects/mysql-python/ #Requires: mysql >= 3.23.49 BuildRequires: mysql-devel >= 4.0.10 BuildRequires: python-devel >= 2.2.1 BuildRequires: rpm-pythonprov BuildRequires: zlib-devel %pyrequires_eq python-modules BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description An interface to the popular MySQL database server for Python. The design goals are: - Compliance with Python database API version 2.0 - Thread-safety - Thread-friendliness (threads will not block each other) %description -l pl Ten pakiet zapewnia dostęp do baz danych MySQL z poziomu skryptów języka Python. %prep %setup -q -n MySQL-python-%{version} %build env CFLAGS="%{rpmcflags}" %{_bindir}/python setup.py build %install rm -rf $RPM_BUILD_ROOT python -- setup.py install --root=$RPM_BUILD_ROOT --optimize=2 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README CHANGELOG doc/*.html %attr(755,root,root) %{py_sitedir}/*.so %{py_sitedir}/*.py? %dir %{py_sitedir}/MySQLdb %{py_sitedir}/MySQLdb/*.py? %dir %{py_sitedir}/MySQLdb/constants %{py_sitedir}/MySQLdb/constants/*.py?