diff options
Diffstat (limited to 'python-pyubx2.spec')
| -rw-r--r-- | python-pyubx2.spec | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/python-pyubx2.spec b/python-pyubx2.spec new file mode 100644 index 0000000..39779c6 --- /dev/null +++ b/python-pyubx2.spec @@ -0,0 +1,181 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyubx2 +Version: 1.2.24 +Release: 1 +Summary: UBX protocol parser and generator +License: BSD 3-Clause License ("BSD License 2.0", "Revised BSD License", "New BSD License", or "Modified BSD License") Copyright (c) 2020, SEMU Consulting All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +URL: https://pypi.org/project/pyubx2/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a4/29/a6aa88709c2166489bab743caaa8dbe2bdea857911e60db03eebae17c454/pyubx2-1.2.24.tar.gz +BuildArch: noarch + +Requires: python3-pynmeagps +Requires: python3-pyrtcm +Requires: python3-bandit +Requires: python3-black +Requires: python3-build +Requires: python3-pip +Requires: python3-pylint +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-setuptools +Requires: python3-Sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-wheel + +%description +[Current Status](#currentstatus) | +[Installation](#installation) | +[Message Categories](#msgcat) | +[Reading](#reading) | +[Parsing](#parsing) | +[Generating](#generating) | +[Serializing](#serializing) | +[Configuration Interface](#configinterface) | +[Utilities](#utilities) | +[Examples](#examples) | +[Extensibility](#extensibility) | +[Troubleshooting](#troubleshoot) | +[Command Line Utility](#cli) | +[Graphical Client](#gui) | +[Author & License](#author) +`pyubx2` is an original Python 3 parser for the UBX © protocol. UBX is a proprietary binary protocol implemented on u-blox ™ GNSS/GPS receiver modules. +`pyubx2` is also capable of parsing NMEA 0183 © and RTCM3 © GNSS/GPS messages via the following inbuilt companion libraries: +- [pynmeagps](http://github.com/semuconsulting/pynmeagps) +- [pyrtcm](http://github.com/semuconsulting/pyrtcm) +The `pyubx2` homepage is located at [https://github.com/semuconsulting/pyubx2](https://github.com/semuconsulting/pyubx2). +This is an independent project and we have no affiliation whatsoever with u-blox. +## <a name="currentstatus">Current Status</a> + + + + + + + + +At time of writing the library implements a comprehensive set of inbound (SET/POLL) and outbound (GET) messages for u-blox GPS/GNSS devices from generation 6 through generation 10 [(NEO-M6*, NEO-M7*, NEO-M8*, NEO-M9*, NEO-D9*, RCB-F9*, ZED-F9*, MAX-M10S, etc.)](https://www.u-blox.com/en/positioning-chips-and-modules), but is readily [extensible](#extensibility). Refer to `UBX_MSGIDS` in [ubxtypes_core.py](https://github.com/semuconsulting/pyubx2/blob/master/src/pyubx2/ubxtypes_core.py) for the complete dictionary of messages currently supported. UBX protocol information sourced from u-blox Interface Specifications © 2013-2021, u-blox AG. +Sphinx API Documentation in HTML format is available at [https://www.semuconsulting.com/pyubx2](https://www.semuconsulting.com/pyubx2). +Contributions welcome - please refer to [CONTRIBUTING.MD](https://github.com/semuconsulting/pyubx2/blob/master/CONTRIBUTING.md). + +%package -n python3-pyubx2 +Summary: UBX protocol parser and generator +Provides: python-pyubx2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyubx2 +[Current Status](#currentstatus) | +[Installation](#installation) | +[Message Categories](#msgcat) | +[Reading](#reading) | +[Parsing](#parsing) | +[Generating](#generating) | +[Serializing](#serializing) | +[Configuration Interface](#configinterface) | +[Utilities](#utilities) | +[Examples](#examples) | +[Extensibility](#extensibility) | +[Troubleshooting](#troubleshoot) | +[Command Line Utility](#cli) | +[Graphical Client](#gui) | +[Author & License](#author) +`pyubx2` is an original Python 3 parser for the UBX © protocol. UBX is a proprietary binary protocol implemented on u-blox ™ GNSS/GPS receiver modules. +`pyubx2` is also capable of parsing NMEA 0183 © and RTCM3 © GNSS/GPS messages via the following inbuilt companion libraries: +- [pynmeagps](http://github.com/semuconsulting/pynmeagps) +- [pyrtcm](http://github.com/semuconsulting/pyrtcm) +The `pyubx2` homepage is located at [https://github.com/semuconsulting/pyubx2](https://github.com/semuconsulting/pyubx2). +This is an independent project and we have no affiliation whatsoever with u-blox. +## <a name="currentstatus">Current Status</a> + + + + + + + + +At time of writing the library implements a comprehensive set of inbound (SET/POLL) and outbound (GET) messages for u-blox GPS/GNSS devices from generation 6 through generation 10 [(NEO-M6*, NEO-M7*, NEO-M8*, NEO-M9*, NEO-D9*, RCB-F9*, ZED-F9*, MAX-M10S, etc.)](https://www.u-blox.com/en/positioning-chips-and-modules), but is readily [extensible](#extensibility). Refer to `UBX_MSGIDS` in [ubxtypes_core.py](https://github.com/semuconsulting/pyubx2/blob/master/src/pyubx2/ubxtypes_core.py) for the complete dictionary of messages currently supported. UBX protocol information sourced from u-blox Interface Specifications © 2013-2021, u-blox AG. +Sphinx API Documentation in HTML format is available at [https://www.semuconsulting.com/pyubx2](https://www.semuconsulting.com/pyubx2). +Contributions welcome - please refer to [CONTRIBUTING.MD](https://github.com/semuconsulting/pyubx2/blob/master/CONTRIBUTING.md). + +%package help +Summary: Development documents and examples for pyubx2 +Provides: python3-pyubx2-doc +%description help +[Current Status](#currentstatus) | +[Installation](#installation) | +[Message Categories](#msgcat) | +[Reading](#reading) | +[Parsing](#parsing) | +[Generating](#generating) | +[Serializing](#serializing) | +[Configuration Interface](#configinterface) | +[Utilities](#utilities) | +[Examples](#examples) | +[Extensibility](#extensibility) | +[Troubleshooting](#troubleshoot) | +[Command Line Utility](#cli) | +[Graphical Client](#gui) | +[Author & License](#author) +`pyubx2` is an original Python 3 parser for the UBX © protocol. UBX is a proprietary binary protocol implemented on u-blox ™ GNSS/GPS receiver modules. +`pyubx2` is also capable of parsing NMEA 0183 © and RTCM3 © GNSS/GPS messages via the following inbuilt companion libraries: +- [pynmeagps](http://github.com/semuconsulting/pynmeagps) +- [pyrtcm](http://github.com/semuconsulting/pyrtcm) +The `pyubx2` homepage is located at [https://github.com/semuconsulting/pyubx2](https://github.com/semuconsulting/pyubx2). +This is an independent project and we have no affiliation whatsoever with u-blox. +## <a name="currentstatus">Current Status</a> + + + + + + + + +At time of writing the library implements a comprehensive set of inbound (SET/POLL) and outbound (GET) messages for u-blox GPS/GNSS devices from generation 6 through generation 10 [(NEO-M6*, NEO-M7*, NEO-M8*, NEO-M9*, NEO-D9*, RCB-F9*, ZED-F9*, MAX-M10S, etc.)](https://www.u-blox.com/en/positioning-chips-and-modules), but is readily [extensible](#extensibility). Refer to `UBX_MSGIDS` in [ubxtypes_core.py](https://github.com/semuconsulting/pyubx2/blob/master/src/pyubx2/ubxtypes_core.py) for the complete dictionary of messages currently supported. UBX protocol information sourced from u-blox Interface Specifications © 2013-2021, u-blox AG. +Sphinx API Documentation in HTML format is available at [https://www.semuconsulting.com/pyubx2](https://www.semuconsulting.com/pyubx2). +Contributions welcome - please refer to [CONTRIBUTING.MD](https://github.com/semuconsulting/pyubx2/blob/master/CONTRIBUTING.md). + +%prep +%autosetup -n pyubx2-1.2.24 + +%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-pyubx2 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.24-1 +- Package Spec generated |
