packages: python3-PyMySQL/python3-PyMySQL.spec - python3 version based on p...
arekm
arekm at pld-linux.org
Thu May 31 10:39:22 CEST 2012
Author: arekm Date: Thu May 31 08:39:22 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- python3 version based on python2 spec
---- Files affected:
packages/python3-PyMySQL:
python3-PyMySQL.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/python3-PyMySQL/python3-PyMySQL.spec
diff -u packages/python3-PyMySQL/python3-PyMySQL.spec:1.2 packages/python3-PyMySQL/python3-PyMySQL.spec:1.3
--- packages/python3-PyMySQL/python3-PyMySQL.spec:1.2 Sat Nov 12 14:35:10 2011
+++ packages/python3-PyMySQL/python3-PyMySQL.spec Thu May 31 10:39:17 2012
@@ -1,47 +1,53 @@
# $Revision$, $Date$
-Summary: Pure Python MySQL Client
-Name: python-PyMySQL
-Version: 0.5
-Release: 1
+%define snap 20120531
+Summary: Pure Python 3 MySQL Client
+Name: python3-PyMySQL
+Version: 0.6
+Release: 0.%{snap}.1
License: MIT
Group: Libraries/Python
-Source0: https://github.com/downloads/petehunt/PyMySQL/PyMySQL-%{version}.tar.gz
-# Source0-md5: 125e8a3449e05afcb04874a19673426b
+#Source0: https://github.com/downloads/petehunt/PyMySQL/PyMySQL3-%{version}.tar.gz
+Source0: https://nodeload.github.com/petehunt/PyMySQL/tarball/master#/%{name}-%{version}.tar.gz
+# Source0-md5: 653fc737f01b827b4b79ab004613f840
URL: http://www.pymysql.org/
-BuildRequires: python-modules
-BuildRequires: python-setuptools
+BuildRequires: python3-2to3
+BuildRequires: python3-distribute
+BuildRequires: python3-modules
BuildRequires: rpm-pythonprov
-%pyrequires_eq python-modules
+%pyrequires_eq python3-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-This package contains a pure-Python MySQL client library.
+This package contains a pure-Python 3 MySQL client library.
The goal of pymysql is to be a drop-in replacement for MySQLdb and
work on CPython 2.3+, Jython, IronPython, PyPy and Python 3.
%prep
-%setup -q -n PyMySQL-%{version}
+#%%setup -q -n PyMySQL3-%{version}
+%setup -q -n petehunt-PyMySQL-f670d9a
+sed -i -e 's#2to3#2to3-3.2#g' build-py3k.sh
%build
-%{__python} setup.py build
+sh ./build-py3k.sh
+cd py3k
+PYTHONPATH=$(pwd)/pymysql %{__python3} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-python -- setup.py install \
+cd py3k
+python3 -- setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
-%py_postclean
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{py_sitescriptdir}/PyMySQL-*.egg-info
-%{py_sitescriptdir}/pymysql
+%{py3_sitescriptdir}/PyMySQL3-*.egg-info
+%{py3_sitescriptdir}/pymysql
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -49,9 +55,6 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
-Revision 1.2 2011/11/12 13:35:10 wiget
-- up to 0.5
-
-Revision 1.1 2011/07/29 11:13:30 arekm
-- initial
+Revision 1.3 2012/05/31 08:39:17 arekm
+- python3 version based on python2 spec
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/python3-PyMySQL/python3-PyMySQL.spec?r1=1.2&r2=1.3
More information about the pld-cvs-commit
mailing list