summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-08 07:18:31 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-08 07:18:31 +0000
commit7a0943e7705a20d847e960fe58d9e199a5552315 (patch)
tree72fec24a3235120ce6dab601d9054152bcc7dc67
parentba0165dfc71009f5730e21011f8110597b59be32 (diff)
automatic import of python-cli-helpers
-rw-r--r--.gitignore1
-rw-r--r--python-cli-helpers.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fdc0f51 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cli_helpers-2.3.0.tar.gz
diff --git a/python-cli-helpers.spec b/python-cli-helpers.spec
new file mode 100644
index 0000000..b6a6676
--- /dev/null
+++ b/python-cli-helpers.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cli-helpers
+Version: 2.3.0
+Release: 1
+Summary: Helpers for building command-line apps
+License: BSD License
+URL: https://github.com/dbcli/cli_helpers
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/27/01/6aaa4fc415274ac77372b4d259c234b9f5bfc8d78144c3fda1f3019d4690/cli_helpers-2.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-configobj
+Requires: python3-tabulate[widechars]
+Requires: python3-Pygments
+
+%description
+
+
+%package -n python3-cli-helpers
+Summary: Helpers for building command-line apps
+Provides: python-cli-helpers
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cli-helpers
+
+
+%package help
+Summary: Development documents and examples for cli-helpers
+Provides: python3-cli-helpers-doc
+%description help
+
+
+%prep
+%autosetup -n cli-helpers-2.3.0
+
+%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-cli-helpers -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Mar 08 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..902384a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+05b98900b833f24a05ed0f14bd96f911 cli_helpers-2.3.0.tar.gz