From 55e3c3a915da0a907e7cce015998d3a6917b9739 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 31 May 2023 03:26:49 +0000 Subject: automatic import of python-odahu-flow-cli --- .gitignore | 1 + python-odahu-flow-cli.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 python-odahu-flow-cli.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..cc4bcb7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/odahu-flow-cli-1.6.1.tar.gz diff --git a/python-odahu-flow-cli.spec b/python-odahu-flow-cli.spec new file mode 100644 index 0000000..74db0ce --- /dev/null +++ b/python-odahu-flow-cli.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-odahu-flow-cli +Version: 1.6.1 +Release: 1 +Summary: Odahu-flow CLI +License: Apache v2 +URL: https://github.com/odahu/odahu-flow +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1e/99/80961a5255e6139aef61fb36adab3907f984fc6fae7c5c3a508c50225a47/odahu-flow-cli-1.6.1.tar.gz +BuildArch: noarch + +Requires: python3-odahu-flow-sdk +Requires: python3-six +Requires: python3-texttable +Requires: python3-colorama +Requires: python3-termcolor +Requires: python3-click +Requires: python3-jsonpath-rw +Requires: python3-click-completion + +%description + + +%package -n python3-odahu-flow-cli +Summary: Odahu-flow CLI +Provides: python-odahu-flow-cli +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-odahu-flow-cli + + +%package help +Summary: Development documents and examples for odahu-flow-cli +Provides: python3-odahu-flow-cli-doc +%description help + + +%prep +%autosetup -n odahu-flow-cli-1.6.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-odahu-flow-cli -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 31 2023 Python_Bot - 1.6.1-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..89c61a7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7dcf6bb449931844e943a9138c060bbb odahu-flow-cli-1.6.1.tar.gz -- cgit v1.2.3