diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 07:15:31 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-08 07:15:31 +0000 |
commit | 6efc68bdfb71d12b5f53b74ece5c9a9a20e2ca6c (patch) | |
tree | dd37e467f738de66d63d1f476cefd00ce8952f4d | |
parent | afad6b3a326600583c1a06bb0fc0f0ccb4abdb27 (diff) |
automatic import of python-chameleon
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-chameleon.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -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 +<http://www.python.org>`_. 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 +<http://pypy.org>`_). +Visit the `documentation <https://chameleon.readthedocs.io/en/latest/>`_ +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 +<http://www.python.org>`_. 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 +<http://pypy.org>`_). +Visit the `documentation <https://chameleon.readthedocs.io/en/latest/>`_ +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 +<http://www.python.org>`_. 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 +<http://pypy.org>`_). +Visit the `documentation <https://chameleon.readthedocs.io/en/latest/>`_ +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 <Python_Bot@openeuler.org> - 4.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +da7b92b67a0b47f47a02f68706e21cde Chameleon-4.0.0.tar.gz |