File python-os-refresh-config.spec of Package python-os-refresh-config

# spec file for package python-os-refresh-config
# 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

%global sname os-refresh-config
Name:           python-os-refresh-config
Version:        9.1.1
Release:        0
Summary:        Refresh system configuration
License:        Apache-2.0
Group:          Development/Languages/Python
URL:  {sname}
BuildRequires:  openstack-macros
BuildRequires:  python-devel
BuildRequires:  python-dib-utils >= 0.0.8
BuildRequires:  python-fixtures
BuildRequires:  python-mock
BuildRequires:  python-pbr >= 2.0.0
BuildRequires:  python-psutil >= 3.2.2
BuildRequires:  python-setuptools
BuildRequires:  python-stestr
BuildRequires:  python-testscenarios
BuildRequires:  python-testtools
Requires:       python-dib-utils >= 0.0.8
Requires:       python-pbr >= 2.0.0
Requires:       python-psutil >= 3.2.2
BuildArch:      noarch

Tool to refresh openstack config changes to service.

%autosetup -n %{sname}-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg


install -d -m 755 %{buildroot}%{_libexecdir}/os-refresh-config/pre-configure.d
install -d -m 755 %{buildroot}%{_libexecdir}/os-refresh-config/configure.d
install -d -m 755 %{buildroot}%{_libexecdir}/os-refresh-config/migration.d
install -d -m 755 %{buildroot}%{_libexecdir}/os-refresh-config/post-configure.d

%{__python2} -m stestr.cli run

%license LICENSE
%doc README.rst

openSUSE Build Service is sponsored by