summaryrefslogtreecommitdiff
path: root/python-cli-helpers.spec
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 03:46:26 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 03:46:26 +0000
commit94de4480fa1d60da281b76da7862e718cc09ba0b (patch)
tree8120a050b48284ce968d71d17a7151ba6947a8b9 /python-cli-helpers.spec
parent4bde2a0ff723e6b2b3880d9c38bc1c94b86c1a3e (diff)
automatic import of python3-cli-helpersopeneuler20.03
Diffstat (limited to 'python-cli-helpers.spec')
-rw-r--r--python-cli-helpers.spec74
1 files changed, 74 insertions, 0 deletions
diff --git a/python-cli-helpers.spec b/python-cli-helpers.spec
new file mode 100644
index 0000000..0327198
--- /dev/null
+++ b/python-cli-helpers.spec
@@ -0,0 +1,74 @@
+%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://files.pythonhosted.org/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
+%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
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.0-1
+- Package Spec generated