diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:07:04 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:07:04 +0000 |
| commit | a47024de78f384581a2d807e5ac206511d3781b1 (patch) | |
| tree | 5c2ce9065de087002729d6b26807e6a09f7d9f2e | |
| parent | 7a11f81dad7bb21f64878a3c962b81912dc86106 (diff) | |
automatic import of python-click
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-click.spec | 104 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 106 insertions, 0 deletions
@@ -0,0 +1 @@ +/click-8.1.3.tar.gz diff --git a/python-click.spec b/python-click.spec new file mode 100644 index 0000000..11315d8 --- /dev/null +++ b/python-click.spec @@ -0,0 +1,104 @@ +%global _empty_manifest_terminate_build 0 +Name: python-click +Version: 8.1.3 +Release: 1 +Summary: Composable command line interface toolkit +License: BSD-3-Clause +URL: https://palletsprojects.com/p/click/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.gz +BuildArch: noarch + +Requires: python3-colorama +Requires: python3-importlib-metadata + +%description +Click is a Python package for creating beautiful command line interfaces +in a composable way with as little code as necessary. It's the "Command +Line Interface Creation Kit". It's highly configurable but comes with +sensible defaults out of the box. +It aims to make the process of writing command line tools quick and fun +while also preventing any frustration caused by the inability to +implement an intended CLI API. +Click in three points: +- Arbitrary nesting of commands +- Automatic help page generation +- Supports lazy loading of subcommands at runtime + +%package -n python3-click +Summary: Composable command line interface toolkit +Provides: python-click +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-click +Click is a Python package for creating beautiful command line interfaces +in a composable way with as little code as necessary. It's the "Command +Line Interface Creation Kit". It's highly configurable but comes with +sensible defaults out of the box. +It aims to make the process of writing command line tools quick and fun +while also preventing any frustration caused by the inability to +implement an intended CLI API. +Click in three points: +- Arbitrary nesting of commands +- Automatic help page generation +- Supports lazy loading of subcommands at runtime + +%package help +Summary: Development documents and examples for click +Provides: python3-click-doc +%description help +Click is a Python package for creating beautiful command line interfaces +in a composable way with as little code as necessary. It's the "Command +Line Interface Creation Kit". It's highly configurable but comes with +sensible defaults out of the box. +It aims to make the process of writing command line tools quick and fun +while also preventing any frustration caused by the inability to +implement an intended CLI API. +Click in three points: +- Arbitrary nesting of commands +- Automatic help page generation +- Supports lazy loading of subcommands at runtime + +%prep +%autosetup -n click-8.1.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-click -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 8.1.3-1 +- Package Spec generated @@ -0,0 +1 @@ +a804b085de7a3ff96968e38e0f6f2e05 click-8.1.3.tar.gz |
