summaryrefslogtreecommitdiff
path: root/python-omas.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-omas.spec')
-rw-r--r--python-omas.spec96
1 files changed, 96 insertions, 0 deletions
diff --git a/python-omas.spec b/python-omas.spec
new file mode 100644
index 0000000..f82af97
--- /dev/null
+++ b/python-omas.spec
@@ -0,0 +1,96 @@
+%global _empty_manifest_terminate_build 0
+Name: python-omas
+Version: 0.91.0
+Release: 1
+Summary: Ordered Multidimensional Array Structures
+License: MIT
+URL: https://gafusion.github.io/omas
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/25/2e/5d0cab1e5fe3897f43fe49f59a81312e1aa0dd6acec0cffdeab0028addb0/omas-0.91.0.tar.gz
+BuildArch: noarch
+
+
+%description
+OMAS is a Python library designed to simplify the interface of third-party codes with the `ITER <http://iter.org>`_ Integrated Modeling and Analysis Suite (`IMAS <https://confluence.iter.org/display/IMP>`_).
+
+* It provides a **convenient Python API**
+
+* capable of storing data with **different file/database formats**
+
+* in a form that is **always compatible with the IMAS data model**
+
+Mapping the physics codes I/O to the IMAS data model is done in third party Python codes such as the `OMFIT framework <https://omfit.io>`_.
+
+%package -n python3-omas
+Summary: Ordered Multidimensional Array Structures
+Provides: python-omas
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-omas
+OMAS is a Python library designed to simplify the interface of third-party codes with the `ITER <http://iter.org>`_ Integrated Modeling and Analysis Suite (`IMAS <https://confluence.iter.org/display/IMP>`_).
+
+* It provides a **convenient Python API**
+
+* capable of storing data with **different file/database formats**
+
+* in a form that is **always compatible with the IMAS data model**
+
+Mapping the physics codes I/O to the IMAS data model is done in third party Python codes such as the `OMFIT framework <https://omfit.io>`_.
+
+%package help
+Summary: Development documents and examples for omas
+Provides: python3-omas-doc
+%description help
+OMAS is a Python library designed to simplify the interface of third-party codes with the `ITER <http://iter.org>`_ Integrated Modeling and Analysis Suite (`IMAS <https://confluence.iter.org/display/IMP>`_).
+
+* It provides a **convenient Python API**
+
+* capable of storing data with **different file/database formats**
+
+* in a form that is **always compatible with the IMAS data model**
+
+Mapping the physics codes I/O to the IMAS data model is done in third party Python codes such as the `OMFIT framework <https://omfit.io>`_.
+
+%prep
+%autosetup -n omas-0.91.0
+
+%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-omas -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.91.0-1
+- Package Spec generated