From a2b85521345e33ab85f44204054da882930bdcfcf713a583ee4390e11e48399d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 4 Mar 2019 12:11:47 +0000 Subject: [PATCH] - Update to 0.7.0: * Various updates and fixes for ghc/cabal * Drop unnecessary imports - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xcffib?expand=0&rev=8 --- python-xcffib.changes | 8 ++++++++ python-xcffib.spec | 22 ++++++++++------------ xcffib-0.6.0.tar.gz | 3 --- xcffib-0.7.0.tar.gz | 3 +++ 4 files changed, 21 insertions(+), 15 deletions(-) delete mode 100644 xcffib-0.6.0.tar.gz create mode 100644 xcffib-0.7.0.tar.gz diff --git a/python-xcffib.changes b/python-xcffib.changes index cbec6ea..09c38f6 100644 --- a/python-xcffib.changes +++ b/python-xcffib.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Mar 4 11:54:51 UTC 2019 - Tomáš Chvátal + +- Update to 0.7.0: + * Various updates and fixes for ghc/cabal + * Drop unnecessary imports +- Enable tests + ------------------------------------------------------------------- Thu Jan 24 15:23:49 UTC 2019 - mvetter@suse.com diff --git a/python-xcffib.spec b/python-xcffib.spec index 7a7d3b2..b922a1c 100644 --- a/python-xcffib.spec +++ b/python-xcffib.spec @@ -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 @@ replacement for xpyb. %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 diff --git a/xcffib-0.6.0.tar.gz b/xcffib-0.6.0.tar.gz deleted file mode 100644 index 6eb4d0b..0000000 --- a/xcffib-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:36142cb72535933e8e1ed39ff2c45559fa7038823bd6be6961ef8ee5bb0f6912 -size 84360 diff --git a/xcffib-0.7.0.tar.gz b/xcffib-0.7.0.tar.gz new file mode 100644 index 0000000..9a253b1 --- /dev/null +++ b/xcffib-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68ed1204a3162766fe44bd215f84c2e7a765b85e34e024d0b4131e935016cc8b +size 83895