From e46dffef9aaea75b97b9a8f58c3422c5aa581fc5 Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Thu, 9 Apr 2020 17:06:24 +0900 Subject: [PATCH] Revert "Add python3-argparse" This reverts commit a7072f19e62e8317dae63c9df14dc18ee2c59f02. Change-Id: I7b46f521d0bfa1269b6f60b42cf4d48e3199c1d3 Signed-off-by: Hyunjee Kim --- packaging/python3-argparse.manifest | 5 -- packaging/python3-argparse.spec | 83 ----------------------------- 2 files changed, 88 deletions(-) delete mode 100644 packaging/python3-argparse.manifest delete mode 100644 packaging/python3-argparse.spec diff --git a/packaging/python3-argparse.manifest b/packaging/python3-argparse.manifest deleted file mode 100644 index 017d22d..0000000 --- a/packaging/python3-argparse.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/python3-argparse.spec b/packaging/python3-argparse.spec deleted file mode 100644 index 60e3434..0000000 --- a/packaging/python3-argparse.spec +++ /dev/null @@ -1,83 +0,0 @@ -# -# spec file for package python-argparse -# -# Copyright (c) 2015 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/ -# - -Name: python3-argparse -Version: 1.4.0 -Release: 0 -Url: http://code.google.com/p/argparse/ -Summary: Python command-line parsing library -License: Python-2.0 -Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/a/argparse/argparse-%{version}.tar.gz -Source1001: %{name}.manifest - -BuildRequires: python3-devel -BuildRequires: python3-setuptools - -BuildArch: noarch - -# For some distros, the "python" package provides python-argparse. -# This allows packages to explicitly define that it needs this -# backported version rather than the included version. -Provides: python3-argparse-backport = %{version} -Obsoletes: python3-argparse-backport < %{version} -%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - -%description -The argparse module provides an easy, declarative interface for -creating command line tools, which knows how to: - -* parse the arguments and flags from sys.argv -* convert arg strings into objects for your program -* format and print informative help messages -* and much more... - -The argparse module improves on the standard library optparse module -in a number of ways including: - -* handling positional arguments -* supporting sub-commands -* allowing alternative option prefixes like + and / -* handling zero-or-more and one-or-more style arguments -* producing more informative usage messages -* providing a much simpler interface for custom types and actions - -%prep -%setup -n argparse-%{version} -mkdir html -pushd doc - mv * ../html/ - mv ../html . -popd -sed -i "s/\r//" NEWS.txt # Avoid warning wrong-file-end-of-line-encoding - -%build -cp %{SOURCE1001} . -%{_bindir}/python3 setup.py build - -%install -%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%remove_docs - -%files -%defattr(-,root,root,-) -%manifest %{name}.manifest -%license doc/html/source/Python-License.txt -%{python3_sitelib}/* - -%changelog -- 2.34.1