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

# spec file for package python
# Copyright (c) 2020 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-apply-config
Version:        11.3.0
Release:        0
Summary:        OpenStack os-apply-config Configuration Library
License:        Apache-2.0
Group:          Development/Languages/Python
BuildRequires:  openstack-macros
BuildRequires:  python3-fixtures
BuildRequires:  python3-mock
BuildRequires:  python3-pbr
BuildRequires:  python3-pystache
BuildRequires:  python3-python-subunit
BuildRequires:  python3-stestr
BuildRequires:  python3-testscenarios
BuildRequires:  python3-testtools
Requires:       python3-PyYAML
Requires:       python3-anyjson
Requires:       python3-pbr
Requires:       python3-pystache
Requires:       python3-setuptools
Requires:       python3-six
BuildArch:      noarch

os-apply-config is a apply configuration from cloud metadata

%autosetup -p1 -n os-apply-config-11.3.0
sed -i 's#%{_bindir}/env python$#%{_bindir}/python3#g' os_apply_config/tests/templates%{_sysconfdir}/glance/script.conf


install -d -m 755 %{buildroot}%{_libexecdir}/os-apply-config/templates

python3 -m stestr.cli run

%license LICENSE
%doc README.rst
%dir %{_libexecdir}/os-apply-config
%dir %{_libexecdir}/os-apply-config/templates