2017-02-10 14:14:44 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-renderspec
|
|
|
|
|
#
|
2024-01-07 20:06:15 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-02-10 14:14:44 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-04-29 12:32:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-10 14:14:44 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2019-09-20 07:49:27 +00:00
|
|
|
%global oldpython python
|
2017-02-10 14:14:44 +00:00
|
|
|
Name: python-renderspec
|
2024-01-07 20:06:15 +00:00
|
|
|
Version: 2.3.0
|
2017-02-10 14:14:44 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Generate spec files from Jinja2 templates
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2020-11-26 10:11:28 +00:00
|
|
|
URL: https://docs.openstack.org/renderspec
|
2019-04-29 12:32:51 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/r/renderspec/renderspec-%{version}.tar.gz
|
2017-02-10 14:14:44 +00:00
|
|
|
BuildRequires: openstack-macros
|
2019-04-29 12:32:51 +00:00
|
|
|
BuildRequires: python3-Jinja2 >= 2.10
|
|
|
|
|
BuildRequires: python3-ddt
|
2019-06-17 10:08:01 +00:00
|
|
|
BuildRequires: python3-packaging >= 16.5
|
2019-04-29 12:32:51 +00:00
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pymod2pkg >= 0.7.0
|
|
|
|
|
BuildRequires: python3-stestr
|
2017-02-10 14:14:44 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
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.
|
|
|
|
|
|
2020-03-17 09:50:45 +00:00
|
|
|
%package -n python3-renderspec
|
|
|
|
|
Summary: Generate spec files from Jinja2 templates
|
|
|
|
|
Requires: python3-Jinja2 >= 2.10
|
|
|
|
|
Requires: python3-PyYAML >= 3.10
|
|
|
|
|
Requires: python3-packaging >= 16.5
|
|
|
|
|
Requires: python3-pymod2pkg >= 0.7.0
|
|
|
|
|
Conflicts: %{oldpython}-renderspec < %{version}
|
|
|
|
|
|
|
|
|
|
%description -n python3-renderspec
|
|
|
|
|
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.
|
|
|
|
|
|
2019-04-29 12:32:51 +00:00
|
|
|
%package -n python-renderspec-doc
|
2017-02-10 14:14:44 +00:00
|
|
|
Summary: Documentation for the renderspec utility
|
2020-03-17 09:50:45 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
|
|
|
|
Requires: python3-renderspec = %{version}
|
2017-02-10 14:14:44 +00:00
|
|
|
|
2019-04-29 12:32:51 +00:00
|
|
|
%description -n python-renderspec-doc
|
2017-02-10 14:14:44 +00:00
|
|
|
Documentation for the renderspec tool which is a tool to convert
|
|
|
|
|
a spec.j2 Jinja2 template into a rpm .spec file.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-01-07 20:06:15 +00:00
|
|
|
%autosetup -p 1 -n renderspec-2.3.0
|
2017-02-10 14:14:44 +00:00
|
|
|
%py_req_cleanup
|
|
|
|
|
|
|
|
|
|
%build
|
2020-03-17 09:50:45 +00:00
|
|
|
%{py3_build}
|
2017-02-10 14:14:44 +00:00
|
|
|
|
2024-01-07 20:06:15 +00:00
|
|
|
PBR_VERSION=2.3.0 %sphinx_build -b html doc/source doc/build/html
|
2017-02-10 14:14:44 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
|
|
|
|
|
|
%install
|
2020-03-17 09:50:45 +00:00
|
|
|
%{py3_install}
|
2017-02-10 14:14:44 +00:00
|
|
|
|
2019-04-29 12:32:51 +00:00
|
|
|
%check
|
2023-03-03 21:37:46 +00:00
|
|
|
%{openstack_stestr_run}
|
2019-04-29 12:32:51 +00:00
|
|
|
|
2020-03-17 09:50:45 +00:00
|
|
|
%files -n python3-renderspec
|
2017-02-10 14:14:44 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst ChangeLog
|
2019-06-26 15:39:54 +00:00
|
|
|
%{_bindir}/renderspec
|
2020-03-17 09:50:45 +00:00
|
|
|
%{python3_sitelib}/renderspec
|
2024-01-07 20:06:15 +00:00
|
|
|
%{python3_sitelib}/renderspec-%{version}-py*.egg-info
|
2017-02-10 14:14:44 +00:00
|
|
|
|
2019-04-29 12:32:51 +00:00
|
|
|
%files -n python-renderspec-doc
|
2017-02-10 14:14:44 +00:00
|
|
|
%doc doc/build/html
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
%changelog
|