2017-04-19 22:00:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-xcffib
|
|
|
|
#
|
2020-02-06 13:45:26 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-04-19 22:00:11 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-04 13:11:47 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-12-04 15:15:25 +01:00
|
|
|
#
|
2017-04-19 22:00:11 +02:00
|
|
|
|
|
|
|
|
2018-12-04 18:26:16 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-04-19 22:00:11 +02:00
|
|
|
Name: python-xcffib
|
2020-02-06 13:45:26 +01:00
|
|
|
Version: 0.9.0
|
2017-04-19 22:00:11 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A drop in replacement for xpyb, an XCB python binding
|
2018-12-04 15:15:25 +01:00
|
|
|
License: Apache-2.0
|
2017-04-19 22:00:11 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-02-06 13:45:26 +01:00
|
|
|
URL: https://github.com/tych0/xcffib
|
2017-04-19 22:00:11 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz
|
2019-03-04 13:11:47 +01:00
|
|
|
BuildRequires: %{python_module cffi >= 1.1.0}
|
2019-06-17 14:08:36 +02:00
|
|
|
BuildRequires: %{python_module nose}
|
2018-12-04 15:15:25 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-04-19 22:00:11 +02:00
|
|
|
BuildRequires: %{python_module six}
|
2018-12-04 15:15:25 +01:00
|
|
|
BuildRequires: fdupes
|
2017-04-19 22:00:11 +02:00
|
|
|
BuildRequires: libxcb-devel
|
2018-12-04 15:15:25 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-04 13:11:47 +01:00
|
|
|
BuildRequires: xeyes
|
|
|
|
BuildRequires: xvfb-run
|
|
|
|
Requires: python-cffi >= 1.1.0
|
2017-04-19 22:00:11 +02:00
|
|
|
Requires: python-six
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
The xcffib package is intended to be a (mostly) drop-in
|
|
|
|
replacement for xpyb.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n xcffib-%{version}
|
2019-03-04 13:11:47 +01:00
|
|
|
# upstream moves files compared to git repository
|
|
|
|
sed -i -e 's:from \.testing:from testing:g' test/*.py
|
2017-04-19 22:00:11 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2019-03-04 13:11:47 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-04-19 22:00:11 +02:00
|
|
|
|
|
|
|
%check
|
2019-03-04 13:11:47 +01:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run nosetests-%{$python_bin_suffix} -v
|
2017-04-19 22:00:11 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 18:26:16 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2017-04-19 22:00:11 +02:00
|
|
|
%{python_sitelib}/xcffib/
|
|
|
|
%{python_sitelib}/xcffib-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%changelog
|