summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-swiftsimio.spec115
-rw-r--r--sources1
3 files changed, 117 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..81177cb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/swiftsimio-6.1.1.tar.gz
diff --git a/python-swiftsimio.spec b/python-swiftsimio.spec
new file mode 100644
index 0000000..1dad929
--- /dev/null
+++ b/python-swiftsimio.spec
@@ -0,0 +1,115 @@
+%global _empty_manifest_terminate_build 0
+Name: python-swiftsimio
+Version: 6.1.1
+Release: 1
+Summary: SWIFTsim (swift.dur.ac.uk) i/o routines for python.
+License: GNU Lesser General Public License v3 or later (LGPLv3+)
+URL: https://github.com/swiftsim/swiftsimio
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/11/4c/24beef119495195eb82f0cc5081a08a66a7278d2d6947e95a4d184b028ff/swiftsimio-6.1.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-unyt
+Requires: python3-h5py
+Requires: python3-numba
+
+%description
+![Build Status](https://github.com/swiftsim/swiftsimio/actions/workflows/pytest.yml/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/swiftsimio/badge/?version=latest)](https://swiftsimio.readthedocs.io/en/latest/?badge=latest)
+[![JOSS Status](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331/status.svg)](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331)
+The SWIFT astrophysical simulation code (http://swift.dur.ac.uk) is used
+widely. There exists many ways of reading the data from SWIFT, which outputs
+HDF5 files. These range from reading directly using `h5py` to using a complex
+system such as `yt`; however these either are unsatisfactory (e.g. a lack of
+unit information in reading HDF5), or too complex for most use-cases.
+`swiftsimio` provides an object-oriented API to read (dynamically) data
+from SWIFT.
+Full documentation is available at [ReadTheDocs](http://swiftsimio.readthedocs.org).
+Getting set up with `swiftsimio` is easy; it (by design) has very few
+requirements. There are a number of optional packages that you can install
+to make the experience better and these are recommended.
+
+%package -n python3-swiftsimio
+Summary: SWIFTsim (swift.dur.ac.uk) i/o routines for python.
+Provides: python-swiftsimio
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-swiftsimio
+![Build Status](https://github.com/swiftsim/swiftsimio/actions/workflows/pytest.yml/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/swiftsimio/badge/?version=latest)](https://swiftsimio.readthedocs.io/en/latest/?badge=latest)
+[![JOSS Status](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331/status.svg)](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331)
+The SWIFT astrophysical simulation code (http://swift.dur.ac.uk) is used
+widely. There exists many ways of reading the data from SWIFT, which outputs
+HDF5 files. These range from reading directly using `h5py` to using a complex
+system such as `yt`; however these either are unsatisfactory (e.g. a lack of
+unit information in reading HDF5), or too complex for most use-cases.
+`swiftsimio` provides an object-oriented API to read (dynamically) data
+from SWIFT.
+Full documentation is available at [ReadTheDocs](http://swiftsimio.readthedocs.org).
+Getting set up with `swiftsimio` is easy; it (by design) has very few
+requirements. There are a number of optional packages that you can install
+to make the experience better and these are recommended.
+
+%package help
+Summary: Development documents and examples for swiftsimio
+Provides: python3-swiftsimio-doc
+%description help
+![Build Status](https://github.com/swiftsim/swiftsimio/actions/workflows/pytest.yml/badge.svg)
+[![Documentation Status](https://readthedocs.org/projects/swiftsimio/badge/?version=latest)](https://swiftsimio.readthedocs.io/en/latest/?badge=latest)
+[![JOSS Status](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331/status.svg)](https://joss.theoj.org/papers/e85c85f49b99389d98f9b6d81f090331)
+The SWIFT astrophysical simulation code (http://swift.dur.ac.uk) is used
+widely. There exists many ways of reading the data from SWIFT, which outputs
+HDF5 files. These range from reading directly using `h5py` to using a complex
+system such as `yt`; however these either are unsatisfactory (e.g. a lack of
+unit information in reading HDF5), or too complex for most use-cases.
+`swiftsimio` provides an object-oriented API to read (dynamically) data
+from SWIFT.
+Full documentation is available at [ReadTheDocs](http://swiftsimio.readthedocs.org).
+Getting set up with `swiftsimio` is easy; it (by design) has very few
+requirements. There are a number of optional packages that you can install
+to make the experience better and these are recommended.
+
+%prep
+%autosetup -n swiftsimio-6.1.1
+
+%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-swiftsimio -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 6.1.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..63bb5c6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+70a27f75d5d926f8ca2d301d6ffd965e swiftsimio-6.1.1.tar.gz