summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 09:36:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 09:36:37 +0000
commitff7b4d2f5dccd1310cc55ad2af3d0f8dc62e3529 (patch)
tree24ad132760a8630e9c04428ee25d0eb8a9fa188e
parent2bd88da2e9166675f2f4df134a54ecfa28763caa (diff)
automatic import of python-omas
-rw-r--r--.gitignore1
-rw-r--r--python-omas.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2821a86 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/omas-0.91.0.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..c60e111
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+082edb4258ec6562e5e24d2c23720e5d omas-0.91.0.tar.gz