Hello community, here is the log from the commit of package python-xcffib for openSUSE:Factory checked in at 2019-03-29 20:36:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-xcffib (Old) and /work/SRC/openSUSE:Factory/.python-xcffib.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xcffib" Fri Mar 29 20:36:45 2019 rev:4 rq:687601 version:0.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-xcffib/python-xcffib.changes 2019-01-25 22:45:25.711075589 +0100 +++ /work/SRC/openSUSE:Factory/.python-xcffib.new.25356/python-xcffib.changes 2019-03-29 20:36:46.646606612 +0100 @@ -1,0 +2,8 @@ +Mon Mar 4 11:54:51 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Update to 0.7.0: + * Various updates and fixes for ghc/cabal + * Drop unnecessary imports +- Enable tests + +------------------------------------------------------------------- Old: ---- xcffib-0.6.0.tar.gz New: ---- xcffib-0.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-xcffib.spec ++++++ --- /var/tmp/diff_new_pack.zn2IUK/_old 2019-03-29 20:36:47.374607662 +0100 +++ /var/tmp/diff_new_pack.zn2IUK/_new 2019-03-29 20:36:47.378607667 +0100 @@ -12,33 +12,31 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Missing files for tests -%bcond_with tests Name: python-xcffib -Version: 0.6.0 +Version: 0.7.0 Release: 0 Summary: A drop in replacement for xpyb, an XCB python binding License: Apache-2.0 Group: Development/Languages/Python URL: http://github.com/tych0/xcffib Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz -BuildRequires: %{python_module cffi} +BuildRequires: %{python_module cffi >= 1.1.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: libxcb-devel BuildRequires: python-rpm-macros -Requires: python-cffi +BuildRequires: xeyes +BuildRequires: xvfb-run +Requires: python-cffi >= 1.1.0 Requires: python-six BuildArch: noarch -%if %{with tests} BuildRequires: %{python_module nose} -%endif %python_subpackages %description @@ -47,18 +45,18 @@ %prep %setup -q -n xcffib-%{version} +# upstream moves files compared to git repository +sed -i -e 's:from \.testing:from testing:g' test/*.py %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitearch} +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check -%python_expand nosetests-%{$python_bin_suffix} -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run nosetests-%{$python_bin_suffix} -v %files %{python_files} %license LICENSE ++++++ xcffib-0.6.0.tar.gz -> xcffib-0.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xcffib-0.6.0/PKG-INFO new/xcffib-0.7.0/PKG-INFO --- old/xcffib-0.6.0/PKG-INFO 2018-03-07 03:32:38.000000000 +0100 +++ new/xcffib-0.7.0/PKG-INFO 2019-02-15 02:31:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: xcffib -Version: 0.6.0 +Version: 0.7.0 Summary: A drop in replacement for xpyb, an XCB python binding Home-page: http://github.com/tych0/xcffib Author: Tycho Andersen diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xcffib-0.6.0/setup.cfg new/xcffib-0.7.0/setup.cfg --- old/xcffib-0.6.0/setup.cfg 2018-03-07 03:32:38.000000000 +0100 +++ new/xcffib-0.7.0/setup.cfg 2019-02-15 02:31:18.000000000 +0100 @@ -1,5 +1,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xcffib-0.6.0/setup.py new/xcffib-0.7.0/setup.py --- old/xcffib-0.6.0/setup.py 2018-03-07 03:32:37.000000000 +0100 +++ new/xcffib-0.7.0/setup.py 2019-02-15 02:31:17.000000000 +0100 @@ -60,7 +60,7 @@ cffi_modules=["xcffib/ffi_build.py:ffi"] ) -version = "0.6.0" +version = "0.7.0" dependencies = ['six', requires_cffi] setup( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xcffib-0.6.0/xcffib/__init__.py new/xcffib-0.7.0/xcffib/__init__.py --- old/xcffib-0.6.0/xcffib/__init__.py 2018-03-07 03:32:37.000000000 +0100 +++ new/xcffib-0.7.0/xcffib/__init__.py 2019-02-15 02:31:17.000000000 +0100 @@ -15,6 +15,7 @@ from __future__ import division, absolute_import +import ctypes.util import functools import platform import six @@ -26,15 +27,18 @@ except ImportError: from xcffib.ffi_build import ffi -soname = "libxcb.so.1" if platform.system() == "Darwin": soname = "libxcb.dylib" elif platform.system() == "Windows": soname = "libxcb.dll" +else: + soname = ctypes.util.find_library("xcb") + if soname is None: + soname = "libxcb.so" lib = ffi.dlopen(soname) __xcb_proto_version__ = "1.13" -__version__ = "0.6.0" +__version__ = "0.7.0" X_PROTOCOL = lib.X_PROTOCOL X_PROTOCOL_REVISION = lib.X_PROTOCOL_REVISION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/xcffib-0.6.0/xcffib.egg-info/PKG-INFO new/xcffib-0.7.0/xcffib.egg-info/PKG-INFO --- old/xcffib-0.6.0/xcffib.egg-info/PKG-INFO 2018-03-07 03:32:38.000000000 +0100 +++ new/xcffib-0.7.0/xcffib.egg-info/PKG-INFO 2019-02-15 02:31:18.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: xcffib -Version: 0.6.0 +Version: 0.7.0 Summary: A drop in replacement for xpyb, an XCB python binding Home-page: http://github.com/tych0/xcffib Author: Tycho Andersen
