diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:23:03 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:23:03 +0000 |
| commit | 8543c0e44261856b5ff780e76774e82634db9a02 (patch) | |
| tree | 7624bd99aca7c4fc6ee775155f6a20d7e74d8af4 | |
| parent | b95ba095024b87091162fb8113285ba979e2eba7 (diff) | |
automatic import of python-cheetah3
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-cheetah3.spec | 79 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -0,0 +1 @@ +/Cheetah3-3.2.6.post1.tar.gz diff --git a/python-cheetah3.spec b/python-cheetah3.spec new file mode 100644 index 0000000..aed2283 --- /dev/null +++ b/python-cheetah3.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Cheetah3 +Version: 3.2.6.post1 +Release: 1 +Summary: Cheetah is a template engine and code generation tool +License: MIT +URL: https://cheetahtemplate.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/33/ace0250068afca106c1df34348ab0728e575dc9c61928d216de3e381c460/Cheetah3-3.2.6.post1.tar.gz + +Requires: python3-markdown +Requires: python3-markdown + +%description +For a high-level introduction to Cheetah please refer to the User's Guide +at https://cheetahtemplate.org/users_guide/index.html + +%package -n python3-Cheetah3 +Summary: Cheetah is a template engine and code generation tool +Provides: python-Cheetah3 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-Cheetah3 +For a high-level introduction to Cheetah please refer to the User's Guide +at https://cheetahtemplate.org/users_guide/index.html + +%package help +Summary: Development documents and examples for Cheetah3 +Provides: python3-Cheetah3-doc +%description help +For a high-level introduction to Cheetah please refer to the User's Guide +at https://cheetahtemplate.org/users_guide/index.html + +%prep +%autosetup -n Cheetah3-3.2.6.post1 + +%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-Cheetah3 -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.6.post1-1 +- Package Spec generated @@ -0,0 +1 @@ +56bb5475917036ff22498caccaf1f29f Cheetah3-3.2.6.post1.tar.gz |
