summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 00:16:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 00:16:16 +0000
commit39a681af813d40050073bd9ae4e75aee9a940f9a (patch)
treecd4514cc94e0130d5851fb65eb26c17507bd295e
parentb28c943dccb0c3614a32dae3b049fd6c5428b2bb (diff)
automatic import of python-ruamel-std-argparse
-rw-r--r--.gitignore1
-rw-r--r--python-ruamel-std-argparse.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cc1097d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ruamel.std.argparse-0.8.3.tar.gz
diff --git a/python-ruamel-std-argparse.spec b/python-ruamel-std-argparse.spec
new file mode 100644
index 0000000..2f89631
--- /dev/null
+++ b/python-ruamel-std-argparse.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ruamel.std.argparse
+Version: 0.8.3
+Release: 1
+Summary: Enhancements to argparse: extra actions, subparser aliases, smart formatter, a decorator based wrapper
+License: MIT license
+URL: https://sourceforge.net/p/ruamel-std-argparse/code/ci/default/tree
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ae/88/1ad715a8322e03f89cfff7ed03f3a4f485edbc72bdd1aa8ca9705623bc73/ruamel.std.argparse-0.8.3.tar.gz
+BuildArch: noarch
+
+
+%description
+This package provides extensions to argparse on two levels:
+- basic argparse extensions: default subparser, subparser aliases in
+ 2.X
+- additional actions that can be specified for add_argument
+- smart formatter that allows combination of defaults help formatting
+ **and** raw desciptions
+- wrapper for argparse using decorators
+
+%package -n python3-ruamel.std.argparse
+Summary: Enhancements to argparse: extra actions, subparser aliases, smart formatter, a decorator based wrapper
+Provides: python-ruamel.std.argparse
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ruamel.std.argparse
+This package provides extensions to argparse on two levels:
+- basic argparse extensions: default subparser, subparser aliases in
+ 2.X
+- additional actions that can be specified for add_argument
+- smart formatter that allows combination of defaults help formatting
+ **and** raw desciptions
+- wrapper for argparse using decorators
+
+%package help
+Summary: Development documents and examples for ruamel.std.argparse
+Provides: python3-ruamel.std.argparse-doc
+%description help
+This package provides extensions to argparse on two levels:
+- basic argparse extensions: default subparser, subparser aliases in
+ 2.X
+- additional actions that can be specified for add_argument
+- smart formatter that allows combination of defaults help formatting
+ **and** raw desciptions
+- wrapper for argparse using decorators
+
+%prep
+%autosetup -n ruamel.std.argparse-0.8.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-ruamel.std.argparse -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7ee8287
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+71875d80c67c62a17939f9ee808507a2 ruamel.std.argparse-0.8.3.tar.gz