diff --git a/python-zVMCloudConnector.spec b/python-zVMCloudConnector.spec new file mode 100644 index 0000000000000000000000000000000000000000..4a673decaf93c843e123cd7b93e7f0316ae08705 --- /dev/null +++ b/python-zVMCloudConnector.spec @@ -0,0 +1,98 @@ +%global _empty_manifest_terminate_build 0 +Name: python-zVMCloudConnector +Version: 1.6.3 +Release: 1 +Summary: z/VM cloud management library in Python +License: ASL 2.0 +URL: https://github.com/mfcloud/python-zvm-sdk +Source0: https://files.pythonhosted.org/packages/93/e3/4a8e10fd641fc9c765dc98f4487a2117cf39a635ecb37a179c783e505459/zVMCloudConnector-%{version}.tar.gz +BuildArch: noarch +%description +z/VM cloud connector is a development sdk for manage z/VM. It provides a set +of APIs to operate z/VM including guest, image, network, volume etc. +Just like os-win for nova hyperv driver and oslo.vmware for nova vmware driver, +z/VM cloud connector (zVMCloudConnector) is for nova z/vm driver and other z/VM +related openstack driver such as neutron, ceilometer. + +%package -n python3-zvmcloudconnector +Summary: z/VM cloud management library in Python +Provides: python-zvmcloudconnector +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-zvmcloudconnector +z/VM cloud connector is a development sdk for manage z/VM. It provides a set +of APIs to operate z/VM including guest, image, network, volume etc. +Just like os-win for nova hyperv driver and oslo.vmware for nova vmware driver, +z/VM cloud connector (zVMCloudConnector) is for nova z/vm driver and other z/VM +related openstack driver such as neutron, ceilometer. + +%package help +Summary: z/VM cloud management library in Python +Provides: python3-zvmcloudconnector-doc +%description help +z/VM cloud connector is a development sdk for manage z/VM. It provides a set +of APIs to operate z/VM including guest, image, network, volume etc. +Just like os-win for nova hyperv driver and oslo.vmware for nova vmware driver, +z/VM cloud connector (zVMCloudConnector) is for nova z/vm driver and other z/VM +related openstack driver such as neutron, ceilometer. + +%prep +%autosetup -n zVMCloudConnector-%{version} + +%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-zvmcloudconnector -f filelist.lst +%dir %{python3_sitelib}/* +/etc/sudoers.d/sudoers-zvmsdk +/etc/zvmsdk/uwsgi-zvmsdk.conf +/etc/zvmsdk/zvmsdk.conf.sample +/var/lib/zvmsdk/setupDisk +/lib/systemd/system/sdkserver.service + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Mar 05 2024 wangqiang - 1.6.3-1 +- Update to 1.6.3 + +* Tue Nov 09 2021 wangxiyuan - 1.3.0-2 +- Drop test part + +* Thu Nov 04 2021 huxiujie - 1.3.0-1 +- Init package python3-zvmcloudconnector of version 1.3.0 + diff --git a/python-zVMCloudConnector.yaml b/python-zVMCloudConnector.yaml new file mode 100644 index 0000000000000000000000000000000000000000..50c6032b6866ac3305b6a34f2e4f5c87bf8224d7 --- /dev/null +++ b/python-zVMCloudConnector.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: zVMCloudConnector +tag_prefix: ^v +separator: . diff --git a/zVMCloudConnector-1.6.3.tar.gz b/zVMCloudConnector-1.6.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c80df6fba9ac765b7ab93e8405157d0b60f0728b Binary files /dev/null and b/zVMCloudConnector-1.6.3.tar.gz differ