summaryrefslogtreecommitdiff
path: root/python-h5tiff.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-h5tiff.spec')
-rw-r--r--python-h5tiff.spec109
1 files changed, 109 insertions, 0 deletions
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