!24 Update package
From: @Wangjunqi123 Reviewed-by: @yangzhao_kl, @dillon_chen Signed-off-by: @dillon_chen, @yangzhao_kl
This commit is contained in:
commit
6f5138bdb9
Binary file not shown.
BIN
Mako-1.2.4.tar.gz
Normal file
BIN
Mako-1.2.4.tar.gz
Normal file
Binary file not shown.
@ -1,18 +1,18 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
%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
|
||||
Name: python-mako
|
||||
Version: 1.2.4
|
||||
Release: 1
|
||||
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
|
||||
|
||||
BuildRequires: python3-devel python3-setuptools
|
||||
BuildRequires: python3-markupsafe python3-mock
|
||||
BuildRequires: python3-pytest
|
||||
Requires: python3-markupsafe
|
||||
Requires: python3-mako = %{version}-%{release}
|
||||
|
||||
%description
|
||||
Python-mako is a template library for Python. It provides a familiar, non-XML
|
||||
@ -21,18 +21,18 @@ 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}
|
||||
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
|
||||
Requires: python3-mako = %{version}-%{release}
|
||||
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.
|
||||
@ -45,22 +45,45 @@ Help file of Mako library for Python in text and HTML formats.
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/python3-mako-render
|
||||
rm -rf doc/build
|
||||
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
|
||||
%license LICENSE AUTHORS
|
||||
%doc CHANGES README.* examples
|
||||
%{_bindir}/python3-mako-render
|
||||
%{python3_sitelib}/*
|
||||
%files -n python3-mako -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help
|
||||
%doc doc
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user