]> git.pld-linux.org Git - packages/python3-oursql.git/blob - python3-oursql.spec
77c694df2a713f94e5b1c97f7a3c35cc31a22ce6
[packages/python3-oursql.git] / python3-oursql.spec
1 %define         module  oursql
2 Summary:        Set of MySQL bindings for python 3.x
3 Summary(pl.UTF-8):      Zestaw dowiązań do MySQLa dla Pythona
4 Name:           python3-%{module}
5 Version:        0.9.3
6 Release:        1
7 License:        BSD-like
8 Group:          Libraries/Python
9 Source0:        https://launchpad.net/oursql/py3k/py3k-0.9.3/+download/%{module}-%{version}.zip
10 # Source0-md5:  1c19d9ecbfc96e071f6da463a0fc9109
11 URL:            http://launchpad.net/oursql/py3k/
12 BuildRequires:  python3-2to3
13 BuildRequires:  python3-Cython
14 BuildRequires:  python3-devel
15 BuildRequires:  python3-modules
16 BuildRequires:  rpm-pythonprov
17 BuildRequires:  rpmbuild(macros) >= 1.219
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 oursql is a set of MySQL bindings for python 2.4+ with a focus on
22 wrapping the `MYSQL_STMT API`__ to provide real parameterization and
23 real server-side cursors. MySQL 4.1.2 or better is required.
24
25 Python 3.x version.
26
27 %prep
28 %setup -q -n %{module}-%{version}
29
30 %build
31 %{__python3} setup.py build_ext
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 %{__python3} setup.py \
36         install \
37         --root=$RPM_BUILD_ROOT \
38         --optimize=2
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc CHANGELOG COPYING README
46 %attr(755,root,root) %{py3_sitedir}/*.so
47 %{py3_sitedir}/*.egg-info
This page took 0.048134 seconds and 2 git commands to generate.