diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:41:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:41:15 +0000 |
commit | a3fdb842b81ed215022a38addace5d61af38eefc (patch) | |
tree | fdebea64161ec7a6d504122bb04a379dc2b4a709 | |
parent | 4781bf178766d7247366c4f05ff1315e3949254d (diff) |
automatic import of python-tableprint
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-tableprint.spec | 92 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 94 insertions, 0 deletions
@@ -0,0 +1 @@ +/tableprint-0.9.1.tar.gz diff --git a/python-tableprint.spec b/python-tableprint.spec new file mode 100644 index 0000000..abc76d8 --- /dev/null +++ b/python-tableprint.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tableprint +Version: 0.9.1 +Release: 1 +Summary: Pretty console printing of tabular data +License: MIT +URL: https://github.com/nirum/tableprint +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4f/29/3c93713dd065b183a4a5dc9a210308165854e71ece7e6b6b305a2ce55857/tableprint-0.9.1.tar.gz +BuildArch: noarch + +Requires: python3-future +Requires: python3-wcwidth +Requires: python3-pandas +Requires: python3-pytest +Requires: python3-pytest-cov + +%description +Formatted console printing of tabular data. +tableprint lets you easily print formatted tables of data. +Unlike other modules, you can print single rows of data at a time +(useful for printing ongoing computation results). + + + +%package -n python3-tableprint +Summary: Pretty console printing of tabular data +Provides: python-tableprint +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tableprint +Formatted console printing of tabular data. +tableprint lets you easily print formatted tables of data. +Unlike other modules, you can print single rows of data at a time +(useful for printing ongoing computation results). + + + +%package help +Summary: Development documents and examples for tableprint +Provides: python3-tableprint-doc +%description help +Formatted console printing of tabular data. +tableprint lets you easily print formatted tables of data. +Unlike other modules, you can print single rows of data at a time +(useful for printing ongoing computation results). + + + +%prep +%autosetup -n tableprint-0.9.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-tableprint -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.1-1 +- Package Spec generated @@ -0,0 +1 @@ +68cae18c9d9d9cc77fb4534bab50d54a tableprint-0.9.1.tar.gz |