File python-ironic-lib.spec of Package python-ironic-lib

#
# spec file for package python3-ironic-lib
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python3-ironic-lib
Version:        4.4.2
Release:        0
Summary:        Ironic Common Libraries
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/developer/ironic-lib/
Source0:        https://files.pythonhosted.org/packages/source/i/ironic-lib/ironic-lib-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python3-bcrypt
BuildRequires:  python3-mock
BuildRequires:  python3-oslo.concurrency
BuildRequires:  python3-oslo.log
BuildRequires:  python3-oslo.service
BuildRequires:  python3-oslotest
BuildRequires:  python3-pbr
BuildRequires:  python3-stestr
BuildRequires:  python3-tenacity
BuildRequires:  python3-zeroconf
Requires:       python3-bcrypt
Requires:       python3-eventlet
Requires:       python3-oslo.concurrency
Requires:       python3-oslo.config
Requires:       python3-oslo.i18n
Requires:       python3-oslo.log
Requires:       python3-oslo.serialization
Requires:       python3-oslo.service
Requires:       python3-oslo.utils
Requires:       python3-requests
Requires:       python3-tenacity
Requires:       python3-zeroconf
BuildArch:      noarch

%description
A common library to be used **exclusively** by projects under the `Ironic
governance <http://governance.openstack.org/reference/projects/ironic.html>`

%prep
%autosetup -p1 -n ironic-lib-4.4.2
%py_req_cleanup

%build
%{py3_build}

%check
python3 -m stestr.cli run

%install
%{py3_install}

install -p -m 755 -d %{buildroot}/%{_sysconfdir}/ironic/rootwrap.d
install -p -m 640 etc/ironic/rootwrap.d/*.filters %{buildroot}/%{_sysconfdir}/ironic/rootwrap.d/
rm -rf %{buildroot}/%{_prefix}/%{_sysconfdir}/ironic/rootwrap.d

%files
%license LICENSE
%doc ChangeLog README.rst
%{python3_sitelib}/ironic_lib
%{python3_sitelib}/ironic_lib*egg-info
%dir %{_sysconfdir}/ironic
%dir %{_sysconfdir}/ironic/rootwrap.d
%{_sysconfdir}/ironic/rootwrap.d/*.filters

%changelog
openSUSE Build Service is sponsored by