diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pyhdf.spec | 95 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 97 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyhdf-0.10.5.tar.gz diff --git a/python-pyhdf.spec b/python-pyhdf.spec new file mode 100644 index 0000000..e646679 --- /dev/null +++ b/python-pyhdf.spec @@ -0,0 +1,95 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyhdf +Version: 0.10.5 +Release: 1 +Summary: pyhdf: Python interface to the NCSA HDF4 library. +License: MIT +URL: https://github.com/fhs/pyhdf +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d6/d1/988d4ec926624576cf216388d34fe2067e724c2ba26cbb0ccc7c0cb8623e/pyhdf-0.10.5.tar.gz + + +%description +The pyhdf package wraps the functionality of the NCSA HDF version +4 library inside a Python OOP framework. The SD (scientific dataset), +VS (Vdata) and V (Vgroup) APIs are currently implemented. SD datasets +are read/written through numpy arrays. NetCDF files can also be read +and modified with pyhdf. + + + + +%package -n python3-pyhdf +Summary: pyhdf: Python interface to the NCSA HDF4 library. +Provides: python-pyhdf +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pyhdf +The pyhdf package wraps the functionality of the NCSA HDF version +4 library inside a Python OOP framework. The SD (scientific dataset), +VS (Vdata) and V (Vgroup) APIs are currently implemented. SD datasets +are read/written through numpy arrays. NetCDF files can also be read +and modified with pyhdf. + + + + +%package help +Summary: Development documents and examples for pyhdf +Provides: python3-pyhdf-doc +%description help +The pyhdf package wraps the functionality of the NCSA HDF version +4 library inside a Python OOP framework. The SD (scientific dataset), +VS (Vdata) and V (Vgroup) APIs are currently implemented. SD datasets +are read/written through numpy arrays. NetCDF files can also be read +and modified with pyhdf. + + + + +%prep +%autosetup -n pyhdf-0.10.5 + +%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-pyhdf -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.5-1 +- Package Spec generated @@ -0,0 +1 @@ +d974c3e83315188de233e4a7ed258675 pyhdf-0.10.5.tar.gz |
