[mysql-connector-python] udpate to 1.0.12

Remi Collet remi at fedoraproject.org
Mon Aug 26 16:02:24 UTC 2013


commit 29ac90fb34af0382d51a5e57f0956770daf3a512
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon Aug 26 18:02:09 2013 +0200

    udpate to 1.0.12

 .gitignore                  |    1 +
 mysql-connector-python.spec |   23 ++++++++++++++---------
 sources                     |    2 +-
 3 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 69d0fca..949e6f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
 /mysql-connector-python-1.0.9-nodocs.tar.bz2
 /mysql-connector-python-1.0.10.tar.gz
 /mysql-connector-python-1.0.11.tar.gz
+/mysql-connector-python-1.0.12.tar.gz
diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec
index 187df1a..fc97a01 100644
--- a/mysql-connector-python.spec
+++ b/mysql-connector-python.spec
@@ -1,4 +1,5 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?__python2:       %global __python2 %{__python}}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 %if 0%{?fedora} >= 13
 %global with_python3 1
@@ -11,8 +12,8 @@
 %global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
 
 Name:           mysql-connector-python
-Version:        1.0.11
-Release:        2%{?dist}
+Version:        1.0.12
+Release:        1%{?dist}
 Summary:        MySQL Connector for Python 2
 
 Group:          Development/Languages
@@ -25,12 +26,14 @@ Source0:        %{name}-%{version}.tar.gz
 
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  python-devel
+BuildRequires:  python2-devel
 %if 0%{?with_python3}
 BuildRequires:  python3-devel
 %endif
+%if %{with_tests}
 # for unittest
 BuildRequires:  mysql-server
+%endif
 
 
 %description
@@ -40,8 +43,7 @@ is necessary to run this Python DB API v2.0 compliant driver.
 
 %if 0%{?with_python3}
 %package -n mysql-connector-python3
-
-Summary:        MySQL Connector for Python 3
+Summary: MySQL Connector for Python 3
 
 %description -n mysql-connector-python3
 MySQL Connector/Python is implementing the MySQL Client/Server protocol
@@ -69,12 +71,12 @@ rm -rf build
 %endif
 
 # Python 2 build (end with this for tests)
-%{__python} setup.py install --root %{buildroot}
+%{__python2} setup.py install --root %{buildroot}
 
 
 %check
 %if %{with_tests}
-%{__python} unittests.py \
+%{__python2} unittests.py \
     --mysql-basedir=%{_prefix} \
     --verbosity=1
 %else
@@ -90,7 +92,7 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %doc ChangeLog COPYING README* docs/README_DOCS.txt
 %doc python2/examples
-%{python_sitelib}/*
+%{python2_sitelib}/*
 
 
 %if 0%{?with_python3}
@@ -102,6 +104,9 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* Mon Aug 26 2013 Remi Collet <remi at fedoraproject.org> - 1.0.12-1
+- version 1.0.12 GA
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.11-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index e699b0c..e0ae4d0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-40cdf649696aa461458b741a07756f4a  mysql-connector-python-1.0.11.tar.gz
+caac07dc8fa08d1f55ad0c51491d2ba7  mysql-connector-python-1.0.12.tar.gz


More information about the scm-commits mailing list