diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 03:33:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 03:33:48 +0000 |
commit | 48a56ec860591517c3ac4d7e141b7761532292fd (patch) | |
tree | f69846afe258da3c688406381effd232e1ed8714 | |
parent | 54bac4340e1f11cfed95afe419898ace00a19458 (diff) |
automatic import of python-cheetah
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cheetah.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/Cheetah-2.4.4.tar.gz diff --git a/python-cheetah.spec b/python-cheetah.spec new file mode 100644 index 0000000..0dceeeb --- /dev/null +++ b/python-cheetah.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Cheetah +Version: 2.4.4 +Release: 1 +Summary: Cheetah is a template engine and code generation tool. +License: UNKNOWN +URL: http://www.cheetahtemplate.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/cd/b0/c2d700252fc251e91c08639ff41a8a5203b627f4e0a2ae18a6b662ab32ea/Cheetah-2.4.4.tar.gz +BuildArch: noarch + + +%description +For a high-level introduction to Cheetah please refer to the User's Guide +at http://www.cheetahtemplate.org/learn.html + +%package -n python3-Cheetah +Summary: Cheetah is a template engine and code generation tool. +Provides: python-Cheetah +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Cheetah +For a high-level introduction to Cheetah please refer to the User's Guide +at http://www.cheetahtemplate.org/learn.html + +%package help +Summary: Development documents and examples for Cheetah +Provides: python3-Cheetah-doc +%description help +For a high-level introduction to Cheetah please refer to the User's Guide +at http://www.cheetahtemplate.org/learn.html + +%prep +%autosetup -n Cheetah-2.4.4 + +%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-Cheetah -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.4-1 +- Package Spec generated @@ -0,0 +1 @@ +853917116e731afbc8c8a43c37e6ddba Cheetah-2.4.4.tar.gz |