# # spec file for package python-Cheetah3 # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Cheetah3 Version: 3.1.0 Release: 0 Summary: Template engine and code generation tool License: MIT Group: Development/Languages/Python URL: http://cheetahtemplate.org/ Source: https://files.pythonhosted.org/packages/source/C/Cheetah3/Cheetah3-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Conflicts: python-Cheetah Provides: Cheetah3 = %{version} %python_subpackages %description Cheetah3 is a template engine and code generation tool. It can be used standalone or combined with other tools and frameworks. Web development is its principle use, but Cheetah is flexible and can also be used to generate C++ game code, Java, SQL, form emails and even Python code. It is a fork of the original CheetahTemplate library. %prep %setup -q -n Cheetah3-%{version} %build %python_build %install %python_install %fdupes %{buildroot}/%{_prefix} %files %{python_files} %license LICENSE %doc ANNOUNCE.rst README.rst BUGS %python3_only %{_bindir}/cheetah %python3_only %{_bindir}/cheetah-analyze %python3_only %{_bindir}/cheetah-compile %{python_sitearch}/* %changelog