14
0

Accepting request 519964 from devel:languages:python:singlespec-staging

- 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
This commit is contained in:
Jan Matejek
2017-09-01 14:40:57 +00:00
committed by Git OBS Bridge
parent 2d2b766639
commit d83cb17abc
2 changed files with 20 additions and 14 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 24 13:38:12 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Thu Oct 24 11:05:18 UTC 2013 - speilicke@suse.com
@@ -23,3 +28,4 @@ Mon Mar 26 11:39:09 UTC 2012 - saschpe@suse.de
- Initial version

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-entrypoint2
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -16,24 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-entrypoint2
Version: 0.0.6
Release: 0
Url: https://github.com/ponty/entrypoint2
Summary: Easy to use command-line interface for python modules, fork of entrypoint
License: BSD-2-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/e/entrypoint2/entrypoint2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
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
Requires: python-decorator
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Requires: python-decorator
BuildArch: noarch
%python_subpackages
%description
entrypoint2 is an easy to use command-line interface for python modules, fork
@@ -43,12 +43,12 @@ of entrypoint.
%setup -q -n entrypoint2-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%files
%files %{python_files}
%defattr(-,root,root)
%doc LICENSE.txt README.rst
%{python_sitelib}/*