diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:37:09 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:37:09 +0000 |
| commit | 1841c9c177cab8c4620cb98a64dddde069a98c45 (patch) | |
| tree | bff3f83b372463c5c0f74c72c3285a39e13fc932 | |
| parent | 667ad2fbc3fb1c3e110dedde4440399ac4f3f30c (diff) | |
automatic import of python-h5tiff
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-h5tiff.spec | 109 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 111 insertions, 0 deletions
@@ -0,0 +1 @@ +/h5tiff-0.3.7.tar.gz diff --git a/python-h5tiff.spec b/python-h5tiff.spec new file mode 100644 index 0000000..673f0f2 --- /dev/null +++ b/python-h5tiff.spec @@ -0,0 +1,109 @@ +%global _empty_manifest_terminate_build 0 +Name: python-h5tiff +Version: 0.3.7 +Release: 1 +Summary: a flexible converter to extract tiff files from h5 +License: MIT +URL: https://github.com/fedem-p/h5_tiff_converter +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/6b/8a30f73c3b0084b7a7f916b5eeb17d68c8e16a4a20d7431236de1f1a136a/h5tiff-0.3.7.tar.gz +BuildArch: noarch + +Requires: python3-flammkuchen +Requires: python3-tifffile +Requires: python3-numpy +Requires: python3-progress + +%description + +# File converter from h5 to tiff images + +script or notebook version. + +It gets as inputs the name to be used for saving the tiff files and a path to where the h5 file is. + +It unpacks the h5 file and creates a folder with a single tiff file for each image present in the h5 file + + + + + +%package -n python3-h5tiff +Summary: a flexible converter to extract tiff files from h5 +Provides: python-h5tiff +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-h5tiff + +# File converter from h5 to tiff images + +script or notebook version. + +It gets as inputs the name to be used for saving the tiff files and a path to where the h5 file is. + +It unpacks the h5 file and creates a folder with a single tiff file for each image present in the h5 file + + + + + +%package help +Summary: Development documents and examples for h5tiff +Provides: python3-h5tiff-doc +%description help + +# File converter from h5 to tiff images + +script or notebook version. + +It gets as inputs the name to be used for saving the tiff files and a path to where the h5 file is. + +It unpacks the h5 file and creates a folder with a single tiff file for each image present in the h5 file + + + + + +%prep +%autosetup -n h5tiff-0.3.7 + +%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-h5tiff -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.7-1 +- Package Spec generated @@ -0,0 +1 @@ +e34da643905b7deab709866f69c8a978 h5tiff-0.3.7.tar.gz |
