wok rev 25205

updated python-mysql (1.2.3 -> 1.2.5)
author Hans-G?nter Theisgen
date Wed Jul 13 14:37:54 2022 +0100 (2022-07-13)
parents d71511614097
children f11c5374a9c6
files python-mysql/description.txt python-mysql/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-mysql/description.txt	Wed Jul 13 14:37:54 2022 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +MySQLdb is an interface to the popular MySQL database server for Python.
     1.5 +The design goals are:
     1.6 +
     1.7 +- Compliance with Python database API version 2.0 [PEP-0249]
     1.8 +- Thread-safety
     1.9 +- Thread-friendliness (threads will not block each other)
    1.10 +
    1.11 +MySQL-3.23 through 5.5 and Python-2.4 through 2.7 are currently supported.
     2.1 --- a/python-mysql/receipt	Wed Jul 13 14:28:15 2022 +0100
     2.2 +++ b/python-mysql/receipt	Wed Jul 13 14:37:54 2022 +0100
     2.3 @@ -1,18 +1,20 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="python-mysql"
     2.7 -SOURCE="MySQL-python"
     2.8 -VERSION="1.2.3"
     2.9 +VERSION="1.2.5"
    2.10  CATEGORY="development"
    2.11 -SHORT_DESC="A Python interface to MySQL ."
    2.12 +SHORT_DESC="A Python interface to MySQL."
    2.13  MAINTAINER="claudinei@slitaz.org"
    2.14  LICENSE="GPL"
    2.15 -TARBALL="$SOURCE-$VERSION.tar.gz"
    2.16 -WEB_SITE="http://mysql-python.sourceforge.net/"
    2.17 -WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
    2.18 +WEB_SITE="https://pypi.org/project/MySQL-python/"
    2.19 +REPOLOGY="python:mysql-python"
    2.20  
    2.21 -DEPENDS="python libmysqlclient zlib openssl"
    2.22 -BUILD_DEPENDS="python-dev python-setuptools mysql-dev"
    2.23 +SOURCE="MySQL-python"
    2.24 +TARBALL="$SOURCE-$VERSION.zip"
    2.25 +WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    2.26 +
    2.27 +DEPENDS="libmysqlclient openssl python zlib"
    2.28 +BUILD_DEPENDS="mysql-dev python-dev python-setuptools"
    2.29  
    2.30  # What is the latest version available today?
    2.31  current_version()
    2.32 @@ -26,15 +28,14 @@
    2.33  compile_rules()
    2.34  {
    2.35  	sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
    2.36 -	python setup.py build
    2.37 +	python setup.py build &&
    2.38  	python setup.py install --root=$DESTDIR
    2.39  }
    2.40  
    2.41  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.42  genpkg_rules()
    2.43  {
    2.44 -	mkdir -p $fs/usr
    2.45 -	cp -a $install/usr/lib $fs/usr
    2.46 +	cook_copy_folders	lib
    2.47  }
    2.48  
    2.49  # Remove old package.
    2.50 @@ -43,4 +44,3 @@
    2.51  	[ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] ||
    2.52  		rm -rf "$1/var/lib/tazpkg/installed/mysql-python"
    2.53  }
    2.54 -