diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-meza.spec | 82 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/meza-0.46.0.tar.gz diff --git a/python-meza.spec b/python-meza.spec new file mode 100644 index 0000000..4189132 --- /dev/null +++ b/python-meza.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-meza +Version: 0.46.0 +Release: 1 +Summary: A Python toolkit for processing tabular data +License: MIT +URL: https://github.com/reubano/meza +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ba/a9/74b9928a809a678248ac4781e476d6ee72ee072e7eb1f8fddd0862a2e069/meza-0.46.0.tar.gz +BuildArch: noarch + +Requires: python3-chardet +Requires: python3-slugify +Requires: python3-dateutil +Requires: python3-requests +Requires: python3-xlrd +Requires: python3-dbfread +Requires: python3-ijson +Requires: python3-beautifulsoup4 +Requires: python3-PyYAML +Requires: python3-pygogo + +%description +|travis| |versions| |pypi| + +%package -n python3-meza +Summary: A Python toolkit for processing tabular data +Provides: python-meza +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-meza +|travis| |versions| |pypi| + +%package help +Summary: Development documents and examples for meza +Provides: python3-meza-doc +%description help +|travis| |versions| |pypi| + +%prep +%autosetup -n meza-0.46.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-meza -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.46.0-1 +- Package Spec generated @@ -0,0 +1 @@ +d0a9c3edda61da50af78045a826473a0 meza-0.46.0.tar.gz |
