2014-09-03 17:58:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-click
|
|
|
|
#
|
2017-03-22 18:38:25 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://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
|
|
|
|
Summary: A simple wrapper around optparse for powerful 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
|
2015-07-20 08:51:59 +02:00
|
|
|
Url: http://github.com/mitsuhiko/click
|
2017-03-22 18:38:25 +01:00
|
|
|
Source: https://pypi.io/packages/source/c/click/click-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
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
|
|
|
|
Click is a Python package for creating beautiful command line interfaces
|
|
|
|
in a composable way with as little code as necessary. It's the "Command
|
|
|
|
Line Interface Creation Kit". It's highly configurable but comes with
|
|
|
|
sensible defaults out of the box.
|
|
|
|
|
|
|
|
It aims to make the process of writing command line tools quick and fun
|
|
|
|
while also preventing any frustration caused by the inability to implement
|
|
|
|
an intended CLI API.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n click-%{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} %{_bindir}/py.test-%{$python_version} --tb=short}
|
2014-09-03 17:58:51 +02:00
|
|
|
|
2017-03-22 18:38:25 +01:00
|
|
|
%files %{python_files}
|
2014-09-03 17:58:51 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES LICENSE README
|
2017-03-22 18:38:25 +01:00
|
|
|
%{python_sitelib}/click
|
|
|
|
%{python_sitelib}/click-%{version}-py%{py_ver}.egg-info
|
2014-09-03 17:58:51 +02:00
|
|
|
|
|
|
|
%changelog
|