File python-renderspec.spec of Package python-renderspec

# spec file for package python-renderspec
# 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

%global sname renderspec
Name:           python-renderspec
Version:        1.9.1
Release:        0
Summary:        Generate spec files from Jinja2 templates
License:        Apache-2.0
Group:          Development/Languages/Python
URL:  {sname}
BuildRequires:  openstack-macros
BuildRequires:  python-devel
BuildRequires:  python-pbr
Requires:       python-Jinja2
Requires:       python-PyYAML
Requires:       python-packaging
Requires:       python-pymod2pkg
Requires:       python-six
BuildArch:      noarch

renderspec is a tool to convert a .spec.j2 Jinja2 template to
a rpm .spec file which is usable for different distributions
and follow their policies and processes.

%package doc
Summary:        Documentation for the renderspec utility
Group:          Development/Languages/Python
BuildRequires:  python-Sphinx
BuildRequires:  python-oslosphinx
Requires:       %{name} = %{version}

%description doc
Documentation for the renderspec tool which is a tool to convert
a spec.j2 Jinja2 template into a rpm .spec file.

%autosetup -p 1 -n %{sname}-%{version}


%{__python2} build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}


%license LICENSE
%doc README.rst ChangeLog

%files doc
%doc doc/build/html
%license LICENSE

openSUSE Build Service is sponsored by