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 https://bugs.opensuse.org/
#


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
URL:            https://launchpad.net/os-apply-config
Source0:        https://files.pythonhosted.org/packages/source/o/os-apply-config/os-apply-config-11.3.0.tar.gz
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

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

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

%build
%{py3_build}

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

%check
python3 -m stestr.cli run

%files
%license LICENSE
%doc README.rst
%{_bindir}/os-apply-config
%{_bindir}/os-config-applier
%{python3_sitelib}/os_apply_config
%{python3_sitelib}/*.egg-info
%dir %{_libexecdir}/os-apply-config
%dir %{_libexecdir}/os-apply-config/templates

%changelog