2015-08-25 07:21:27 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyperclip
|
|
|
|
#
|
2020-03-11 16:56:12 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-08-25 07:21:27 +00: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.
|
|
|
|
|
2018-12-04 13:53:22 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-25 07:21:27 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-03-09 06:27:01 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-08-25 07:21:27 +00:00
|
|
|
Name: python-pyperclip
|
2020-12-19 10:33:23 +00:00
|
|
|
Version: 1.8.1
|
2015-08-25 07:21:27 +00:00
|
|
|
Release: 0
|
2017-03-13 18:01:11 +00:00
|
|
|
Summary: A clipboard module for Python
|
2017-03-09 06:27:01 +00:00
|
|
|
License: BSD-3-Clause
|
2019-10-14 14:16:34 +00:00
|
|
|
URL: https://github.com/asweigart/pyperclip
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pyperclip/pyperclip-%{version}.tar.gz
|
2019-04-15 09:50:58 +00:00
|
|
|
# https://github.com/asweigart/pyperclip/issues/17
|
|
|
|
Source1: https://raw.githubusercontent.com/asweigart/pyperclip/master/LICENSE.txt
|
2017-03-09 06:27:01 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2015-08-25 07:21:27 +00:00
|
|
|
BuildRequires: fdupes
|
2017-03-09 06:27:01 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: unzip
|
2019-04-15 09:50:58 +00:00
|
|
|
Requires: xclip
|
|
|
|
Requires: xsel
|
2015-08-25 07:21:27 +00:00
|
|
|
BuildArch: noarch
|
2019-10-14 14:16:34 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2017-03-09 06:27:01 +00:00
|
|
|
%python_subpackages
|
2015-08-25 07:21:27 +00:00
|
|
|
|
|
|
|
%description
|
2017-03-13 18:01:11 +00:00
|
|
|
A clipboard module for Python. It only handles plain text.
|
2015-08-25 07:21:27 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyperclip-%{version}
|
2019-04-15 09:50:58 +00:00
|
|
|
cp %{SOURCE1} .
|
2015-08-25 07:21:27 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-09 06:27:01 +00:00
|
|
|
%python_build
|
2015-08-25 07:21:27 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-09 06:27:01 +00:00
|
|
|
%python_install
|
2019-10-14 14:16:34 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-08-25 07:21:27 +00:00
|
|
|
|
2019-04-15 09:50:58 +00:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2017-03-09 06:27:01 +00:00
|
|
|
%files %{python_files}
|
2019-04-15 09:50:58 +00:00
|
|
|
%license LICENSE.txt
|
2015-08-25 07:21:27 +00:00
|
|
|
%{python_sitelib}/pyperclip
|
2020-03-11 16:56:12 +00:00
|
|
|
%{python_sitelib}/pyperclip-%{version}-py*.egg-info
|
2015-08-25 07:21:27 +00:00
|
|
|
|
|
|
|
%changelog
|