diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-31 03:26:49 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-31 03:26:49 +0000 |
| commit | 55e3c3a915da0a907e7cce015998d3a6917b9739 (patch) | |
| tree | 06403f68f8fa8ca091384f0517d4e7efad14603c /python-odahu-flow-cli.spec | |
| parent | fe4aa9723f0416adda52887273b472b5c710ea93 (diff) | |
automatic import of python-odahu-flow-cli
Diffstat (limited to 'python-odahu-flow-cli.spec')
| -rw-r--r-- | python-odahu-flow-cli.spec | 80 |
1 files changed, 80 insertions, 0 deletions
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 <Python_Bot@openeuler.org> - 1.6.1-1 +- Package Spec generated |
