!2 python-os-brick:Add source packages and spec file
From: @zhangy1317 Reviewed-by: Signed-off-by:
This commit is contained in:
commit
5c4adbf6e1
BIN
os-brick-4.0.1.tar.gz
Normal file
BIN
os-brick-4.0.1.tar.gz
Normal file
Binary file not shown.
117
python-os-brick.spec
Normal file
117
python-os-brick.spec
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
||||||
|
|
||||||
|
%global with_doc 1
|
||||||
|
|
||||||
|
Name: python-os-brick
|
||||||
|
Version: 4.0.1
|
||||||
|
Release: 2
|
||||||
|
Summary: OpenStack Cinder brick library for managing local volume attaches
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://opendev.org/openstack/os-brick
|
||||||
|
Source0: https://tarballs.openstack.org/os-brick/os-brick-4.0.1.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Volume discovery and local storage management lib
|
||||||
|
|
||||||
|
%package -n python3-os-brick
|
||||||
|
Summary: OpenStack Cinder brick library for managing local volume attaches
|
||||||
|
%{?python_provide:%python_provide python3-os-brick}
|
||||||
|
Provides: os-brick = %{version}-%{release}
|
||||||
|
|
||||||
|
Requires: python3-pbr
|
||||||
|
Requires: python3-eventlet >= 0.25.1
|
||||||
|
Requires: python3-oslo-concurrency >= 3.26.0
|
||||||
|
Requires: python3-oslo-context >= 2.23.0
|
||||||
|
Requires: python3-oslo-i18n >= 3.24.0
|
||||||
|
Requires: python3-oslo-log >= 3.44.0
|
||||||
|
Requires: python3-oslo-serialization >= 2.29.0
|
||||||
|
Requires: python3-oslo-service >= 1.24.0
|
||||||
|
Requires: python3-oslo-utils >= 3.34.0
|
||||||
|
Requires: python3-requests >= 2.14.2
|
||||||
|
Requires: python3-six >= 1.10.0
|
||||||
|
Requires: python3-oslo-privsep >= 1.32.0
|
||||||
|
Requires: python3-os-win >= 3.0.0
|
||||||
|
Requires: cryptsetup
|
||||||
|
Requires: device-mapper-multipath
|
||||||
|
Requires: iscsi-initiator-utils
|
||||||
|
Requires: lsscsi >= 0.29
|
||||||
|
Requires: lvm2
|
||||||
|
Requires: nfs-utils
|
||||||
|
Requires: sg3_utils
|
||||||
|
Requires: sysfsutils
|
||||||
|
|
||||||
|
Requires: python3-tenacity
|
||||||
|
|
||||||
|
BuildRequires: openstack-macros
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-ddt
|
||||||
|
BuildRequires: python3-pbr >= 2.0.0
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: python3-reno
|
||||||
|
BuildRequires: python3-oslo-concurrency >= 3.8.0
|
||||||
|
BuildRequires: python3-oslo-i18n >= 3.15.3
|
||||||
|
BuildRequires: python3-oslo-log >= 3.36.0
|
||||||
|
BuildRequires: python3-oslo-service >= 1.24.0
|
||||||
|
BuildRequires: python3-os-win
|
||||||
|
BuildRequires: python3-requests >= 2.14.2
|
||||||
|
BuildRequires: python3-six >= 1.10.0
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-oslo-privsep >= 1.32.0
|
||||||
|
BuildRequires: python3-oslo-vmware
|
||||||
|
BuildRequires: python3-testtools
|
||||||
|
|
||||||
|
# Castellan is only for unit tests
|
||||||
|
BuildRequires: python3-castellan
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
BuildRequires: python3-openstackdocstheme
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
%endif
|
||||||
|
|
||||||
|
BuildRequires: python3-tenacity
|
||||||
|
|
||||||
|
%description -n python3-os-brick
|
||||||
|
Volume discovery and local storage management lib
|
||||||
|
|
||||||
|
%prep
|
||||||
|
|
||||||
|
%autosetup -n os-brick-4.0.1 -S git
|
||||||
|
%py_req_cleanup
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{py3_build}
|
||||||
|
|
||||||
|
%check
|
||||||
|
python3 setup.py test
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{py3_install}
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
# Move config files to proper location
|
||||||
|
install -d -m 755 %{buildroot}%{_datarootdir}/os-brick/rootwrap
|
||||||
|
mv %{buildroot}/usr/etc/os-brick/rootwrap.d/*.filters %{buildroot}%{_datarootdir}/os-brick/rootwrap
|
||||||
|
|
||||||
|
%files -n python3-os-brick
|
||||||
|
%license LICENSE
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%doc doc/build/html
|
||||||
|
%endif
|
||||||
|
%doc README.rst
|
||||||
|
%{python3_sitelib}/os_brick*
|
||||||
|
%{_datarootdir}/os-brick
|
||||||
|
%exclude %{python3_sitelib}/os_brick/tests
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jan 12 2021 zhangy <zhangy1317@foxmail.com> 2021.1.12
|
||||||
|
- Update to 2021.1.12
|
||||||
Loading…
x
Reference in New Issue
Block a user