diff --git a/Mako-1.2.2.tar.gz b/Mako-1.2.2.tar.gz deleted file mode 100644 index 83e869eed6cc731d9cd572ba501e5c172fc6ff28..0000000000000000000000000000000000000000 Binary files a/Mako-1.2.2.tar.gz and /dev/null differ diff --git a/Mako-1.2.4.tar.gz b/Mako-1.2.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8ed1b6c3adf2286e5348cc2c5f47c21e65c00b27 Binary files /dev/null and b/Mako-1.2.4.tar.gz differ diff --git a/python-mako.spec b/python-mako.spec index 9645b0f6e76eac17d1feee0a34ee69ad9da7d705..ed36dcef304b8fdb3a62d8f9da86ce2832f40616 100644 --- a/python-mako.spec +++ b/python-mako.spec @@ -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 +Summary: Mako library for Python 3 +Provides: python-mako = %{version}-%{release} +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-markupsafe python3-mock +BuildRequires: python3-pytest -%{?python_provide:%python_provide python3-mako} - -%description -n python3-mako +%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 - 1.2.4-1 +- Update package to version 1.2.4 + * Wed Sep 21 2022 dillon chen 1.2.2-1 - update to 1.2.2