2 Summary: A Python interface to MySQL
3 Summary(pl): Interfejs Pythona do MySQL
8 Group: Libraries/Python
9 Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz
10 # Source0-md5: e961a6bca10dc3d502db74ad75423b0e
11 URL: http://sourceforge.net/projects/mysql-python/
12 #Requires: mysql >= 3.23.49
13 BuildRequires: mysql-devel >= 4.0.10
14 BuildRequires: python-devel >= 2.2.1
15 BuildRequires: rpm-pythonprov
16 BuildRequires: zlib-devel
17 %pyrequires_eq python-modules
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 An interface to the popular MySQL database server for Python. The
24 - Compliance with Python database API version 2.0
26 - Thread-friendliness (threads will not block each other)
29 Ten pakiet zapewnia dostêp do baz danych MySQL z poziomu skryptów
33 %setup -q -n MySQL-python-%{version}
36 env CFLAGS="%{rpmcflags}" %{_bindir}/python setup.py build
39 rm -rf $RPM_BUILD_ROOT
40 python -- setup.py install \
41 --root=$RPM_BUILD_ROOT \
42 --install-lib=%{py_sitescriptdir} \
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc README CHANGELOG doc/*
51 %attr(755,root,root) %{py_sitescriptdir}/*.so
52 %{py_sitescriptdir}/*.py?
54 %dir %{py_sitescriptdir}/MySQLdb
55 %{py_sitescriptdir}/MySQLdb/*.py?
57 %dir %{py_sitescriptdir}/MySQLdb/constants
58 %{py_sitescriptdir}/MySQLdb/constants/*.py?