]> git.pld-linux.org Git - packages/python3-PyMySQL.git/blame - python3-PyMySQL.spec
- updated to todays snap
[packages/python3-PyMySQL.git] / python3-PyMySQL.spec
CommitLineData
06a3a68d
JR
1%define snap 20121119
2%define rel 1
d797ae00
AM
3Summary: Pure Python 3 MySQL Client
4Name: python3-PyMySQL
5Version: 0.6
8a082e93 6Release: 0.%{snap}.%{rel}
50d684a8
AM
7License: MIT
8Group: Libraries/Python
d797ae00 9#Source0: https://github.com/downloads/petehunt/PyMySQL/PyMySQL3-%{version}.tar.gz
06a3a68d
JR
10Source0: https://github.com/petehunt/PyMySQL/tarball/master/%{name}-%{version}.tar.gz
11# Source0-md5: 8bb32225d3590dd56ec586f4d125edbd
50d684a8 12URL: http://www.pymysql.org/
d797ae00
AM
13BuildRequires: python3-2to3
14BuildRequires: python3-distribute
15BuildRequires: python3-modules
50d684a8 16BuildRequires: rpm-pythonprov
d797ae00 17%pyrequires_eq python3-modules
50d684a8
AM
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
d797ae00 22This package contains a pure-Python 3 MySQL client library.
50d684a8
AM
23
24The goal of pymysql is to be a drop-in replacement for MySQLdb and
25work on CPython 2.3+, Jython, IronPython, PyPy and Python 3.
26
27%prep
d797ae00
AM
28#%%setup -q -n PyMySQL3-%{version}
29%setup -q -n petehunt-PyMySQL-f670d9a
30sed -i -e 's#2to3#2to3-3.2#g' build-py3k.sh
50d684a8
AM
31
32%build
d797ae00
AM
33sh ./build-py3k.sh
34cd py3k
35PYTHONPATH=$(pwd)/pymysql %{__python3} setup.py build
50d684a8
AM
36
37%install
38rm -rf $RPM_BUILD_ROOT
d797ae00
AM
39cd py3k
40python3 -- setup.py install \
50d684a8
AM
41 --root=$RPM_BUILD_ROOT \
42 --optimize=2
43
50d684a8
AM
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
d797ae00
AM
49%{py3_sitescriptdir}/PyMySQL3-*.egg-info
50%{py3_sitescriptdir}/pymysql
This page took 0.066031 seconds and 4 git commands to generate.