1 Summary: A Python interface to MySQL
2 Summary(pl.UTF-8): Interfejs Pythona do MySQL
7 Group: Libraries/Python
8 Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz
9 # Source0-md5: 215eddb6d853f6f4be5b4afc4154292f
10 URL: http://sourceforge.net/projects/mysql-python/
11 BuildRequires: mysql-devel >= 4.0.10
12 BuildRequires: python-devel >= 1:2.5
13 BuildRequires: python-modules
14 BuildRequires: python-setuptools
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)
28 %description -l pl.UTF-8
29 Ten pakiet zapewnia dostęp do baz danych MySQL z poziomu skryptów
30 języka Python. Projekt jest tworzony z myślą o:
31 - zgodności z bazodanowym API Pythona w wersji 2.0
32 - przyjaznością dla wątków (wątki nie zablokują się nawzajem).
35 %setup -q -n MySQL-python-%{version}
38 env CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" %{_bindir}/python setup.py build
41 rm -rf $RPM_BUILD_ROOT
42 python -- setup.py install \
43 --root=$RPM_BUILD_ROOT \
46 rm -f $RPM_BUILD_ROOT%{py_sitedir}/{MySQLdb/{constants/,},}*.py
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{py_sitedir}/*.so
56 %dir %{py_sitedir}/MySQLdb
57 %{py_sitedir}/MySQLdb/*.py?
58 %dir %{py_sitedir}/MySQLdb/constants
59 %{py_sitedir}/MySQLdb/constants/*.py?
60 %{py_sitedir}/*.egg-info