python-cheetah/python-cheetah.spec

61 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-01-09 16:23:48 +08:00
Name: python-cheetah
Version: 3.1.0
2022-04-12 10:38:33 +08:00
Release: 10
2020-01-09 16:23:48 +08:00
Summary: The Python-Powered Template Engine
License: MIT
URL: http://cheetahtemplate.org/
Source: https://pypi.python.org/packages/54/86/ea50bb5baf1daa8ca1a56774d48150a69376679d27c4130848702efc378c/Cheetah3-3.1.0.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
Patch0001: cheetah-3.0.0-dont-run-tests-twice.patch
2020-06-24 17:34:49 +08:00
Patch0002: fix-the-regressions-test-error.patch
2022-04-12 10:38:33 +08:00
Patch0003: import-from-the-new-abc-module.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 theyre 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}
%description -n python3-cheetah
The Python-Powered Template Engine
%prep
%autosetup -n Cheetah3-%{version} -p1
%{__sed} -i -e '/^#!/,1d' Cheetah/Tests/* Cheetah/DirectiveAnalyzer.py Cheetah/Utils/Misc.py
%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
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