python-mako/python-mako.spec
2022-09-21 14:23:41 +08:00

114 lines
2.7 KiB
RPMSpec

%bcond_with test
Name: python-mako
Version: 1.2.2
Release: 1
Summary: Mako template library for Python
License: MIT
Group: Development/Languages
URL: http://www.makotemplates.org/
Source0: https://files.pythonhosted.org/packages/source/M/Mako/Mako-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-markupsafe python3-mock
BuildRequires: python3-pytest
%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
%autosetup -n Mako-%{version}
%build
%py3_build
%install
%py3_install
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
rm -rf doc/build
%check
%{__python3} -m pytest -v
%files -n python3-mako
%license LICENSE AUTHORS
%doc CHANGES README.* examples
%{_bindir}/python3-mako-render
%{python3_sitelib}/*
%files help
%doc doc
%changelog
* Wed Sep 21 2022 dillon chen <dilon.chen@gmal.com> 1.2.2-1
- update to 1.2.2
* Wed Mar 30 2022 wangjiang <wangjiang37@h-partners.com> 1.1.4-4
- remove python-nose build required
* Wed Feb 23 2022 yuanxin <yuanxin24@h-partners.com> - 1.1.4-3
- enable %check
* Sat Nov 27 2021 shixuantong <shixuantong@huawei.com> - 1.1.4-2
- disable %check
* Thu Jul 15 2021 huangtianhua <huangtianhua@huawei.com> 1.1.4-1
- Upgrade to 1.1.4 to support OpenStack-W
* Sat Mar 13 2021 shixuantong <shixuantong@huawei.com> - 1.1.3-2
- fix failure to build locally using rpmbuild
* Tue Feb 2 2021 wangjie<wangjie294@huawei.com> - 1.1.3-1
- upgrade version to 1.1.3
* 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
* Sat Aug 8 2020 shixuantong <shixuantong@huawei.com> - 1.0.6-15
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2 support
* Wed Jul 8 2020 xinghe<xinghe1@huawei.com> - 1.0.6-14
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Use Constant.value
* Wed Jun 24 2020 wenzhanli<wenzhanli2m@huawei.com> - 1.0.6-13
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Optimize make test
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.6-12
- Type:NA
- ID:NA
- SUG:NA
- DESC:Package Init