1 Star 0 Fork 19

src-openeuler-fork/python-mako

forked from src-openEuler/python-mako 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-mako.spec 3.64 KB
一键复制 编辑 原始数据 按行查看 历史
Venland 提交于 2024-02-27 15:52 . Revert "update version 1.3.0"
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler-fork/python-mako.git
git@gitee.com:src-openeuler-fork/python-mako.git
src-openeuler-fork
python-mako
python-mako
master

搜索帮助