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

#
# spec file for package python39-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:           python39-ironic-lib
Version:        5.3.0
Release:        0
Summary:        Ironic Common Libraries
License:        Apache-2.0
Group:          Development/Languages/Python
URL:            https://docs.openstack.org/ironic-lib/latest/
Source0:        https://files.pythonhosted.org/packages/source/i/ironic-lib/ironic-lib-%{version}.tar.gz
BuildRequires:  openstack-macros
BuildRequires:  python39-bcrypt
BuildRequires:  python39-keystoneauth1
BuildRequires:  python39-keystonemiddleware
BuildRequires:  python39-oslo.concurrency
BuildRequires:  python39-oslo.config
BuildRequires:  python39-oslo.log
BuildRequires:  python39-oslo.messaging
BuildRequires:  python39-oslo.service
BuildRequires:  python39-oslotest
BuildRequires:  python39-pbr
BuildRequires:  python39-stestr
BuildRequires:  python39-tenacity
BuildRequires:  python39-zeroconf
Requires:       python39-bcrypt
Requires:       python39-eventlet
Requires:       python39-keystoneauth1
Requires:       python39-oslo.concurrency
Requires:       python39-oslo.config
Requires:       python39-oslo.i18n
Requires:       python39-oslo.log
Requires:       python39-oslo.messaging
Requires:       python39-oslo.serialization
Requires:       python39-oslo.service
Requires:       python39-oslo.utils
Requires:       python39-requests
Requires:       python39-tenacity
Requires:       python39-zeroconf
BuildArch:      noarch

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

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

%build
%{py3_build}

%check
%{openstack_stestr_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