2022-11-18 17:40:43 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2023-02-15 17:07:51 +08:00
|
|
|
%bcond_without test
|
2021-11-27 10:03:24 +00:00
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
Name: python-mako
|
2024-01-15 14:22:56 +08:00
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: 1
|
2022-11-18 17:40:43 +08:00
|
|
|
Summary: Mako template library for Python
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
URL: http://www.makotemplates.org/
|
2024-01-15 14:22:56 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/a9/6e/6b41e654bbdcef90c6b9e7f280bf7cbd756dc2560ce76214f5cdbc4ddab5/Mako-1.3.0.tar.gz
|
2022-11-18 17:40:43 +08:00
|
|
|
BuildArch: noarch
|
2019-11-06 19:49:24 +08:00
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
Requires: python3-markupsafe
|
|
|
|
|
Requires: python3-mako = %{version}-%{release}
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%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
|
2022-11-18 17:40:43 +08:00
|
|
|
Summary: Mako library for Python 3
|
|
|
|
|
Provides: python-mako = %{version}-%{release}
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools
|
|
|
|
|
BuildRequires: python3-markupsafe python3-mock
|
|
|
|
|
BuildRequires: python3-pytest
|
2019-11-06 19:49:24 +08:00
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
%description -n python3-mako
|
2019-11-06 19:49:24 +08:00
|
|
|
Mako library for Python 3.
|
|
|
|
|
|
|
|
|
|
%package help
|
2022-11-18 17:40:43 +08:00
|
|
|
Summary: Help file of Mako library for Python
|
|
|
|
|
Provides: python3-mako-doc
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Help file of Mako library for Python in text and HTML formats.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-15 01:26:38 +00:00
|
|
|
%autosetup -n Mako-%{version}
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%build
|
2021-03-13 09:22:34 +08:00
|
|
|
%py3_build
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%install
|
2021-03-13 09:22:34 +08:00
|
|
|
%py3_install
|
2022-11-18 17:40:43 +08:00
|
|
|
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 .
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%check
|
2021-02-02 11:32:30 +08:00
|
|
|
%{__python3} -m pytest -v
|
2019-11-06 19:49:24 +08:00
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
%files -n python3-mako -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
2019-11-06 19:49:24 +08:00
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
2019-11-06 19:49:24 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2024-01-15 14:22:56 +08:00
|
|
|
* Mon Jan 15 2024 zhangkea <zhangkea@uniontech.com> - 1.3.0-1
|
|
|
|
|
- update package to verion 1.3.0
|
2023-02-15 17:07:51 +08:00
|
|
|
* Wed Feb 15 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.2.4-2
|
|
|
|
|
- enable check
|
|
|
|
|
|
2022-11-18 17:40:43 +08:00
|
|
|
* Fri Nov 18 2022 wangjunqi <wangjunqi@kylinos.cn> - 1.2.4-1
|
|
|
|
|
- Update package to version 1.2.4
|
|
|
|
|
|
2022-09-21 14:23:41 +08:00
|
|
|
* Wed Sep 21 2022 dillon chen <dilon.chen@gmal.com> 1.2.2-1
|
|
|
|
|
- update to 1.2.2
|
|
|
|
|
|
2022-03-30 10:34:24 +08:00
|
|
|
* Wed Mar 30 2022 wangjiang <wangjiang37@h-partners.com> 1.1.4-4
|
|
|
|
|
- remove python-nose build required
|
|
|
|
|
|
2022-02-23 16:49:05 +08:00
|
|
|
* Wed Feb 23 2022 yuanxin <yuanxin24@h-partners.com> - 1.1.4-3
|
|
|
|
|
- enable %check
|
|
|
|
|
|
2021-11-27 10:03:24 +00:00
|
|
|
* Sat Nov 27 2021 shixuantong <shixuantong@huawei.com> - 1.1.4-2
|
|
|
|
|
- disable %check
|
|
|
|
|
|
2021-07-15 01:26:38 +00:00
|
|
|
* Thu Jul 15 2021 huangtianhua <huangtianhua@huawei.com> 1.1.4-1
|
|
|
|
|
- Upgrade to 1.1.4 to support OpenStack-W
|
|
|
|
|
|
2021-03-13 09:22:34 +08:00
|
|
|
* Sat Mar 13 2021 shixuantong <shixuantong@huawei.com> - 1.1.3-2
|
|
|
|
|
- fix failure to build locally using rpmbuild
|
|
|
|
|
|
2021-02-02 11:32:30 +08:00
|
|
|
* Tue Feb 2 2021 wangjie<wangjie294@huawei.com> - 1.1.3-1
|
|
|
|
|
- upgrade version to 1.1.3
|
|
|
|
|
|
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
|