2017-12-24 15:47:37 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Cheetah3
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 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.0.0
|
|
|
|
Release: 0
|
2017-12-29 10:03:32 +00:00
|
|
|
Summary: Template engine and code generation tool
|
2017-12-24 15:47:37 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2017-12-29 10:03:32 +00:00
|
|
|
Url: http://cheetahtemplate.org/
|
2017-12-24 15:47:37 +00:00
|
|
|
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
|
2017-12-29 13:07:01 +00:00
|
|
|
Conflicts: python-cheetah
|
2017-12-24 15:47:37 +00:00
|
|
|
Provides: Cheetah3 = %{version}
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2017-12-29 10:03:32 +00:00
|
|
|
Cheetah3 is a template engine and code generation tool.
|
2017-12-24 15:47:37 +00:00
|
|
|
|
|
|
|
It can be used standalone or combined with other tools and frameworks. Web
|
2017-12-29 10:03:32 +00:00
|
|
|
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.
|
2017-12-24 15:47:37 +00:00
|
|
|
|
2017-12-29 10:03:32 +00:00
|
|
|
It is a fork of the original CheetahTemplate library.
|
2017-12-24 15:47:37 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Cheetah3-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2017-12-29 10:03:32 +00:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2017-12-24 15:47:37 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc ANNOUNCE.rst LICENSE README.rst BUGS
|
|
|
|
%python3_only %{_bindir}/cheetah
|
|
|
|
%python3_only %{_bindir}/cheetah-analyze
|
|
|
|
%python3_only %{_bindir}/cheetah-compile
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|