diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:00:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:00:41 +0000 |
| commit | 2a9015808464f0b128bba03f0ff463bdbf19da9d (patch) | |
| tree | f7eaeb1351d0b1700af59d31380c098645d1407c | |
| parent | 00b67acafdc2b0d3e25d4103735587dcf1664942 (diff) | |
automatic import of python-mrcfile
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-mrcfile.spec | 103 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 105 insertions, 0 deletions
@@ -0,0 +1 @@ +/mrcfile-1.4.3.tar.gz diff --git a/python-mrcfile.spec b/python-mrcfile.spec new file mode 100644 index 0000000..6246dec --- /dev/null +++ b/python-mrcfile.spec @@ -0,0 +1,103 @@ +%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 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.4.3-1 +- Package Spec generated @@ -0,0 +1 @@ +43ba063a04cb75475eb0f62846b8f81c mrcfile-1.4.3.tar.gz |
