Bump to python-argparse 1.4.0 06/124106/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified tizen_4.0 tizen_4.0_tv tizen_5.0 accepted/tizen/4.0/unified/20170816.011646 accepted/tizen/4.0/unified/20170828.221700 accepted/tizen/5.0/unified/20181102.030233 accepted/tizen/unified/20170417.083146 submit/tizen/20170413.015102 submit/tizen/20170413.054532 submit/tizen/20170417.010017 submit/tizen/20170417.014400 submit/tizen/20170417.040041 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007 submit/tizen_5.0/20181101.000007 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m1_release tizen_4.0.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 10 Apr 2017 08:01:24 +0000 (17:01 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 10 Apr 2017 08:01:24 +0000 (17:01 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Bump to python-argparse 1.4.0
[Cause & Measure]
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: Icfd52767bc85c5bd556e1eff16fc7d80baccc511
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/python-argparse.manifest [new file with mode: 0644]
packaging/python-argparse.spec [new file with mode: 0644]

diff --git a/packaging/python-argparse.manifest b/packaging/python-argparse.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python-argparse.spec b/packaging/python-argparse.spec
new file mode 100644 (file)
index 0000000..370553f
--- /dev/null
@@ -0,0 +1,83 @@
+#
+# 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:           python-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:  python-devel
+BuildRequires:  python-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:       python-argparse-backport = %{version}
+Obsoletes:      python-argparse-backport < %{version}
+%{!?python_sitelib: %global python_sitelib %(%{__python} -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} .
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%remove_docs
+
+%files 
+%defattr(-,root,root,-)
+%manifest %{name}.manifest
+%license doc/html/source/Python-License.txt
+%python_sitelib/*
+
+%changelog