2019-11-06 19:49:24 +08:00
|
|
|
Name: python-mako
|
|
|
|
|
Version: 1.0.6
|
2021-01-19 15:45:53 +08:00
|
|
|
Release: 16
|
2019-11-06 19:49:24 +08:00
|
|
|
Summary: Mako template library for Python
|
|
|
|
|
License: (MIT and Python) and (BSD or GPLv2)
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
URL: http://www.makotemplates.org/
|
|
|
|
|
Source0: https://bitbucket.org/zzzeek/mako/get/rel_%(echo %{version} | sed "s/\./_/g").tar.bz2
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-06-24 19:58:51 +08:00
|
|
|
Patch6000: backport-optimize-make-test.patch
|
2020-07-08 15:53:03 +08:00
|
|
|
Patch6001: backport-use-Constant-value.patch
|
2020-06-24 19:58:51 +08:00
|
|
|
|
2019-11-06 19:49:24 +08:00
|
|
|
BuildRequires: python3-devel python3-pytest python3-setuptools
|
|
|
|
|
BuildRequires: python3-markupsafe python3-mock python3-nose
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Python-mako is a template library for Python. It provides a familiar, non-XML
|
|
|
|
|
syntax which compiles into Python modules for maximum performance. Mako's syntax
|
|
|
|
|
and API borrows from the best ideas of many others, including Django templates,
|
|
|
|
|
Cheetah, Myghty, and Genshi.
|
|
|
|
|
|
|
|
|
|
%package -n python3-mako
|
|
|
|
|
Summary: Mako library for Python 3
|
|
|
|
|
Requires: python3-markupsafe
|
|
|
|
|
Recommends: python3-beaker
|
|
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python3-mako}
|
|
|
|
|
|
|
|
|
|
%description -n python3-mako
|
|
|
|
|
Mako library for Python 3.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Help file of Mako library for Python
|
|
|
|
|
Requires: python3-mako = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Help file of Mako library for Python in text and HTML formats.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-06-24 19:58:51 +08:00
|
|
|
%autosetup -n zzzeek-mako-8e83c7561e3c -p1
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{?with_python3:%py3_build}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%{?with_python3:%py3_install}
|
|
|
|
|
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
|
|
|
|
|
rm -rf doc/build
|
|
|
|
|
|
|
|
|
|
%check
|
2021-01-19 15:45:53 +08:00
|
|
|
rm setup.cfg
|
|
|
|
|
export LANG=en_US.UTF-8
|
2019-11-06 19:49:24 +08:00
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python3-mako
|
|
|
|
|
%license LICENSE AUTHORS
|
|
|
|
|
%doc CHANGES README.* examples
|
|
|
|
|
%{_bindir}/python3-mako-render
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc doc
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-01-19 15:45:53 +08:00
|
|
|
* Tue Jan 19 2021 tianwei <tianwei12@huawei.com> - 1.0.6-16
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix pytest setup.cfg fail in make check
|
|
|
|
|
|
2020-08-08 11:31:12 +08:00
|
|
|
* Sat Aug 8 2020 shixuantong <shixuantong@huawei.com> - 1.0.6-15
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove python2 support
|
|
|
|
|
|
2020-07-08 15:53:03 +08:00
|
|
|
* Wed Jul 8 2020 xinghe<xinghe1@huawei.com> - 1.0.6-14
|
2020-07-08 16:12:48 +08:00
|
|
|
- Type:bugfix
|
2020-07-08 15:53:03 +08:00
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Use Constant.value
|
|
|
|
|
|
2020-06-24 19:58:51 +08:00
|
|
|
* Wed Jun 24 2020 wenzhanli<wenzhanli2m@huawei.com> - 1.0.6-13
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Optimize make test
|
|
|
|
|
|
2019-11-06 19:49:24 +08:00
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.6-12
|
|
|
|
|
- Type:NA
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Package Init
|