2020-01-09 16:23:48 +08:00
|
|
|
|
Name: python-cheetah
|
2023-02-18 04:18:28 -05:00
|
|
|
|
Version: 3.3.1
|
2023-05-25 11:31:13 +08:00
|
|
|
|
Release: 2
|
2020-01-09 16:23:48 +08:00
|
|
|
|
Summary: The Python-Powered Template Engine
|
|
|
|
|
|
License: MIT
|
|
|
|
|
|
URL: http://cheetahtemplate.org/
|
2023-02-18 04:18:28 -05:00
|
|
|
|
Source0: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/3.3.1.tar.gz
|
2020-10-30 14:26:09 +08:00
|
|
|
|
BuildRequires: gcc python3-devel python3-setuptools python3-markdown python3-pygments
|
2020-01-09 16:23:48 +08:00
|
|
|
|
|
2023-02-18 04:18:28 -05:00
|
|
|
|
Patch0001: resolve-run-test-Wrong-argument.patch
|
2020-01-09 16:23:48 +08:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
Cheetah3 is a free and open source template engine and code-generation tool written in Python.
|
|
|
|
|
|
Cheetah can be used unto itself, or incorporated with other technologies and stacks regardless
|
|
|
|
|
|
of whether they’re written in Python or not.
|
|
|
|
|
|
At its core, Cheetah is a domain-specific language for markup generation and templating
|
|
|
|
|
|
which allows for full integration with existing Python code but also offers extensions
|
|
|
|
|
|
to traditional Python syntax to allow for easier text-generation.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-cheetah
|
|
|
|
|
|
Summary: The Python-Powered Template Engine
|
|
|
|
|
|
%{?python_provide:%python_provide python3-cheetah}
|
2023-05-25 11:31:13 +08:00
|
|
|
|
Provides: python%{python3_pkgversion}dist(cheetah3) = %{version}
|
|
|
|
|
|
Provides: python%{python3_version}dist(cheetah3) = %{version}
|
2020-01-09 16:23:48 +08:00
|
|
|
|
|
|
|
|
|
|
%description -n python3-cheetah
|
|
|
|
|
|
The Python-Powered Template Engine
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-06-15 15:12:03 +08:00
|
|
|
|
%autosetup -n cheetah3-%{version} -p1
|
|
|
|
|
|
%{__sed} -i -e '/^#!/,1d' Cheetah/Tests/*.py Cheetah/DirectiveAnalyzer.py Cheetah/Utils/Misc.py
|
2020-01-09 16:23:48 +08:00
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
export PATH="%{buildroot}/%{_bindir}:$PATH" PYTHONPATH="%{buildroot}/%{python3_sitearch}"
|
|
|
|
|
|
%{buildroot}/%{_bindir}/cheetah test
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-cheetah
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
%doc ANNOUNCE.rst README.rst TODO BUGS
|
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
%{python3_sitearch}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-05-25 11:31:13 +08:00
|
|
|
|
* Thu May 25 2023 caodongxia <caodongxia@h-partners.com> - 3.3.1-2
|
|
|
|
|
|
- Provide python3dist(cheetah3) to be compatible with older versions
|
|
|
|
|
|
|
2023-02-18 04:18:28 -05:00
|
|
|
|
* Sat Feb 18 2023 huangduirong <huangduirong@huawei.com> - 3.3.1-1
|
|
|
|
|
|
- Upgrade to version 3.3.1
|
|
|
|
|
|
|
2022-06-15 15:12:03 +08:00
|
|
|
|
* Wed Jun 15 2022 houyingchao <houyingchao@h-partners.com> - 3.2.6-1
|
|
|
|
|
|
- Upgrade to version 3.2.6
|
|
|
|
|
|
|
2022-04-12 10:38:33 +08:00
|
|
|
|
* Tue Apr 12 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 3.1.0-10
|
|
|
|
|
|
- import from the new abc module inside of collections
|
|
|
|
|
|
|
2020-10-30 14:26:09 +08:00
|
|
|
|
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 3.1.0-9
|
|
|
|
|
|
- Remove subpackage python2-cheetah
|
|
|
|
|
|
|
2020-06-24 17:34:49 +08:00
|
|
|
|
* Wed Jun 24 2020 wangchong <wangchong56@huawei.com> - 3.1.0-8
|
|
|
|
|
|
- fix the tests error
|
|
|
|
|
|
|
2020-01-09 16:23:48 +08:00
|
|
|
|
* Wed Jan 8 2020 liujing<liujing144@huawei.com> - 3.1.0-7
|
|
|
|
|
|
- Package init
|