]>
Commit | Line | Data |
---|---|---|
e6d3f466 | 1 | Summary: A Python interface to MySQL |
29232f80 | 2 | Summary(pl.UTF-8): Interfejs Pythona do MySQL |
97ff155c | 3 | Name: python-MySQLdb |
c2d29eff | 4 | Version: 1.2.3 |
54ff80c3 | 5 | Release: 4 |
97ff155c | 6 | License: GPL |
e2bd1ad2 | 7 | Group: Libraries/Python |
e65f3550 AM |
8 | Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz |
9 | # Source0-md5: 215eddb6d853f6f4be5b4afc4154292f | |
0df41bae | 10 | URL: http://sourceforge.net/projects/mysql-python/ |
125d63b2 | 11 | BuildRequires: mysql-devel >= 4.0.10 |
e83b5301 | 12 | BuildRequires: python-devel >= 1:2.5 |
219eac19 | 13 | BuildRequires: python-modules |
2e97efdf | 14 | BuildRequires: python-setuptools |
219eac19 | 15 | BuildRequires: rpm-pythonprov |
a2905ce8 | 16 | BuildRequires: zlib-devel |
315921e9 | 17 | %pyrequires_eq python-modules |
a2905ce8 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
7efca04d | 21 | An interface to the popular MySQL database server for Python. The |
22 | design goals are: | |
97ff155c | 23 | |
24 | - Compliance with Python database API version 2.0 | |
25 | - Thread-safety | |
26 | - Thread-friendliness (threads will not block each other) | |
a2905ce8 | 27 | |
8449461a JR |
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). | |
a2905ce8 | 33 | |
34 | %prep | |
e65f3550 | 35 | %setup -q -n MySQL-python-%{version} |
a2905ce8 | 36 | |
37 | %build | |
36370f85 | 38 | env CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" %{_bindir}/python setup.py build |
a2905ce8 | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
aea1d389 | 42 | python -- setup.py install \ |
43 | --root=$RPM_BUILD_ROOT \ | |
aea1d389 | 44 | --optimize=2 |
83f3dbbf | 45 | |
7abcd386 MC |
46 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/{MySQLdb/{constants/,},}*.py |
47 | ||
a2905ce8 | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
83f3dbbf | 51 | %files |
a2905ce8 | 52 | %defattr(644,root,root,755) |
ce66bda1 | 53 | %doc README doc/* |
46cbb683 JB |
54 | %attr(755,root,root) %{py_sitedir}/*.so |
55 | %{py_sitedir}/*.py? | |
56 | %dir %{py_sitedir}/MySQLdb | |
57 | %{py_sitedir}/MySQLdb/*.py? | |
58 | %dir %{py_sitedir}/MySQLdb/constants | |
59 | %{py_sitedir}/MySQLdb/constants/*.py? | |
032c1264 | 60 | %{py_sitedir}/*.egg-info |