diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:24:26 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:24:26 +0000 |
| commit | f1385b11cd38a66214eff56cf0d58e05aafa0713 (patch) | |
| tree | 082c49fd9baac4a4b3392467280b405f3d9a9550 /python-vcd-cli.spec | |
| parent | d2be31f989661f58bc760dc1c9bb5a11115895e8 (diff) | |
automatic import of python-vcd-cliopeneuler20.03
Diffstat (limited to 'python-vcd-cli.spec')
| -rw-r--r-- | python-vcd-cli.spec | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/python-vcd-cli.spec b/python-vcd-cli.spec new file mode 100644 index 0000000..986fb23 --- /dev/null +++ b/python-vcd-cli.spec @@ -0,0 +1,95 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vcd-cli +Version: 24.1.0 +Release: 1 +Summary: VMware vCloud Director CLI +License: Apache 2 +URL: https://github.com/vmware/vcd-cli +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6a/e0/ea3852162ed5f079d6f613a9c072886975fd411dafc4791bc1b1a38338a2/vcd-cli-24.1.0.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-colorama +Requires: python3-keyring +Requires: python3-pycryptodome +Requires: python3-pyvcloud +Requires: python3-tabulate +Requires: python3-unittest-xml-reporting +Requires: python3-pypiwin32 + +%description + file photon-custom-hw11-2.0-304b817.ova + size 113207424 + $ vcd vapp create vapp1 --catalog catalog1 --template photon-custom-hw11-2.0-304b817.ova \ + --network net1 --accept-all-eulas + task: 0f98685a-d11c-41d0-8de4-d3d4efad183a, Created Virtual Application vapp1(8fd8e774-d8b3-42ab-800c-a4992cca1fc2), result: success + $ vcd vapp list + +%package -n python3-vcd-cli +Summary: VMware vCloud Director CLI +Provides: python-vcd-cli +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-vcd-cli + file photon-custom-hw11-2.0-304b817.ova + size 113207424 + $ vcd vapp create vapp1 --catalog catalog1 --template photon-custom-hw11-2.0-304b817.ova \ + --network net1 --accept-all-eulas + task: 0f98685a-d11c-41d0-8de4-d3d4efad183a, Created Virtual Application vapp1(8fd8e774-d8b3-42ab-800c-a4992cca1fc2), result: success + $ vcd vapp list + +%package help +Summary: Development documents and examples for vcd-cli +Provides: python3-vcd-cli-doc +%description help + file photon-custom-hw11-2.0-304b817.ova + size 113207424 + $ vcd vapp create vapp1 --catalog catalog1 --template photon-custom-hw11-2.0-304b817.ova \ + --network net1 --accept-all-eulas + task: 0f98685a-d11c-41d0-8de4-d3d4efad183a, Created Virtual Application vapp1(8fd8e774-d8b3-42ab-800c-a4992cca1fc2), result: success + $ vcd vapp list + +%prep +%autosetup -n vcd-cli-24.1.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-vcd-cli -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 24.1.0-1 +- Package Spec generated |
