]> git.pld-linux.org Git - packages/python-MySQLdb.git/blame - python-MySQLdb.spec
- release 4
[packages/python-MySQLdb.git] / python-MySQLdb.spec
CommitLineData
e6d3f466 1Summary: A Python interface to MySQL
29232f80 2Summary(pl.UTF-8): Interfejs Pythona do MySQL
97ff155c 3Name: python-MySQLdb
c2d29eff 4Version: 1.2.3
54ff80c3 5Release: 4
97ff155c 6License: GPL
e2bd1ad2 7Group: Libraries/Python
e65f3550
AM
8Source0: http://dl.sourceforge.net/mysql-python/MySQL-python-%{version}.tar.gz
9# Source0-md5: 215eddb6d853f6f4be5b4afc4154292f
0df41bae 10URL: http://sourceforge.net/projects/mysql-python/
125d63b2 11BuildRequires: mysql-devel >= 4.0.10
e83b5301 12BuildRequires: python-devel >= 1:2.5
219eac19 13BuildRequires: python-modules
2e97efdf 14BuildRequires: python-setuptools
219eac19 15BuildRequires: rpm-pythonprov
a2905ce8 16BuildRequires: zlib-devel
315921e9 17%pyrequires_eq python-modules
a2905ce8 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
7efca04d 21An interface to the popular MySQL database server for Python. The
22design 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
29Ten pakiet zapewnia dostęp do baz danych MySQL z poziomu skryptów
30ję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 38env CFLAGS="%{rpmcflags} -DHAVE_OPENSSL=1" %{_bindir}/python setup.py build
a2905ce8 39
40%install
41rm -rf $RPM_BUILD_ROOT
aea1d389 42python -- setup.py install \
43 --root=$RPM_BUILD_ROOT \
aea1d389 44 --optimize=2
83f3dbbf 45
7abcd386
MC
46rm -f $RPM_BUILD_ROOT%{py_sitedir}/{MySQLdb/{constants/,},}*.py
47
a2905ce8 48%clean
49rm -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
This page took 0.123403 seconds and 4 git commands to generate.