summaryrefslogtreecommitdiff
path: root/python-ezt.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 04:35:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 04:35:56 +0000
commit262dd905eefdc75971cfcc8ceff6cacbf2c92a89 (patch)
treea9a0f6ea21fdf002560e20205f012ac6ace45586 /python-ezt.spec
parent0ca0b10ee98f07c9e3b462e411f7acddc4e94d77 (diff)
automatic import of python-ezt
Diffstat (limited to 'python-ezt.spec')
-rw-r--r--python-ezt.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-ezt.spec b/python-ezt.spec
new file mode 100644
index 0000000..ff07a52
--- /dev/null
+++ b/python-ezt.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ezt
+Version: 1.1
+Release: 1
+Summary: EaZy Templating for Python.
+License: BSD
+URL: http://code.google.com/p/ezt/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/81/91/462c781b7f4e141eb657fa1d20810237fd14e9fd07babd2d7bed3d7ff4cb/ezt-1.1.tar.gz
+BuildArch: noarch
+
+
+%description
+EZT is a lightweight, fast, and safe templating system for Python. It is useful for generating HTML, plain text, code, and more.
+
+%package -n python3-ezt
+Summary: EaZy Templating for Python.
+Provides: python-ezt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ezt
+EZT is a lightweight, fast, and safe templating system for Python. It is useful for generating HTML, plain text, code, and more.
+
+%package help
+Summary: Development documents and examples for ezt
+Provides: python3-ezt-doc
+%description help
+EZT is a lightweight, fast, and safe templating system for Python. It is useful for generating HTML, plain text, code, and more.
+
+%prep
+%autosetup -n ezt-1.1
+
+%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-ezt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1-1
+- Package Spec generated