From 6efc68bdfb71d12b5f53b74ece5c9a9a20e2ca6c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 8 Mar 2023 07:15:31 +0000 Subject: automatic import of python-chameleon --- .gitignore | 1 + python-chameleon.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 92 insertions(+) create mode 100644 python-chameleon.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..884a6d0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Chameleon-4.0.0.tar.gz diff --git a/python-chameleon.spec b/python-chameleon.spec new file mode 100644 index 0000000..132745f --- /dev/null +++ b/python-chameleon.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Chameleon +Version: 4.0.0 +Release: 1 +Summary: Fast HTML/XML Template Compiler. +License: BSD-like (http://repoze.org/license.html) +URL: https://chameleon.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5b/44/d5d984e2191d4b42bd0bc1cc7ef578788ac8c57194e254f16d254a3b4570/Chameleon-4.0.0.tar.gz +BuildArch: noarch + + +%description +Chameleon is an HTML/XML template engine for `Python +`_. It uses the *page templates* language. +You can use it in any Python web application with just about any +version of Python (2.7 and up, including 3.4+ and `pypy +`_). +Visit the `documentation `_ +for more information. + +%package -n python3-Chameleon +Summary: Fast HTML/XML Template Compiler. +Provides: python-Chameleon +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Chameleon +Chameleon is an HTML/XML template engine for `Python +`_. It uses the *page templates* language. +You can use it in any Python web application with just about any +version of Python (2.7 and up, including 3.4+ and `pypy +`_). +Visit the `documentation `_ +for more information. + +%package help +Summary: Development documents and examples for Chameleon +Provides: python3-Chameleon-doc +%description help +Chameleon is an HTML/XML template engine for `Python +`_. It uses the *page templates* language. +You can use it in any Python web application with just about any +version of Python (2.7 and up, including 3.4+ and `pypy +`_). +Visit the `documentation `_ +for more information. + +%prep +%autosetup -n Chameleon-4.0.0 + +%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 . + +%files -n python3-Chameleon -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Mar 08 2023 Python_Bot - 4.0.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..e6259de --- /dev/null +++ b/sources @@ -0,0 +1 @@ +da7b92b67a0b47f47a02f68706e21cde Chameleon-4.0.0.tar.gz -- cgit v1.2.3