diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 07:06:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 07:06:00 +0000 |
commit | 185b6b841a1bf041bbec887cae1af8a6283b7c4a (patch) | |
tree | 1f1b54ce28f7ec888c8766df6b67c006c604866b /python-moirai.spec | |
parent | 4e541ba88049ddef6bf75cc234b0e2b518ff1ba8 (diff) |
automatic import of python-moiraiopeneuler20.03
Diffstat (limited to 'python-moirai.spec')
-rw-r--r-- | python-moirai.spec | 267 |
1 files changed, 267 insertions, 0 deletions
diff --git a/python-moirai.spec b/python-moirai.spec new file mode 100644 index 0000000..b15af1c --- /dev/null +++ b/python-moirai.spec @@ -0,0 +1,267 @@ +%global _empty_manifest_terminate_build 0 +Name: python-moirai +Version: 1.3.28 +Release: 1 +Summary: Digital Control Manager Backend +License: MIT +URL: https://github.com/acristoffers/moirai +Source0: https://mirrors.aliyun.com/pypi/web/packages/a8/d3/82313035e8749987d87004e5f49d8cffc7b19f19dc9560db19e3ecadee6c/moirai-1.3.28.tar.gz +BuildArch: noarch + +Requires: python3-ahio +Requires: python3-cheroot +Requires: python3-dateutil +Requires: python3-pymongo +Requires: python3-numpy +Requires: python3-appdirs +Requires: python3-Flask +Requires: python3-scipy +Requires: python3-mysql-connector + +%description +# moirai + +Moirai is the backend for the platform. It is developed as part of my scientific +initiation project, named Plataformas de baixo custo para controle de processos +(low-cost platform for process control), developed at CEFET-MG (Brazil) under +the supervision of Prof. Dr. Valter Leite. The project was developed through a +FAPEMIG scholaship. + +It's meant to be installed in a computer near the plant, so it can be +remote-controlled by [Lachesis](https://github.com/acristoffers/Lachesis). It +exposes a RESTful API that let's you configure the hardware, save tests and +controllers, execute them and fetch the results in real-time or after the +execution finishes. + +Controllers for this platform are written in Python 3 and can use any librarie +available in the computer where _moirai_ is running. It already depends on NumPy +and SciPy, as they are commonly used. This platform manages the hardware +interfacing through the [ahio](https://github.com/acristoffers/ahio) libray, so +extending it's hardware capabilities is a question of extending AHIO, which +should be simple. Execution time, sampling time, input querying and output +updating is managed by the application and let's you focus on your +controller/model. + +## Installation + +Use pip to install. This is a Python 3 application and won't run in Python 2. +Use `pip install moirai` or `pip3 install moirai` to install it. It also has +other dependencies not installable through pip, which can be installed by +running `moirai --install --sudo`. It will install MongoDB (or MySQL on +Raspberry Pi) and the Snap7 library. It's designed to work on Windows, macOS +(with Homebrew) and Linux (apt-get, dnf, yum and zypper). + +If using the Snap7 driver on Windows, you may need to compile the driver +yourself and copy it to /Windows/System32. + +On macOS, using Homebrew, you can install with: + +```bash +brew tap acristoffers/repo +brew install moirai +``` + +## License + +Copyright (c) 2016 Álan Crístoffer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +%package -n python3-moirai +Summary: Digital Control Manager Backend +Provides: python-moirai +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-moirai +# moirai + +Moirai is the backend for the platform. It is developed as part of my scientific +initiation project, named Plataformas de baixo custo para controle de processos +(low-cost platform for process control), developed at CEFET-MG (Brazil) under +the supervision of Prof. Dr. Valter Leite. The project was developed through a +FAPEMIG scholaship. + +It's meant to be installed in a computer near the plant, so it can be +remote-controlled by [Lachesis](https://github.com/acristoffers/Lachesis). It +exposes a RESTful API that let's you configure the hardware, save tests and +controllers, execute them and fetch the results in real-time or after the +execution finishes. + +Controllers for this platform are written in Python 3 and can use any librarie +available in the computer where _moirai_ is running. It already depends on NumPy +and SciPy, as they are commonly used. This platform manages the hardware +interfacing through the [ahio](https://github.com/acristoffers/ahio) libray, so +extending it's hardware capabilities is a question of extending AHIO, which +should be simple. Execution time, sampling time, input querying and output +updating is managed by the application and let's you focus on your +controller/model. + +## Installation + +Use pip to install. This is a Python 3 application and won't run in Python 2. +Use `pip install moirai` or `pip3 install moirai` to install it. It also has +other dependencies not installable through pip, which can be installed by +running `moirai --install --sudo`. It will install MongoDB (or MySQL on +Raspberry Pi) and the Snap7 library. It's designed to work on Windows, macOS +(with Homebrew) and Linux (apt-get, dnf, yum and zypper). + +If using the Snap7 driver on Windows, you may need to compile the driver +yourself and copy it to /Windows/System32. + +On macOS, using Homebrew, you can install with: + +```bash +brew tap acristoffers/repo +brew install moirai +``` + +## License + +Copyright (c) 2016 Álan Crístoffer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +%package help +Summary: Development documents and examples for moirai +Provides: python3-moirai-doc +%description help +# moirai + +Moirai is the backend for the platform. It is developed as part of my scientific +initiation project, named Plataformas de baixo custo para controle de processos +(low-cost platform for process control), developed at CEFET-MG (Brazil) under +the supervision of Prof. Dr. Valter Leite. The project was developed through a +FAPEMIG scholaship. + +It's meant to be installed in a computer near the plant, so it can be +remote-controlled by [Lachesis](https://github.com/acristoffers/Lachesis). It +exposes a RESTful API that let's you configure the hardware, save tests and +controllers, execute them and fetch the results in real-time or after the +execution finishes. + +Controllers for this platform are written in Python 3 and can use any librarie +available in the computer where _moirai_ is running. It already depends on NumPy +and SciPy, as they are commonly used. This platform manages the hardware +interfacing through the [ahio](https://github.com/acristoffers/ahio) libray, so +extending it's hardware capabilities is a question of extending AHIO, which +should be simple. Execution time, sampling time, input querying and output +updating is managed by the application and let's you focus on your +controller/model. + +## Installation + +Use pip to install. This is a Python 3 application and won't run in Python 2. +Use `pip install moirai` or `pip3 install moirai` to install it. It also has +other dependencies not installable through pip, which can be installed by +running `moirai --install --sudo`. It will install MongoDB (or MySQL on +Raspberry Pi) and the Snap7 library. It's designed to work on Windows, macOS +(with Homebrew) and Linux (apt-get, dnf, yum and zypper). + +If using the Snap7 driver on Windows, you may need to compile the driver +yourself and copy it to /Windows/System32. + +On macOS, using Homebrew, you can install with: + +```bash +brew tap acristoffers/repo +brew install moirai +``` + +## License + +Copyright (c) 2016 Álan Crístoffer + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +%prep +%autosetup -n moirai-1.3.28 + +%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-moirai -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.28-1 +- Package Spec generated |