packages: python-PyMySQL/python-PyMySQL.spec (NEW) - initial
arekm
arekm at pld-linux.org
Fri Jul 29 13:13:35 CEST 2011
Author: arekm Date: Fri Jul 29 11:13:35 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/python-PyMySQL:
python-PyMySQL.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-PyMySQL/python-PyMySQL.spec
diff -u /dev/null packages/python-PyMySQL/python-PyMySQL.spec:1.1
--- /dev/null Fri Jul 29 13:13:35 2011
+++ packages/python-PyMySQL/python-PyMySQL.spec Fri Jul 29 13:13:30 2011
@@ -0,0 +1,55 @@
+# $Revision$, $Date$
+Summary: Pure Python MySQL Client
+Name: python-PyMySQL
+Version: 0.4
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://github.com/downloads/petehunt/PyMySQL/PyMySQL-%{version}.tar.gz
+# Source0-md5: 4bc27e750f5d16e1e6169ad43b2c3568
+URL: http://www.pymysql.org/
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+%pyrequires_eq python-modules
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains a pure-Python 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}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+python -- setup.py install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/{PyMySQL/{constants/,},}*.py
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG
+%{py_sitescriptdir}/PyMySQL-*.egg-info
+%{py_sitescriptdir}/pymysql
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/29 11:13:30 arekm
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list