2014-09-03 17:58:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-click
|
|
|
|
#
|
2018-12-04 14:19:44 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-09-03 17:58:51 +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.
|
|
|
|
|
2018-12-04 14:19:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-07-20 08:51:59 +02:00
|
|
|
#
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
|
2017-03-22 18:38:25 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-09-03 17:58:51 +02:00
|
|
|
Name: python-click
|
2017-03-16 15:21:44 +01:00
|
|
|
Version: 6.7
|
2014-09-03 17:58:51 +02:00
|
|
|
Release: 0
|
2018-12-05 20:24:11 +01:00
|
|
|
Summary: A wrapper around optparse for command line utilities
|
2015-07-20 08:51:59 +02:00
|
|
|
License: BSD-3-Clause
|
2014-09-03 17:58:51 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 18:11:14 +01:00
|
|
|
URL: http://github.com/mitsuhiko/click
|
2017-04-04 17:51:51 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/c/click/click-%{version}.tar.gz
|
2017-09-12 17:24:43 +02:00
|
|
|
# PATCH-FIX-OPENSUSE python-click-test_compat.py.patch -- disable a test to make it build
|
|
|
|
Patch0: %{name}-test_compat.py.patch
|
2017-03-22 18:38:25 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2014-09-03 17:58:51 +02:00
|
|
|
BuildArch: noarch
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_subpackages
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%description
|
2018-12-05 20:24:11 +01:00
|
|
|
Click is a Python package for creating command line interfaces
|
2014-09-03 17:58:51 +02:00
|
|
|
in a composable way with as little code as necessary. It's the "Command
|
2018-12-05 20:24:11 +01:00
|
|
|
Line Interface Creation Kit". It is configurable, and comes with
|
|
|
|
defaults out of the box.
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n click-%{version}
|
2017-09-12 17:24:43 +02:00
|
|
|
%patch0 -p1
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_build
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-22 18:38:25 +01:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%check
|
2017-03-22 18:38:25 +01:00
|
|
|
export LANG=en_US.UTF-8
|
2017-04-04 17:51:51 +02:00
|
|
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest --tb=short}
|
2014-09-03 17:58:51 +02:00
|
|
|
|
2017-03-22 18:38:25 +01:00
|
|
|
%files %{python_files}
|
2018-12-04 18:11:14 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES README
|
2017-03-22 18:38:25 +01:00
|
|
|
%{python_sitelib}/click
|
2017-04-04 17:51:51 +02:00
|
|
|
%{python_sitelib}/click-%{version}-py%{python_version}.egg-info
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%changelog
|