Hello community, here is the log from the commit of package python-pylibmc for openSUSE:Factory checked in at 2017-09-04 12:33:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pylibmc (Old) and /work/SRC/openSUSE:Factory/.python-pylibmc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pylibmc" Mon Sep 4 12:33:43 2017 rev:4 rq:520050 version:1.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pylibmc/python-pylibmc.changes 2015-05-16 19:01:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pylibmc.new/python-pylibmc.changes 2017-09-04 12:33:49.116636835 +0200 @@ -1,0 +2,14 @@ +Thu Aug 31 21:35:05 UTC 2017 - toddrme2178@gmail.com + +- Update to version 1.5.2 + * Fixes critical memory leaks in common code paths + introduced in 1.4.2. + * Fixes a critical bug in a corner of the zlib inflation code, + where prior memory errors would trigger a double free. + +------------------------------------------------------------------- +Thu Aug 24 13:51:15 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + +------------------------------------------------------------------- @@ -36,0 +51 @@ + Old: ---- pylibmc-1.4.2.tar.gz New: ---- pylibmc-1.5.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pylibmc.spec ++++++ --- /var/tmp/diff_new_pack.yz8yan/_old 2017-09-04 12:33:50.752406841 +0200 +++ /var/tmp/diff_new_pack.yz8yan/_new 2017-09-04 12:33:50.788401780 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pylibmc # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,21 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test Name: python-pylibmc -Version: 1.4.2 +Version: 1.5.2 Release: 0 Summary: Quick and small memcached client for Python License: BSD-3-Clause Group: Development/Languages/Python Url: http://sendapatch.se/projects/pylibmc/ -Source: https://pypi.python.org/packages/source/p/pylibmc/pylibmc-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pylibmc/pylibmc-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: libmemcached-devel -BuildRequires: python-devel +BuildRequires: python-rpm-macros BuildRequires: zlib-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%if %{with test} +BuildRequires: %{python_module nose} %endif +%python_subpackages %description pylibmc is a Python client for memcached written in C. @@ -39,14 +44,24 @@ %setup -q -n pylibmc-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} -%files +%if %{with test} +%check +export NOSE_IGNORE_CONFIG_FILES=1 +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +nosetests-%{$python_bin_suffix} tests +} +%endif + +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst +%doc LICENSE README.rst %{python_sitearch}/* %changelog ++++++ pylibmc-1.4.2.tar.gz -> pylibmc-1.5.2.tar.gz ++++++ ++++ 2817 lines of diff (skipped)