forked from pool/python-pick
- initial package for version 0.6.4 OBS-URL: https://build.opensuse.org/request/show/667116 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pick?expand=0&rev=1
66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-pick
|
|
#
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-pick
|
|
Version: 0.6.4
|
|
Release: 0
|
|
Summary: Create curses based interactive selection list in the terminal
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/wong2/pick
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pick/pick-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%if %{with tests}
|
|
BuildRequires: %{python_module curses}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
pick is a small python library to help you create curses
|
|
based interactive selection list in the terminal.
|
|
|
|
%prep
|
|
%setup -q -n pick-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%if %{with tests}
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md example/
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|