Hello community,
here is the log from the commit of package python-Cheetah3 for openSUSE:Factory
checked in at 2020-04-22 20:55:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Cheetah3 (Old)
and /work/SRC/openSUSE:Factory/.python-Cheetah3.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Cheetah3"
Wed Apr 22 20:55:13 2020 rev:10 rq:796109 version:3.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Cheetah3/python-Cheetah3.changes
2020-02-19 12:42:02.135797344 +0100
+++
/work/SRC/openSUSE:Factory/.python-Cheetah3.new.2738/python-Cheetah3.changes
2020-04-22 20:55:17.739662793 +0200
@@ -1,0 +2,5 @@
+Tue Apr 21 17:05:55 UTC 2020 - Matej Cepl <[email protected]>
+
+- Cleanup of the SPEC file, remove warnings.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Cheetah3.spec ++++++
--- /var/tmp/diff_new_pack.UIBGT4/_old 2020-04-22 20:55:19.079665417 +0200
+++ /var/tmp/diff_new_pack.UIBGT4/_new 2020-04-22 20:55:19.079665417 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-Cheetah3
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -16,7 +16,7 @@
#
-%define skip_python2 1
+%define modname Cheetah3
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Cheetah3
Version: 3.2.4
@@ -24,7 +24,7 @@
Summary: Template engine and code generation tool
License: MIT
Group: Development/Languages/Python
-URL: http://cheetahtemplate.org/
+URL: https://cheetahtemplate.org/
Source:
https://files.pythonhosted.org/packages/source/C/Cheetah3/Cheetah3-%{version}.tar.gz
BuildRequires: %{python_module Markdown}
BuildRequires: %{python_module Pygments}
@@ -33,41 +33,46 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Conflicts: python-Cheetah
-%ifpython3
-Provides: Cheetah3 = %{version}
-%endif
+Provides: python-Cheetah = %{version}
+Provides: python-cheetah = %{version}
+Obsoletes: python-Cheetah < %{version}
%python_subpackages
%description
-Cheetah3 is a template engine and code generation tool.
+Cheetah is an open source 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 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}
+%setup -q -n %{modname}-%{version}
+%autopatch -p1
+find . -name \*.py -print0 |xargs -0 -t -l sed -i -e '1{\@^#!%{_bindir}/env
python@d}'
%build
%python_build
%install
%python_install
-%python_expand rm -r %{buildroot}%{$python_sitearch}/Cheetah/Tests
-%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%{python_expand rm -r %{buildroot}%{$python_sitearch}/Cheetah/Tests
+%fdupes %{buildroot}%{$python_sitearch}
+}
%check
+%{python_expand export PYTHONPATH=$(pwd)
export PYTHONDONTWRITEBYTECODE=1
-%python_expand PATH=$PATH:%{buildroot}%{_bindir} PYTHONPATH=$(pwd) $python
Cheetah/Tests/Test.py
+export PATH=%{buildroot}%{_bindir}:$PATH
+$python Cheetah/Tests/Test.py
+}
%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
+%{_bindir}/cheetah*
%{python_sitearch}/*
%changelog