diff options
Diffstat (limited to 'python-torchio.spec')
| -rw-r--r-- | python-torchio.spec | 359 |
1 files changed, 359 insertions, 0 deletions
diff --git a/python-torchio.spec b/python-torchio.spec new file mode 100644 index 0000000..4ae0043 --- /dev/null +++ b/python-torchio.spec @@ -0,0 +1,359 @@ +%global _empty_manifest_terminate_build 0 +Name: python-torchio +Version: 0.18.90 +Release: 1 +Summary: Tools for medical image processing with PyTorch +License: Apache-2.0 +URL: http://torchio.rtfd.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/71/40/0eed20e121c2ca32b98d7f2a84b618f6b033fc571a5244c7a89dc8c9d09e/torchio-0.18.90.tar.gz +BuildArch: noarch + +Requires: python3-Deprecated +Requires: python3-SimpleITK +Requires: python3-humanize +Requires: python3-nibabel +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-torch +Requires: python3-tqdm +Requires: python3-typer[all] +Requires: python3-pandas +Requires: python3-bump2version +Requires: python3-codecov +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-matplotlib +Requires: python3-mypy +Requires: python3-pandas-stubs +Requires: python3-parameterized +Requires: python3-pre-commit +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-tox +Requires: python3-types-Deprecated +Requires: python3-einops +Requires: python3-furo +Requires: python3-sphinx +Requires: python3-sphinx-autobuild +Requires: python3-sphinx-copybutton +Requires: python3-sphinx-gallery +Requires: python3-sphinxext-opengraph +Requires: python3-pandas +Requires: python3-bump2version +Requires: python3-codecov +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-matplotlib +Requires: python3-mypy +Requires: python3-pandas-stubs +Requires: python3-parameterized +Requires: python3-pre-commit +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-tox +Requires: python3-types-Deprecated +Requires: python3-einops +Requires: python3-furo +Requires: python3-matplotlib +Requires: python3-sphinx +Requires: python3-sphinx-autobuild +Requires: python3-sphinx-copybutton +Requires: python3-sphinx-gallery +Requires: python3-sphinxext-opengraph +Requires: python3-matplotlib + +%description +<!-- markdownlint-disable --> +<table align="center"> + <tr> + <td align="left"> + <b>Package</b> + </td> + <td align="center"> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/dm/torchio.svg?label=PyPI%20downloads&logo=python&logoColor=white" alt="PyPI downloads"> + </a> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/v/torchio?label=PyPI%20version&logo=python&logoColor=white" alt="PyPI version"> + </a> + <a href="https://anaconda.org/conda-forge/torchio"> + <img src="https://img.shields.io/conda/v/conda-forge/torchio.svg?label=conda-forge&logo=conda-forge" alt="Conda version"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>CI</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/actions/workflows/tests.yml"> + <img src="https://github.com/fepegar/torchio/actions/workflows/tests.yml/badge.svg" alt="Tests status"> + </a> + <a href="https://torchio.rtfd.io/?badge=latest"> + <img src="https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs" alt="Documentation status"> + </a> + <a href="https://codecov.io/github/fepegar/torchio"> + <img src="https://codecov.io/gh/fepegar/torchio/branch/main/graphs/badge.svg" alt="Coverage status"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Code</b> + </td> + <td align="center"> + <a href="https://scrutinizer-ci.com/g/fepegar/torchio/?branch=main"> + <img src="https://img.shields.io/scrutinizer/g/fepegar/torchio.svg?label=Code%20quality&logo=scrutinizer" alt="Code quality"> + </a> + <a href="https://codeclimate.com/github/fepegar/torchio/maintainability"> + <img src="https://api.codeclimate.com/v1/badges/518673e49a472dd5714d/maintainability" alt="Code maintainability"> + </a> + <a href="https://github.com/pre-commit/pre-commit"> + <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Tutorials</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/blob/main/tutorials/README.md"> + <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Community</b> + </td> + <td align="center"> + <a href="https://join.slack.com/t/torchioworkspace/shared_invite/zt-exgpd5rm-BTpxg2MazwiiMDw7X9xMFg"> + <img src="https://img.shields.io/badge/TorchIO-Join%20on%20Slack-blueviolet?style=flat&logo=slack" alt="Slack"> + </a> + <a href="https://twitter.com/TorchIOLib"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIOLib.svg?style=social&label=Follow%20%40TorchIOLib" alt="Twitter"> + </a> + <a href="https://twitter.com/TorchIO_commits"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIO_commits.svg?style=social&label=Follow%20%40TorchIO_commits" alt="Twitter"> + </a> + <a href="https://www.youtube.com/watch?v=UEUVSw5-M9M"> + <img src="https://img.shields.io/youtube/views/UEUVSw5-M9M?label=watch&style=social" alt="YouTube"> + </a> + </td> + </tr> + +%package -n python3-torchio +Summary: Tools for medical image processing with PyTorch +Provides: python-torchio +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-torchio +<!-- markdownlint-disable --> +<table align="center"> + <tr> + <td align="left"> + <b>Package</b> + </td> + <td align="center"> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/dm/torchio.svg?label=PyPI%20downloads&logo=python&logoColor=white" alt="PyPI downloads"> + </a> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/v/torchio?label=PyPI%20version&logo=python&logoColor=white" alt="PyPI version"> + </a> + <a href="https://anaconda.org/conda-forge/torchio"> + <img src="https://img.shields.io/conda/v/conda-forge/torchio.svg?label=conda-forge&logo=conda-forge" alt="Conda version"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>CI</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/actions/workflows/tests.yml"> + <img src="https://github.com/fepegar/torchio/actions/workflows/tests.yml/badge.svg" alt="Tests status"> + </a> + <a href="https://torchio.rtfd.io/?badge=latest"> + <img src="https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs" alt="Documentation status"> + </a> + <a href="https://codecov.io/github/fepegar/torchio"> + <img src="https://codecov.io/gh/fepegar/torchio/branch/main/graphs/badge.svg" alt="Coverage status"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Code</b> + </td> + <td align="center"> + <a href="https://scrutinizer-ci.com/g/fepegar/torchio/?branch=main"> + <img src="https://img.shields.io/scrutinizer/g/fepegar/torchio.svg?label=Code%20quality&logo=scrutinizer" alt="Code quality"> + </a> + <a href="https://codeclimate.com/github/fepegar/torchio/maintainability"> + <img src="https://api.codeclimate.com/v1/badges/518673e49a472dd5714d/maintainability" alt="Code maintainability"> + </a> + <a href="https://github.com/pre-commit/pre-commit"> + <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Tutorials</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/blob/main/tutorials/README.md"> + <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Community</b> + </td> + <td align="center"> + <a href="https://join.slack.com/t/torchioworkspace/shared_invite/zt-exgpd5rm-BTpxg2MazwiiMDw7X9xMFg"> + <img src="https://img.shields.io/badge/TorchIO-Join%20on%20Slack-blueviolet?style=flat&logo=slack" alt="Slack"> + </a> + <a href="https://twitter.com/TorchIOLib"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIOLib.svg?style=social&label=Follow%20%40TorchIOLib" alt="Twitter"> + </a> + <a href="https://twitter.com/TorchIO_commits"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIO_commits.svg?style=social&label=Follow%20%40TorchIO_commits" alt="Twitter"> + </a> + <a href="https://www.youtube.com/watch?v=UEUVSw5-M9M"> + <img src="https://img.shields.io/youtube/views/UEUVSw5-M9M?label=watch&style=social" alt="YouTube"> + </a> + </td> + </tr> + +%package help +Summary: Development documents and examples for torchio +Provides: python3-torchio-doc +%description help +<!-- markdownlint-disable --> +<table align="center"> + <tr> + <td align="left"> + <b>Package</b> + </td> + <td align="center"> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/dm/torchio.svg?label=PyPI%20downloads&logo=python&logoColor=white" alt="PyPI downloads"> + </a> + <a href="https://pypi.org/project/torchio/"> + <img src="https://img.shields.io/pypi/v/torchio?label=PyPI%20version&logo=python&logoColor=white" alt="PyPI version"> + </a> + <a href="https://anaconda.org/conda-forge/torchio"> + <img src="https://img.shields.io/conda/v/conda-forge/torchio.svg?label=conda-forge&logo=conda-forge" alt="Conda version"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>CI</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/actions/workflows/tests.yml"> + <img src="https://github.com/fepegar/torchio/actions/workflows/tests.yml/badge.svg" alt="Tests status"> + </a> + <a href="https://torchio.rtfd.io/?badge=latest"> + <img src="https://img.shields.io/readthedocs/torchio?label=Docs&logo=Read%20the%20Docs" alt="Documentation status"> + </a> + <a href="https://codecov.io/github/fepegar/torchio"> + <img src="https://codecov.io/gh/fepegar/torchio/branch/main/graphs/badge.svg" alt="Coverage status"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Code</b> + </td> + <td align="center"> + <a href="https://scrutinizer-ci.com/g/fepegar/torchio/?branch=main"> + <img src="https://img.shields.io/scrutinizer/g/fepegar/torchio.svg?label=Code%20quality&logo=scrutinizer" alt="Code quality"> + </a> + <a href="https://codeclimate.com/github/fepegar/torchio/maintainability"> + <img src="https://api.codeclimate.com/v1/badges/518673e49a472dd5714d/maintainability" alt="Code maintainability"> + </a> + <a href="https://github.com/pre-commit/pre-commit"> + <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white" alt="pre-commit"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Tutorials</b> + </td> + <td align="center"> + <a href="https://github.com/fepegar/torchio/blob/main/tutorials/README.md"> + <img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"> + </a> + </td> + </tr> + <tr> + <td align="left"> + <b>Community</b> + </td> + <td align="center"> + <a href="https://join.slack.com/t/torchioworkspace/shared_invite/zt-exgpd5rm-BTpxg2MazwiiMDw7X9xMFg"> + <img src="https://img.shields.io/badge/TorchIO-Join%20on%20Slack-blueviolet?style=flat&logo=slack" alt="Slack"> + </a> + <a href="https://twitter.com/TorchIOLib"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIOLib.svg?style=social&label=Follow%20%40TorchIOLib" alt="Twitter"> + </a> + <a href="https://twitter.com/TorchIO_commits"> + <img src="https://img.shields.io/twitter/url/https/twitter.com/TorchIO_commits.svg?style=social&label=Follow%20%40TorchIO_commits" alt="Twitter"> + </a> + <a href="https://www.youtube.com/watch?v=UEUVSw5-M9M"> + <img src="https://img.shields.io/youtube/views/UEUVSw5-M9M?label=watch&style=social" alt="YouTube"> + </a> + </td> + </tr> + +%prep +%autosetup -n torchio-0.18.90 + +%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-torchio -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.18.90-1 +- Package Spec generated |
