Add packaging files 11/230311/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_base accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_base accepted/tizen_base_dev accepted/tizen_unified tizen tizen_6.0 tizen_6.0_hotfix tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix tizen_base accepted/tizen/6.0/unified/20201030.112859 accepted/tizen/6.0/unified/hotfix/20201102.232848 accepted/tizen/6.5/base/20211028.061710 accepted/tizen/7.0/base/20221116.030049 accepted/tizen/7.0/base/hotfix/20221116.055500 accepted/tizen/base/20210824.014729 accepted/tizen/base/20221115.103922 accepted/tizen/base/dev/20230602.081015 accepted/tizen/unified/20200413.070907 accepted/tizen/unified/20200413.082141 submit/tizen/20200413.004103 submit/tizen/20200413.081116 submit/tizen/20200413.081701 submit/tizen_6.0/20201029.205503 submit/tizen_6.0_hotfix/20201102.192903 submit/tizen_6.0_hotfix/20201103.115103 submit/tizen_6.5_base/20211028.150501 submit/tizen_base/20210824.002740 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorHyunjee Kim <hj0426.kim@samsung.com>
Thu, 9 Apr 2020 08:21:55 +0000 (17:21 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Thu, 9 Apr 2020 08:22:18 +0000 (17:22 +0900)
Change-Id: I42eccf31e0700bef33391f7f193007a731499a6f
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/python3-argparse.manifest [new file with mode: 0644]
packaging/python3-argparse.spec [new file with mode: 0644]

diff --git a/packaging/python3-argparse.manifest b/packaging/python3-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/python3-argparse.spec b/packaging/python3-argparse.spec
new file mode 100644 (file)
index 0000000..60e3434
--- /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:           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