File openstack-ironic-python-agent.spec of Package openstack-ironic-python-agent
#
# spec file for package openstack-ironic-python-agent
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define version_unconverted 3.7.1.dev10
Name: openstack-ironic-python-agent
Version: 3.7.1~dev10
Release: 0
Summary: Ironic Python Agent Ramdisk
License: Apache-2.0
Group: Development/Languages/Python
Url: https://docs.openstack.org/ironic-python-agent/
Source0: http://tarballs.openstack.org/ironic-python-agent/ironic-python-agent-master.tar.gz
Source1: openstack-ironic-python-agent.service
BuildRequires: python-Pint >= 0.5
BuildRequires: python-WSME >= 0.8
BuildRequires: python-devel
BuildRequires: python-eventlet >= 0.18.2
BuildRequires: python-ironic-lib >= 2.5.0
BuildRequires: python-iso8601 >= 0.1.11
BuildRequires: python-netaddr >= 0.7.13
BuildRequires: python-netifaces >= 0.10.4
BuildRequires: python-oslo.concurrency >= 3.8.0
BuildRequires: python-oslo.config >= 4.0.0
BuildRequires: python-oslo.log >= 3.22.0
BuildRequires: python-oslo.serialization >= 1.10.0
BuildRequires: python-oslo.service >= 1.10.0
BuildRequires: python-oslo.utils >= 3.20.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-pecan >= 1.0.0
BuildRequires: python-psutil >= 3.2.2
BuildRequires: python-pyudev
BuildRequires: python-requests >= 2.14.2
BuildRequires: python-rtslib-fb >= 2.1.43
BuildRequires: python-setuptools
BuildRequires: python-six >= 1.9.0
BuildRequires: python-stevedore >= 1.20.0
# test requirements
BuildRequires: python-Sphinx >= 1.6.2
BuildRequires: python-mock >= 2.0
BuildRequires: python-openstackdocstheme >= 1.16.0
BuildRequires: python-os-testr >= 0.8.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-python-subunit >= 0.0.18
BuildRequires: python-reno >= 1.8.0
BuildRequires: python-sphinxcontrib-pecanwsme >= 0.8
BuildRequires: python-testtools >= 1.4.0
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
Requires: python-Pint >= 0.5
Requires: python-WSME >= 0.8.0
Requires: python-eventlet >= 0.18.2
Requires: python-ironic-lib >= 2.17.0
Requires: python-iso8601 >= 0.1.11
Requires: python-netaddr >= 0.7.18
Requires: python-netifaces >= 0.10.4
Requires: python-oslo.concurrency >= 3.26.0
Requires: python-oslo.config >= 5.2.0
Requires: python-oslo.log >= 3.36.0
Requires: python-oslo.serialization >= 2.18.0
Requires: python-oslo.service >= 1.24.0
Requires: python-oslo.utils >= 3.33.0
Requires: python-pbr >= 2.0.0
Requires: python-pecan >= 1.0.0
Requires: python-psutil >= 3.2.2
Requires: python-pyudev >= 0.16.1
Requires: python-requests >= 2.14.2
Requires: python-rtslib-fb >= 2.1.65
Requires: python-six >= 1.10.0
Requires: python-stevedore >= 1.20.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Ironic Python Agent Ramdisk.
%prep
%setup -q -n ironic-python-agent-%{version_unconverted}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# systemd service file
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/openstack-ironic-python-agent.service
%pre
%service_add_pre openstack-ironic-python-agent.service
%post
%service_add_post openstack-ironic-python-agent.service
%preun
%service_del_preun openstack-ironic-python-agent.service
%postun
%service_del_postun openstack-ironic-python-agent.service
%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README.rst
%license LICENSE
%{_bindir}/ironic-python-agent
%{_unitdir}/openstack-ironic-python-agent.service
%{python_sitelib}/*
%changelog