Update to version 5.4.0
This commit is contained in:
parent
0b5de6746d
commit
13ab08d245
Binary file not shown.
BIN
os-win-5.4.0.tar.gz
Normal file
BIN
os-win-5.4.0.tar.gz
Normal file
Binary file not shown.
@ -1,86 +1,123 @@
|
|||||||
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
%global _empty_manifest_terminate_build 0
|
||||||
%global with_doc 1
|
|
||||||
|
|
||||||
Name: python-os-win
|
Name: python-os-win
|
||||||
Version: 5.2.0
|
Version: 5.4.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Windows / Hyper-V library for OpenStack projects
|
Summary: Windows / Hyper-V library for OpenStack projects.
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: http://www.cloudbase.it/
|
URL: http://www.cloudbase.it/
|
||||||
Source0: https://tarballs.openstack.org/os-win/os-win-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/00/5c/bf5faff804f71f01a99396b0fc35a6c0ec0b5af72c7975753121c3b8379f/os-win-5.4.0.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: git
|
|
||||||
BuildRequires: openstack-macros
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||||
projects: nova, cinder, networking-hyperv.
|
projects: nova, cinder, networking-hyperv. The library can be used in any \
|
||||||
|
other OpenStack projects where it is needed.
|
||||||
|
|
||||||
%package -n python3-os-win
|
%package -n python3-os-win
|
||||||
Summary: Windows / Hyper-V library for OpenStack projects
|
Summary: Windows / Hyper-V library for OpenStack projects.
|
||||||
%{?python_provide:%python_provide python3-os-win}
|
Provides: python-os-win
|
||||||
|
# Base build requires
|
||||||
Requires: python3-pbr >= 2.0.0
|
|
||||||
Requires: python3-babel >= 2.3.4
|
|
||||||
Requires: python3-eventlet >= 0.18.2
|
|
||||||
Requires: python3-oslo-concurrency >= 3.26.0
|
|
||||||
Requires: python3-oslo-config
|
|
||||||
Requires: python3-oslo-log >= 3.36.0
|
|
||||||
Requires: python3-oslo-utils >= 3.33.0
|
|
||||||
Requires: python3-oslo-i18n >= 3.15.3
|
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-eventlet >= 0.18.2
|
BuildRequires: python3-wheel
|
||||||
|
# General requires
|
||||||
|
BuildRequires: python3-eventlet
|
||||||
|
BuildRequires: python3-oslo-concurrency
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
|
BuildRequires: python3-oslo-i18n
|
||||||
|
BuildRequires: python3-oslo-log
|
||||||
|
BuildRequires: python3-oslo-utils
|
||||||
|
BuildRequires: python3-stestr
|
||||||
|
BuildRequires: python3-ddt
|
||||||
|
BuildRequires: python3-oslotest
|
||||||
|
BuildRequires: python3-pycodestyle
|
||||||
|
BuildRequires: python3-hacking
|
||||||
|
BuildRequires: python3-testscenarios
|
||||||
|
BuildRequires: python3-testtools
|
||||||
|
BuildRequires: python3-coverage
|
||||||
|
# General requires
|
||||||
|
Requires: python3-eventlet
|
||||||
|
Requires: python3-oslo-concurrency
|
||||||
|
Requires: python3-oslo-config
|
||||||
|
Requires: python3-oslo-i18n
|
||||||
|
Requires: python3-oslo-log
|
||||||
|
Requires: python3-oslo-utils
|
||||||
|
Requires: python3-pbr
|
||||||
|
|
||||||
|
# Test requires
|
||||||
|
Requires: python3-subunit
|
||||||
|
Requires: python3-oslotest
|
||||||
|
Requires: python3-os-testr
|
||||||
|
Requires: python3-testtools
|
||||||
|
Requires: python3-oslo-versionedobjects-tests
|
||||||
|
Requires: python3-testrepository
|
||||||
|
Requires: python3-testscenarios
|
||||||
|
Requires: python3-stestr
|
||||||
|
|
||||||
%description -n python3-os-win
|
%description -n python3-os-win
|
||||||
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||||
projects: nova, cinder, networking-hyperv.
|
projects: nova, cinder, networking-hyperv. The library can be used in any \
|
||||||
|
other OpenStack projects where it is needed.
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%package help
|
||||||
%package -n python-os-win-doc
|
Summary: Windows / Hyper-V library for OpenStack projects.
|
||||||
Summary: Windows / Hyper-V library for OpenStack projects - documentation
|
Provides: python3-os-win-doc
|
||||||
BuildRequires: python3-openstackdocstheme
|
%description help
|
||||||
BuildRequires: python3-oslo-config
|
This library contains Windows / Hyper-V code commonly used in the OpenStack \
|
||||||
BuildRequires: python3-sphinx
|
projects: nova, cinder, networking-hyperv. The library can be used in any \
|
||||||
|
other OpenStack projects where it is needed.
|
||||||
%description -n python-os-win-doc
|
|
||||||
Documentation for the Windows / Hyper-V library for OpenStack projects
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%autosetup -n os-win-5.4.0
|
||||||
%autosetup -n os-win-%{upstream_version} -S git
|
|
||||||
|
|
||||||
# let RPM handle deps
|
|
||||||
%py_req_cleanup
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py3_build}
|
%py3_build
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
# generate html docs
|
|
||||||
sphinx-build-3 -b html doc/source doc/build/html
|
|
||||||
# remove the sphinx-build-3 leftovers
|
|
||||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{py3_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-os-win
|
%check
|
||||||
%doc doc/source/readme.rst README.rst
|
export OS_TEST_PATH='./os_win/tests/unit'
|
||||||
%license LICENSE
|
export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
|
||||||
%{python3_sitelib}/os_win*
|
export PYTHONPATH=$PWD
|
||||||
|
PYTHON=%{__python3} stestr-3 --test-path $OS_TEST_PATH run
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%files -n python3-os-win -f filelist.lst
|
||||||
%files -n python-os-win-doc
|
%dir %{python3_sitelib}/*
|
||||||
%doc doc/build/html
|
|
||||||
%license LICENSE
|
|
||||||
%endif
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 23 2021 OpenStack_SIG <openstack@openeuler.org> - 5.4.0-1
|
||||||
|
- Update to 5.4.0
|
||||||
* Wed Jan 20 2021 zhangy1317 <zhangy1317@foxmail.com> 2021.1.20
|
* Wed Jan 20 2021 zhangy1317 <zhangy1317@foxmail.com> 2021.1.20
|
||||||
- Update to 2021.1.20
|
- Update to 2021.1.20
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user