Hello community,
here is the log from the commit of package python-mysql for openSUSE:Factory
checked in at 2013-12-09 17:01:20
Comparing /work/SRC/openSUSE:Factory/python-mysql (Old)
and /work/SRC/openSUSE:Factory/.python-mysql.new (New)
Package is python-mysql
Changes:
--- /work/SRC/openSUSE:Factory/python-mysql/python-mysql.changes
2011-09-23 12:43:00.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-mysql.new/python-mysql.changes
2013-12-09 17:01:22.0 +0100
@@ -1,0 +2,17 @@
+Sun Dec 8 15:23:42 UTC 2013 - p.drou...@gmail.com
+
+- Update to version 1.2.4
+ + No changelog available
+- Set correct Group : Development/Languages/Python
+- Use download Url as source
+- Spec file general clean-up
+- Add MySQL-python-1.2.4-dont-use-python-distribute.patch; don't try
+ to use unavailable python-distribute
+- Remove depreciate AutoReqProv, %{py_requires} and # norootforbuild tags
+- Add unzip requirement to support tarball format
+- Add python-Sphinx requirement and generate html documentation
+- Remove --record-rpm=INSTALLED_FILES option and add %{python_sitearch}
+ in %files instead
+- Package GPL-2.0, HISTORY and Sphinx documentation
+
+---
Old:
MySQL-python-1.2.2-ssize.patch
MySQL-python-1.2.3.tar.bz2
New:
MySQL-python-1.2.4-dont-use-python-distribute.patch
MySQL-python-1.2.4-ssize.patch
MySQL-python-1.2.4.zip
Other differences:
--
++ python-mysql.spec ++
--- /var/tmp/diff_new_pack.zxZtMq/_old 2013-12-09 17:01:23.0 +0100
+++ /var/tmp/diff_new_pack.zxZtMq/_new 2013-12-09 17:01:23.0 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package python-mysql (Version 1.2.3)
+# spec file for package python-mysql
#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,33 +15,31 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-# norootforbuild
-
-
Name: python-mysql
-BuildRequires: mysql-devel python-devel python-setuptools
+Version:1.2.4
+Release:0
+Summary:An Interface to the Popular MySQL Database Server for Python
License:GPL-2.0+
-Group: Development/Libraries/Python
-AutoReqProv:on
-Version:1.2.3
-Release:2
-Source0:MySQL-python-%{version}.tar.bz2
-Patch0: MySQL-python-1.2.2-ssize.patch
+Group: Development/Languages/Python
Url:http://sourceforge.net/projects/mysql-python
-Summary:An Interface to the Popular MySQL Database Server for Python
+Source0:
https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-%{version}.zip
+Patch0: MySQL-python-1.2.4-ssize.patch
+# PATCH-FIX-UPSTREAM MySQL-python-1.2.4-dont-use-python-distribute.patch
--setup script wan't import setuptools
+# from distribute at first and try to download it
+Patch1: MySQL-python-1.2.4-dont-use-python-distribute.patch
+BuildRequires: python-Sphinx
+BuildRequires: mysql-devel
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%{py_requires}
%description
MySQLdb is an interface to the popular MySQL database server for
Python. The design goals are:
-
- Compliance with the Python database API version 2.0
-
- Thread-safety
-
- Thread-friendliness (threads will not block each other)
-
- Compatibility with MySQL-3.23 and later
This module should be mostly compatible with an older interface written
@@ -52,19 +50,28 @@
%prep
%setup -n MySQL-python-%{version}
+# Fix wrong-file-end-of-line-encoding rpmlint warning
+sed -i 's/\r$//' HISTORY
+sed -i 's/\r$//' README.md
%patch0
+%patch1 -p1
%build
export CFLAGS=$RPM_OPT_FLAGS
export mysqlversion=$(mysql_config --version)
export mysqlclient=mysqlclient_r
python setup.py build
+python setup.py build_sphinx
%install
-python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
--record-rpm=INSTALLED_FILES
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+# Remove hidden file generated by Sphinx
+rm build/sphinx/html/.buildinfo
+sed -i 's/\r$//' build/sphinx/html/_sources/*.txt
-%files -f INSTALLED_FILES
+%files
%defattr(-, root, root)
-%doc doc/* README
+%doc GPL-2.0 HISTORY README.md build/sphinx/html
+%{python_sitearch}
%changelog
++ MySQL-python-1.2.4-dont-use-python-distribute.patch ++
--- a/setup.py
+++ b/setup.py
@@ -3,8 +3,6 @@
import os