fix failure to build locally using rpmbuild

This commit is contained in:
sxt1001 2021-03-13 09:22:34 +08:00
parent c5588be90d
commit 30f89f266b

View File

@ -1,6 +1,6 @@
Name: python-mako
Version: 1.1.3
Release: 1
Release: 2
Summary: Mako template library for Python
License: (MIT and Python) and (BSD or GPLv2)
Group: Development/Languages
@ -38,10 +38,10 @@ Help file of Mako library for Python in text and HTML formats.
%autosetup -n zzzeek-mako-1f87991a8c42 -p1
%build
%{?with_python3:%py3_build}
%py3_build
%install
%{?with_python3:%py3_install}
%py3_install
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
rm -rf doc/build
@ -58,6 +58,9 @@ rm -rf doc/build
%doc doc
%changelog
* 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