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

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

Name:           python3-os-refresh-config
Version:        10.4.0
Release:        0
Summary:        Refresh system configuration
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python3-dib-utils
BuildRequires:  python3-fixtures
BuildRequires:  python3-mock
BuildRequires:  python3-pbr
BuildRequires:  python3-psutil
BuildRequires:  python3-stestr
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
Requires:       python3-dib-utils
Requires:       python3-pbr
Requires:       python3-psutil
BuildArch:      noarch

Tool to refresh openstack config changes to service.

%autosetup -n os-refresh-config-10.4.0


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

# NOTE(jpena): has a wrong shebang, and it is called
# directly by the tests.
sed -i 's/#!\/usr\/bin\/env.*/#!\/usr\/bin\/python3/' os_refresh_config/
python3 -m stestr.cli run

%license LICENSE
%doc README.rst

openSUSE Build Service is sponsored by