SHA256
1
0
forked from pool/gpsd

Accepting request 843584 from home:adkorte

- Update to version 3.21
  * Create python programs from .in files to allow macro substitution.
  * Finally clean .sconsign*.dblite with "scons -c"
  * Remove revision.h.  Move REVISION into gpsd_config.h
  * Change asciidoc to asciidoctor, and revise documents to match.
  * library version bumped to 27
  * Add leap_seconds to gps_data_t
  * Add/change many rtcm2 structs in gps.h
  * Add/change many rtcm3 structs in gps.h
  * Maindenhead now 8 chars.
  * Add icondir and sharedir install options
  * Install basic doc in sharedir
  * Move gps_data_t->status to gps_fix_t.status for better fix merging
  * The gps python module is now Pure Python + FFI.  FFI only for packet.py
  * User should manually delete any old packet*so.
  * Add wspeedt, wspeedr, wanglem, wanglet, wangler to  gps_fix_t
  * Add "-p CONFIG", "-p STATUS", "-t" and "-tt" options to ubxtool.
  * Add python_shebang option to scons config.
  * gpsrinex has long options and many new options.
  * Added long options to gpsd.
  * Remove unused FORCE_GLOBAL_ENABLE
  * Remove config option reconfigure, replace with -p, --passive runtime option.
  * Remove config option controlsend (RECONFIGURE_ENABLE)
  * Add config option rundir=XX.  Default set to /run, or /var/run as required.
  * Fixes for Python 2.6 up to 3.9.

OBS-URL: https://build.opensuse.org/request/show/843584
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=134
This commit is contained in:
Martin Pluskal 2020-10-23 17:40:06 +00:00 committed by Git OBS Bridge
parent 7af9494fb4
commit 400829d8e5
6 changed files with 52 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:172a7805068eacb815a3c5225436fcb0be46e7e49a5001a94034eac43df85e50
size 3600835

Binary file not shown.

3
gpsd-3.21.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65504c3af8d3b0cce3c07405b8815d7730d2d2be2da7d28d275f1a9c57c6fe91
size 3984157

BIN
gpsd-3.21.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,32 @@
-------------------------------------------------------------------
Thu Oct 22 19:47:01 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- Update to version 3.21
* Create python programs from .in files to allow macro substitution.
* Finally clean .sconsign*.dblite with "scons -c"
* Remove revision.h. Move REVISION into gpsd_config.h
* Change asciidoc to asciidoctor, and revise documents to match.
* library version bumped to 27
* Add leap_seconds to gps_data_t
* Add/change many rtcm2 structs in gps.h
* Add/change many rtcm3 structs in gps.h
* Maindenhead now 8 chars.
* Add icondir and sharedir install options
* Install basic doc in sharedir
* Move gps_data_t->status to gps_fix_t.status for better fix merging
* The gps python module is now Pure Python + FFI. FFI only for packet.py
* User should manually delete any old packet*so.
* Add wspeedt, wspeedr, wanglem, wanglet, wangler to gps_fix_t
* Add "-p CONFIG", "-p STATUS", "-t" and "-tt" options to ubxtool.
* Add python_shebang option to scons config.
* gpsrinex has long options and many new options.
* Added long options to gpsd.
* Remove unused FORCE_GLOBAL_ENABLE
* Remove config option reconfigure, replace with -p, --passive runtime option.
* Remove config option controlsend (RECONFIGURE_ENABLE)
* Add config option rundir=XX. Default set to /run, or /var/run as required.
* Fixes for Python 2.6 up to 3.9.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 17 16:18:26 UTC 2020 - Arjen de Korte <suse+build@de-korte.org> Fri Apr 17 16:18:26 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>

View File

@ -16,13 +16,13 @@
# #
%define sover 25 %define sover 27
%define libgps libgps%{sover} %define libgps libgps%{sover}
%define libQgps libQgpsmm%{sover} %define libQgps libQgpsmm%{sover}
%define _udevdir %(pkg-config --variable udevdir udev) %define _udevdir %(pkg-config --variable udevdir udev)
%bcond_without python2 %bcond_without python2
Name: gpsd Name: gpsd
Version: 3.20 Version: 3.21
Release: 0 Release: 0
Summary: Service daemon for mediating access to a GPS Summary: Service daemon for mediating access to a GPS
License: BSD-3-Clause License: BSD-3-Clause
@ -160,9 +160,11 @@ cgps resembles xgps, but without the pictorial satellite display. It
can run on a serial terminal or terminal emulator. can run on a serial terminal or terminal emulator.
%prep %prep
%if %{with python2}
mkdir -p %{name}-%{version}/python2 mkdir -p %{name}-%{version}/python2
mkdir -p %{name}-%{version}/python3
tar -xf %{SOURCE0} -C %{name}-%{version}/python2 tar -xf %{SOURCE0} -C %{name}-%{version}/python2
%endif
mkdir -p %{name}-%{version}/python3
tar -xf %{SOURCE0} -C %{name}-%{version}/python3 tar -xf %{SOURCE0} -C %{name}-%{version}/python3
cd %{name}-%{version} cd %{name}-%{version}
@ -175,12 +177,12 @@ sed -i 's|systemctl daemon-reload|true|' python*/%{name}-%{version}/SConstruct
# don't set RPATH # don't set RPATH
sed -i 's|env.Prepend.*RPATH.*|pass #\0|' python*/%{name}-%{version}/SConstruct sed -i 's|env.Prepend.*RPATH.*|pass #\0|' python*/%{name}-%{version}/SConstruct
# fix docdir path
sed -i 's|(\x27sharedir\x27), \"doc"|(\x27docdir\x27)|' python*/%{name}-%{version}/SConstruct
# fix gpsd path # fix gpsd path
sed -i 's|ExecStart=.*/gpsd|ExecStart=%{_sbindir}/gpsd|' python*/%{name}-%{version}/systemd/gpsd.service sed -i 's|ExecStart=.*/gpsd|ExecStart=%{_sbindir}/gpsd|' python*/%{name}-%{version}/systemd/gpsd.service
# fix socket path
sed -i 's|ListenStream=/var/run/gpsd.sock|ListenStream=/run/gpsd.sock|' python*/%{name}-%{version}/systemd/gpsd.socket
%build %build
# The SCons description does not handle CXXFLAGS correctly, pass C++ flags also in CFLAGS # The SCons description does not handle CXXFLAGS correctly, pass C++ flags also in CFLAGS
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
@ -211,7 +213,9 @@ for i in "${pyversions[@]}"; do
libdir=%{_libdir} \ libdir=%{_libdir} \
sbindir=%{_sbindir} \ sbindir=%{_sbindir} \
mandir=%{_mandir} \ mandir=%{_mandir} \
docdir=%{_docdir} \ docdir=%{_docdir}/%{name} \
icondir=%{_datadir}/icons/hicolor/128x128/apps \
python_shebang=%{_bindir}/${i} \
pkgconfigdir=%{_libdir}/pkgconfig \ pkgconfigdir=%{_libdir}/pkgconfig \
udevdir=$(dirname %{_udevrulesdir}) \ udevdir=$(dirname %{_udevrulesdir}) \
target_python=${i} \ target_python=${i} \
@ -219,8 +223,7 @@ for i in "${pyversions[@]}"; do
build build
# Fix python interpreter path. # Fix python interpreter path.
sed -e "s,#!%{_bindir}/\(python[23]\?\|env \+python[23]\?\),#!%{_bindir}/${i},g" -i \ sed -e "s,#!%{_bindir}/\(python[23]\?\|env \+python[23]\?\),#!%{_bindir}/${i},g" -i gps/*.py
gegps gpscat gpsfake xgps xgpsspeed gpsprof ubxtool zerk gps/*.py
popd popd
cnt=`expr $cnt + 1` cnt=`expr $cnt + 1`
@ -235,7 +238,7 @@ export CPPFLAGS="%{optflags}"
%if %{with python2} %if %{with python2}
pushd %{name}-%{version}/python2/%{name}-%{version} pushd %{name}-%{version}/python2/%{name}-%{version}
DESTDIR=%{buildroot} scons nostrip=True install DESTDIR=%{buildroot} scons nostrip=True install systemd_install
# Now delete all the installed files except the python2 files # Now delete all the installed files except the python2 files
find %{buildroot} \( -not -type d -a -not -path "*/python2.*/*" \) -delete find %{buildroot} \( -not -type d -a -not -path "*/python2.*/*" \) -delete
@ -244,7 +247,7 @@ popd
%endif %endif
pushd %{name}-%{version}/python3/%{name}-%{version} pushd %{name}-%{version}/python3/%{name}-%{version}
DESTDIR=%{buildroot} scons nostrip=True install DESTDIR=%{buildroot} scons nostrip=True install systemd_install
install -d -m 755 %{buildroot}%{_udevdir} install -d -m 755 %{buildroot}%{_udevdir}
install -d -m 755 %{buildroot}%{_udevdir}/rules.d install -d -m 755 %{buildroot}%{_udevdir}/rules.d
@ -254,7 +257,6 @@ install -m 644 %{SOURCE1} %{buildroot}%{_udevdir}/rules.d/51-gpsd.rules
install -m 755 %{SOURCE2} %{buildroot}%{_udevdir}/gpsd.sh install -m 755 %{SOURCE2} %{buildroot}%{_udevdir}/gpsd.sh
install -m 644 %{SOURCE3} %{buildroot}%{_fillupdir} install -m 644 %{SOURCE3} %{buildroot}%{_fillupdir}
# install desktop entries # install desktop entries
install -D -m 644 -t %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/ packaging/X11/gpsd-logo.png
install -D -m 644 -t %{buildroot}%{_datadir}/applications/ packaging/X11/xgps.desktop install -D -m 644 -t %{buildroot}%{_datadir}/applications/ packaging/X11/xgps.desktop
install -D -m 644 -t %{buildroot}%{_datadir}/applications/ packaging/X11/xgpsspeed.desktop install -D -m 644 -t %{buildroot}%{_datadir}/applications/ packaging/X11/xgpsspeed.desktop
install -D -m 644 systemd/gpsd.service %{buildroot}/%{_unitdir}/gpsd.service install -D -m 644 systemd/gpsd.service %{buildroot}/%{_unitdir}/gpsd.service
@ -292,6 +294,8 @@ sed -i -e 's#Icon=.*/\([^/]\+\)\(\..\+\)#Icon=\1#' %{buildroot}%{_datadir}/appli
%files %files
%license %{name}-%{version}/python3/%{name}-%{version}/COPYING %license %{name}-%{version}/python3/%{name}-%{version}/COPYING
%{_docdir}/%{name}
%exclude %{_docdir}/%{name}/{COPYING,build.adoc}
%{_mandir}/man?/gpsd.* %{_mandir}/man?/gpsd.*
%{_mandir}/man?/gpsdctl.* %{_mandir}/man?/gpsdctl.*
%{_mandir}/man?/gpsctl.* %{_mandir}/man?/gpsctl.*
@ -309,6 +313,7 @@ sed -i -e 's#Icon=.*/\([^/]\+\)\(\..\+\)#Icon=\1#' %{buildroot}%{_datadir}/appli
%files -n %{libgps} %files -n %{libgps}
%{_libdir}/libgps.so.* %{_libdir}/libgps.so.*
%{_libdir}/libgpsdpacket.so.*
%files -n %{libQgps} %files -n %{libQgps}
%{_libdir}/libQgpsmm.so.* %{_libdir}/libQgpsmm.so.*
@ -330,6 +335,7 @@ sed -i -e 's#Icon=.*/\([^/]\+\)\(\..\+\)#Icon=\1#' %{buildroot}%{_datadir}/appli
%{_includedir}/gps.h %{_includedir}/gps.h
%{_includedir}/libgpsmm.h %{_includedir}/libgpsmm.h
%{_libdir}/libgps.so %{_libdir}/libgps.so
%{_libdir}/libgpsdpacket.so
%{_libdir}/pkgconfig/libgps.pc %{_libdir}/pkgconfig/libgps.pc
%{_libdir}/libQgpsmm.so %{_libdir}/libQgpsmm.so
%{_libdir}/libQgpsmm.prl %{_libdir}/libQgpsmm.prl