diff options
Diffstat (limited to 'python-ruamel-std-argparse.spec')
| -rw-r--r-- | python-ruamel-std-argparse.spec | 90 |
1 files changed, 90 insertions, 0 deletions
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 |
