]>
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 |
738b7041 | 5 | Release: 12 |
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/ |
a757e416 | 11 | BuildRequires: rpmbuild(macros) >= 1.710 |
125d63b2 | 12 | BuildRequires: mysql-devel >= 4.0.10 |
e83b5301 | 13 | BuildRequires: python-devel >= 1:2.5 |
219eac19 | 14 | BuildRequires: python-modules |
2e97efdf | 15 | BuildRequires: python-setuptools |
219eac19 | 16 | BuildRequires: rpm-pythonprov |
a2905ce8 | 17 | BuildRequires: zlib-devel |
315921e9 | 18 | %pyrequires_eq python-modules |
a2905ce8 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
7efca04d | 22 | An interface to the popular MySQL database server for Python. The |
23 | design goals are: | |
97ff155c | 24 | |
25 | - Compliance with Python database API version 2.0 | |
26 | - Thread-safety | |
27 | - Thread-friendliness (threads will not block each other) | |
a2905ce8 | 28 | |
8449461a JR |
29 | %description -l pl.UTF-8 |
30 | Ten pakiet zapewnia dostęp do baz danych MySQL z poziomu skryptów | |
31 | języka Python. Projekt jest tworzony z myślą o: | |
32 | - zgodności z bazodanowym API Pythona w wersji 2.0 | |
33 | - przyjaznością dla wątków (wątki nie zablokują się nawzajem). | |
a2905ce8 | 34 | |
35 | %prep | |
e65f3550 | 36 | %setup -q -n MySQL-python-%{version} |
a2905ce8 | 37 | |
38 | %build | |
447154b9 JR |
39 | CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" |
40 | %py_build | |
a2905ce8 | 41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
83f3dbbf | 44 | |
447154b9 JR |
45 | %py_install |
46 | ||
47 | %py_postclean | |
7abcd386 | 48 | |
a2905ce8 | 49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
83f3dbbf | 52 | %files |
a2905ce8 | 53 | %defattr(644,root,root,755) |
ce66bda1 | 54 | %doc README doc/* |
46cbb683 | 55 | %attr(755,root,root) %{py_sitedir}/*.so |
447154b9 | 56 | %{py_sitedir}/*.py[co] |
46cbb683 | 57 | %dir %{py_sitedir}/MySQLdb |
447154b9 | 58 | %{py_sitedir}/MySQLdb/*.py[co] |
46cbb683 | 59 | %dir %{py_sitedir}/MySQLdb/constants |
447154b9 | 60 | %{py_sitedir}/MySQLdb/constants/*.py[co] |
032c1264 | 61 | %{py_sitedir}/*.egg-info |