From ff7b4d2f5dccd1310cc55ad2af3d0f8dc62e3529 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 09:36:37 +0000 Subject: automatic import of python-omas --- .gitignore | 1 + python-omas.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 98 insertions(+) create mode 100644 python-omas.spec create mode 100644 sources 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 `_ Integrated Modeling and Analysis Suite (`IMAS `_). + +* 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 `_. + +%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 `_ Integrated Modeling and Analysis Suite (`IMAS `_). + +* 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 `_. + +%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 `_ Integrated Modeling and Analysis Suite (`IMAS `_). + +* 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 `_. + +%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 - 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 -- cgit v1.2.3