%global _empty_manifest_terminate_build 0 Name: python-mrcfile Version: 1.4.3 Release: 1 Summary: MRC file I/O library License: BSD URL: https://github.com/ccpem/mrcfile Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d0/c4/c57a190aa4f1a93d6d22654f0644e184beec8f0f41ce708a6e50b1e56bcd/mrcfile-1.4.3.tar.gz BuildArch: noarch Requires: python3-numpy %description |build-status| |readthedocs| |python-versions| |pypi-version| |conda-forge-version| ``mrcfile`` is a Python implementation of the `MRC2014 file format`_, which is used in structural biology to store image and volume data. It allows MRC files to be created and opened easily using a very simple API, which exposes the file's header and data as `numpy`_ arrays. The code runs in Python 2 and 3 and is fully unit-tested. This library aims to allow users and developers to read and write standard-compliant MRC files in Python as easily as possible, and with no dependencies on any compiled libraries except `numpy`_. You can use it interactively to inspect files, correct headers and so on, or in scripts and larger software packages to provide basic MRC file I/O functions. %package -n python3-mrcfile Summary: MRC file I/O library Provides: python-mrcfile BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-mrcfile |build-status| |readthedocs| |python-versions| |pypi-version| |conda-forge-version| ``mrcfile`` is a Python implementation of the `MRC2014 file format`_, which is used in structural biology to store image and volume data. It allows MRC files to be created and opened easily using a very simple API, which exposes the file's header and data as `numpy`_ arrays. The code runs in Python 2 and 3 and is fully unit-tested. This library aims to allow users and developers to read and write standard-compliant MRC files in Python as easily as possible, and with no dependencies on any compiled libraries except `numpy`_. You can use it interactively to inspect files, correct headers and so on, or in scripts and larger software packages to provide basic MRC file I/O functions. %package help Summary: Development documents and examples for mrcfile Provides: python3-mrcfile-doc %description help |build-status| |readthedocs| |python-versions| |pypi-version| |conda-forge-version| ``mrcfile`` is a Python implementation of the `MRC2014 file format`_, which is used in structural biology to store image and volume data. It allows MRC files to be created and opened easily using a very simple API, which exposes the file's header and data as `numpy`_ arrays. The code runs in Python 2 and 3 and is fully unit-tested. This library aims to allow users and developers to read and write standard-compliant MRC files in Python as easily as possible, and with no dependencies on any compiled libraries except `numpy`_. You can use it interactively to inspect files, correct headers and so on, or in scripts and larger software packages to provide basic MRC file I/O functions. %prep %autosetup -n mrcfile-1.4.3 %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-mrcfile -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 1.4.3-1 - Package Spec generated