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

# spec file for package ironic-python-agent
# Copyright (c) 2016 SUSE LINUX Products 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

Name:           ironic-python-agent
Version:        1.0.2
Release:        0
License:        Apache-2
Summary:        Ironic Python Agent Ramdisk
Group:          Development/Languages/Python
# Patch to fix deprecated usage of phymem_usage clause in psutil.
Patch1:         0001-replace-deprecated-phymem_usage-with-virtual_memory.patch
BuildRequires:  libudev-devel
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-pbr
BuildRequires:  python-Babel
BuildRequires:  python-eventlet
BuildRequires:  python-iso8601
BuildRequires:  python-netaddr
BuildRequires:  python-netifaces
BuildRequires:  python-oslo.config
BuildRequires:  python-oslo.concurrency
BuildRequires:  python-oslo.i18n
BuildRequires:  python-oslo.log
BuildRequires:  python-oslo.serialization
BuildRequires:  python-oslo.service
BuildRequires:  python-oslo.utils
BuildRequires:  python-pecan
BuildRequires:  python-Pint
BuildRequires:  python-psutil
BuildRequires:  python-pyudev
BuildRequires:  python-requests
BuildRequires:  python-six
BuildRequires:  python-stevedore
BuildRequires:  python-WSME
BuildRequires:  python-oslotest
Requires:       python-hacking
Requires:       python-coverage >= 3.6
Requires:       python-discover
Requires:       python-mock >= 1.2
Requires:       python-testrepository >= 0.0.18
Requires:       python-testtools >= 1.4.0
Requires:       python-python-subunit
# Doc requirements
Requires:       python-doc8
Requires:       python-sphinx
Requires:       python-sphinxcontrib-pecanwsme
Requires:       python-oslosphinx
Requires:       python-reno >= 0.1.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildArch:      noarch


%setup -q -n ironic-python-agent-%{version}
%patch1 -p1

python build

python testr

python install --prefix=%{_prefix} --root=%{buildroot}