代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-mako 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global _empty_manifest_terminate_build 0
%bcond_without test
Name: python-mako
Version: 1.2.4
Release: 2
Summary: Mako template library for Python
License: MIT
Group: Development/Languages
URL: http://www.makotemplates.org/
Source0: https://files.pythonhosted.org/packages/05/5f/2ba6e026d33a0e6ddc1dddf9958677f76f5f80c236bd65309d280b166d3e/Mako-1.2.4.tar.gz
BuildArch: noarch
Requires: python3-markupsafe
Requires: python3-mako = %{version}-%{release}
%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
Provides: python-mako = %{version}-%{release}
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-markupsafe python3-mock
BuildRequires: python3-pytest
%description -n python3-mako
Mako library for Python 3.
%package help
Summary: Help file of Mako library for Python
Provides: python3-mako-doc
%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
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} -m pytest -v
%files -n python3-mako -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Feb 15 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.2.4-2
- enable check
* Fri Nov 18 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.2.4-1
- Update package to version 1.2.4
* 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。