14
0
forked from pool/python-xerox

Accepting request 805848 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/805848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xerox?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2020-05-15 17:37:54 +00:00
committed by Git OBS Bridge
parent 75a0bfd2ee
commit a0cef402c1
2 changed files with 21 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-xerox
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,8 @@
# 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-%{**}}
@@ -20,20 +21,21 @@
Name: python-xerox
Version: 0.4.1
Release: 0
License: MIT
Summary: Simple Copy + Paste in Python
Url: http://github.com/kennethreitz/xerox
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kennethreitz/xerox
Source: https://files.pythonhosted.org/packages/source/x/xerox/xerox-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: xclip
BuildRequires: xvfb-run
Requires: xclip
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -47,15 +49,22 @@ Python copy and paste library supporting OS X, X11 (Linux, BSD, etc.), and Windo
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/xerox
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand xvfb-run $python -m pytest
%post
%python_install_alternative xerox
%postun
%python_uninstall_alternative xerox
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/xerox
%python_alternative %{_bindir}/xerox
%{python_sitelib}/*
%changelog