- singlespec auto-conversion - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.0.6. Upstream provides no changelog, but looking at the (4) commits on github since 0.0.5, I see these changes: * Update documentaiton * Support repeated arguments * Use PEP8 formatting - Add Requires entries for python-argparse and -decorator - Initial version OBS-URL: https://build.opensuse.org/request/show/519964 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoint2?expand=0&rev=11
57 lines
1.7 KiB
RPMSpec
57 lines
1.7 KiB
RPMSpec
#
|
|
# spec file for package python-entrypoint2
|
|
#
|
|
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-entrypoint2
|
|
Version: 0.0.6
|
|
Release: 0
|
|
Summary: Easy to use command-line interface for python modules, fork of entrypoint
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/ponty/entrypoint2
|
|
Source: https://files.pythonhosted.org/packages/source/e/entrypoint2/entrypoint2-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
%ifpython2
|
|
Requires: python-argparse
|
|
%endif
|
|
Requires: python-decorator
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
entrypoint2 is an easy to use command-line interface for python modules, fork
|
|
of entrypoint.
|
|
|
|
%prep
|
|
%setup -q -n entrypoint2-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.txt README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|