diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:38:55 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 06:38:55 +0000 |
| commit | 31e9ec4ec144cef166f40ff9e9b1d14682018880 (patch) | |
| tree | 45030fbd1e1ea4ee9a58cf339bf93353dfd8e712 | |
| parent | a2fd69d028c42ea950bcef179c68cde5b912e105 (diff) | |
automatic import of python-optparse-prettyopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-optparse-pretty.spec | 105 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 107 insertions, 0 deletions
@@ -0,0 +1 @@ +/optparse-pretty-0.1.1.tar.gz diff --git a/python-optparse-pretty.spec b/python-optparse-pretty.spec new file mode 100644 index 0000000..7a0a584 --- /dev/null +++ b/python-optparse-pretty.spec @@ -0,0 +1,105 @@ +%global _empty_manifest_terminate_build 0 +Name: python-optparse-pretty +Version: 0.1.1 +Release: 1 +Summary: A more compact help formatter for optparse +License: Revised BSD License +URL: https://github.com/gvalkov/optparse-pretty +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/ff/05c6a52e3a505d773174cd49437a4bf12ada224ed3bb937396d16f3c58c7/optparse-pretty-0.1.1.tar.gz +BuildArch: noarch + + +%description +This module provides two help formatters for optparse_. They provide +terser and more customizable option formatting in comparison to the +default help formatter. Refer to the documentation for examples and +usage instructions. +Documentation: + http://optparse-pretty.readthedocs.org/en/latest/ +Development: + https://github.com/gvalkov/optparse-pretty +Package: + http://pypi.python.org/pypi/optparse-pretty +Changelog: + https://github.com/gvalkov/optparse-pretty/releases + +%package -n python3-optparse-pretty +Summary: A more compact help formatter for optparse +Provides: python-optparse-pretty +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-optparse-pretty +This module provides two help formatters for optparse_. They provide +terser and more customizable option formatting in comparison to the +default help formatter. Refer to the documentation for examples and +usage instructions. +Documentation: + http://optparse-pretty.readthedocs.org/en/latest/ +Development: + https://github.com/gvalkov/optparse-pretty +Package: + http://pypi.python.org/pypi/optparse-pretty +Changelog: + https://github.com/gvalkov/optparse-pretty/releases + +%package help +Summary: Development documents and examples for optparse-pretty +Provides: python3-optparse-pretty-doc +%description help +This module provides two help formatters for optparse_. They provide +terser and more customizable option formatting in comparison to the +default help formatter. Refer to the documentation for examples and +usage instructions. +Documentation: + http://optparse-pretty.readthedocs.org/en/latest/ +Development: + https://github.com/gvalkov/optparse-pretty +Package: + http://pypi.python.org/pypi/optparse-pretty +Changelog: + https://github.com/gvalkov/optparse-pretty/releases + +%prep +%autosetup -n optparse-pretty-0.1.1 + +%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-optparse-pretty -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.1-1 +- Package Spec generated @@ -0,0 +1 @@ +af999618294c697d53aca79626d2c8d6 optparse-pretty-0.1.1.tar.gz |
