From a769fd0800b486a8b1865f9ef619b442f3b277dd90668e8b34c0227bfb86b97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 10 Aug 2018 13:55:00 +0000 Subject: [PATCH] - Drop python-argparse dependency that is not needed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoint2?expand=0&rev=15 --- python-entrypoint2.changes | 5 +++++ python-entrypoint2.spec | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/python-entrypoint2.changes b/python-entrypoint2.changes index ab4de99..5a5656b 100644 --- a/python-entrypoint2.changes +++ b/python-entrypoint2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 10 13:52:40 UTC 2018 - tchvatal@suse.com + +- Drop python-argparse dependency that is not needed + ------------------------------------------------------------------- Tue Sep 5 23:48:55 UTC 2017 - jengelh@inai.de diff --git a/python-entrypoint2.spec b/python-entrypoint2.spec index 049f515..fbcb1c9 100644 --- a/python-entrypoint2.spec +++ b/python-entrypoint2.spec @@ -1,7 +1,7 @@ # # spec file for package python-entrypoint2 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -23,14 +23,11 @@ Release: 0 Summary: Command-line interface for python modules License: BSD-2-Clause Group: Development/Languages/Python -Url: https://github.com/ponty/entrypoint2 +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: fdupes BuildRequires: python-rpm-macros -%ifpython2 -Requires: python-argparse -%endif Requires: python-decorator BuildArch: noarch %python_subpackages @@ -41,16 +38,19 @@ off entrypoint. %prep %setup -q -n entrypoint2-%{version} +# argparse is py2.6 or older +sed -i -e '/argparse/d' requirements.txt %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root) -%doc LICENSE.txt README.rst +%license LICENSE.txt +%doc README.rst %{python_sitelib}/* %changelog