Accepting request 28990 from Application:Geo

Copy from Application:Geo/gpsd based on submit request 28990 from user coolo

OBS-URL: https://build.opensuse.org/request/show/28990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpsd?expand=0&rev=10
This commit is contained in:
OBS User autobuild 2010-01-14 16:02:11 +00:00 committed by Git OBS Bridge
parent 7717cd0d45
commit 701eed6fa6
6 changed files with 126 additions and 66 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4995b15af14517d27545f0a604aecf6eff32bbc37d29f7e5140975885c76f714
size 542586

3
gpsd-2.90.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f5952352f891b37733dd6e0314e757bc9fc68f51a77047ca39ef58ae3fcc0c3
size 750200

View File

@ -1,28 +0,0 @@
--- libgpsd_core.c.orig 2007-12-13 15:00:33.000000000 +0000
+++ libgpsd_core.c 2007-12-13 15:06:54.000000000 +0000
@@ -404,7 +404,7 @@
#define ZEROIZE(x) (isnan(x)!=0 ? 0.0 : x)
ZEROIZE(session->gpsdata.fix.speed * MPS_TO_KNOTS),
ZEROIZE(session->gpsdata.fix.track),
-#undef ZEROIZE
+/*#undef ZEROIZE*/
tm.tm_mday,
tm.tm_mon,
tm.tm_year);
@@ -414,6 +414,7 @@
static void gpsd_binary_fix_dump(struct gps_device_t *session,
char bufp[], size_t len)
+
{
gpsd_position_fix_dump(session, bufp, len);
gpsd_transit_fix_dump(session, bufp + strlen(bufp), len - strlen(bufp));
@@ -514,7 +515,7 @@
ZEROIZE(session->gpsdata.epe * (CEP50_SIGMA/GPSD_CONFIDENCE)));
nmea_add_checksum(bufp);
}
-#undef ZEROIZE
+/*#undef ZEROIZE*/
}
static void gpsd_binary_dump(struct gps_device_t *session,

View File

@ -1,3 +1,37 @@
-------------------------------------------------------------------
Fri Dec 18 16:22:14 UTC 2009 - seife@opensuse.org
- fix udev warnings "SYSFS is deprecated"
-------------------------------------------------------------------
Tue Dec 8 16:51:54 UTC 2009 - jreuter@novell.com
- Fix libgps subpackage requirements
-------------------------------------------------------------------
Tue Dec 8 14:13:09 UTC 2009 - jreuter@novell.com
- Upgrade to gpsd-2.90, from the upstream change log:
- GPSD-NG, the new JSON-based command protocol, is now deployed
- Detection of end of a fix-reporting cycle is now reliable
- Abandone gpsflash subproject
- Increase major version of shared library due to significant API change
- Add new driver for Motorola Oncore receivers
- gpsfake can now accept multiple logfiles, interleaving test sentences
from each.
- gpsd now accepts error estimates from the NMEA $GPGBS sentence.
- Fix potential core dump in C client handling of "K" responses
- Introduce major and minor API version symbols into the public interfaces
- The sirfmon utility is gone, replaced by gpsmon
- Fix an old error in NMEA parsing
- cgpxlogger has been merged into gpxlogger.
- Speed-setting commands now allow parity and stop-bit setting
- tcmdecode becomes gpsdecode and can now de-armor and dump AIDVM packets
- The clientlibrary now works correctly in locales where the decimal
separator is not a period.
- Typo in sirfmon / gpsmon has been fixed silently by upstream (#bnc513037)
- Make libgps and python modules subpackages
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 9 12:43:26 CEST 2009 - coolo@novell.com Sun Aug 9 12:43:26 CEST 2009 - coolo@novell.com

114
gpsd.spec
View File

@ -1,7 +1,7 @@
# #
# spec file for package gpsd (Version 2.37) # spec file for package gpsd (Version 2.90)
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,11 +20,12 @@
Name: gpsd Name: gpsd
Summary: Service daemon for mediating access to a GPS Summary: Service daemon for mediating access to a GPS
License: BSD 3-clause (or similar) License: BSD3c(or similar)
Url: http://gpsd.berlios.de/ Url: http://gpsd.berlios.de/
Group: Hardware/Other Group: Hardware/Other
Version: 2.37 Version: 2.90
Release: 71 Release: 1
%define libgps libgps19
Requires: udev Requires: udev
PreReq: coreutils %fillup_prereq PreReq: coreutils %fillup_prereq
BuildRequires: gcc-c++ ncurses-devel openmotif openmotif-devel python-devel udev update-desktop-files xmlto BuildRequires: gcc-c++ ncurses-devel openmotif openmotif-devel python-devel udev update-desktop-files xmlto
@ -39,8 +40,11 @@ Source3: sysconfig.gpsd
Source4: gpsd.xpm Source4: gpsd.xpm
Source5: xgps.desktop Source5: xgps.desktop
Source6: xgpsspeed.desktop Source6: xgpsspeed.desktop
Patch: gpsd-undeffix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
%description %description
gpsd is a service daemon that mediates access to a GPS sensor connected gpsd is a service daemon that mediates access to a GPS sensor connected
@ -75,19 +79,64 @@ Authors:
Ville Nuorvala <vnuorval@tcs.hut.fi> Ville Nuorvala <vnuorval@tcs.hut.fi>
%package devel %package devel
License: BSD 3-clause (or similar) License: BSD3c(or similar)
Summary: Client libraries in C and Python for talking to a running gpsd or GPS Summary: Client libraries in C and Python for talking to a running gpsd or GPS
Group: Hardware/Other Group: Development/Libraries
Requires: %name = %version Requires: %name = %version
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
This package provides C header files for the gpsd shared libraries that This package provides C header files for the gpsd shared libraries that
manage access to a GPS for applications; also Python modules. You will manage access to a GPS for applications and debugging tools. You will
need to have gpsd installed for it to work. need to have gpsd installed for it to work.
Authors:
--------
Remco Treffkorn <remco@rvt.com>
Derrick J. Brashear <shadow@dementia.org>
Russ Nelson <nelson@crynwyr.com>
Eric S. Raymond <esr@thyrsus.com>
Gary E. Miller <gem@rellim.com>
Jeff Francis <jeff@gritch.org>
Amaury Jacquot <sxpert@esitcom.org>
Chris Kuethe <chris.kuethe@gmail.com>
Ville Nuorvala <vnuorval@tcs.hut.fi>
%package -n libgps19
License: BSD3c(or similar)
Summary: Shared library for GPS applications
Group: Development/Libraries/Python
%description -n %libgps
This package provides the shared library for gpsd and other GPS aware
applications
Authors:
--------
Remco Treffkorn <remco@rvt.com>
Derrick J. Brashear <shadow@dementia.org>
Russ Nelson <nelson@crynwyr.com>
Eric S. Raymond <esr@thyrsus.com>
Gary E. Miller <gem@rellim.com>
Jeff Francis <jeff@gritch.org>
Amaury Jacquot <sxpert@esitcom.org>
Chris Kuethe <chris.kuethe@gmail.com>
Ville Nuorvala <vnuorval@tcs.hut.fi>
%package -n python-gpsd
License: BSD3c(or similar)
Summary: Client libraries in C and Python for talking to a running gpsd or GPS
Group: Development/Libraries/Python
Requires: %name = %version
%{py_requires}
%description -n python-gpsd
This package provides python modules and tools for the gpsd shared
You will need to have gpsd installed for it to work.
Authors: Authors:
-------- --------
Remco Treffkorn <remco@rvt.com> Remco Treffkorn <remco@rvt.com>
@ -101,7 +150,7 @@ Authors:
Ville Nuorvala <vnuorval@tcs.hut.fi> Ville Nuorvala <vnuorval@tcs.hut.fi>
%package clients %package clients
License: BSD 3-clause (or similar) License: BSD3c(or similar)
Summary: Clients for gpsd with an X interface Summary: Clients for gpsd with an X interface
Group: Hardware/Other Group: Hardware/Other
@ -134,7 +183,6 @@ Authors:
%prep %prep
%setup -q %setup -q
%patch -p0
%build %build
%configure --disable-static \ %configure --disable-static \
@ -157,12 +205,12 @@ install -m 644 %{SOURCE3} %{buildroot}/var/adm/fillup-templates
install -m 644 gpsfake.py %{buildroot}%{python_sitelib} install -m 644 gpsfake.py %{buildroot}%{python_sitelib}
install -m 755 gps.py %{buildroot}%{python_sitelib} install -m 755 gps.py %{buildroot}%{python_sitelib}
# remove /usr/bin/env call # remove /usr/bin/env call
for i in gpscat gpsfake gpsprof; do
sed -i "s|/usr/bin/env python|/usr/bin/python|g" %{buildroot}%{_bindir}/$i
done
sed -i "s|/usr/bin/env python|/usr/bin/python|g" %{buildroot}%{python_sitelib}/gps.py sed -i "s|/usr/bin/env python|/usr/bin/python|g" %{buildroot}%{python_sitelib}/gps.py
# remove .la files # remove .la files
rm -f %{buildroot}%{_libdir}/libgps.la rm -f %{buildroot}%{_libdir}/libgps.la
strip %{buildroot}%{_bindir}/{cgps,gpsctl,gpsdecode,gpsmon,gpspipe,gpxlogger,lcdgps,xgps,xgpsspeed}
strip %{buildroot}%{_sbindir}/gpsd
strip %{buildroot}%{_libdir}/*so %{buildroot}%{python_sitelib}/*so
# install desktop entries # install desktop entries
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/applications/ install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/applications/
@ -178,62 +226,68 @@ install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/applications/
rm -rf %{buildroot} rm -rf %{buildroot}
%post %post
/sbin/ldconfig
%fillup_only -n gpsd %fillup_only -n gpsd
%postun -p /sbin/ldconfig %post -n %libgps -p /sbin/ldconfig
%postun -n %libgps -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README INSTALL COPYING gpsd.php %doc README INSTALL COPYING gpsd.php
%{_mandir}/man?/gpsd.* %{_mandir}/man?/gpsd.*
%{_mandir}/man?/gpsprof.*
%{_mandir}/man?/gpsctl.* %{_mandir}/man?/gpsctl.*
%{_mandir}/man?/sirfmon.*
/lib/udev/gpsd.sh /lib/udev/gpsd.sh
%config(noreplace) /etc/udev/rules.d/* %config(noreplace) /etc/udev/rules.d/*
%{_sbindir}/gpsd %{_sbindir}/gpsd
%{_bindir}/gpsctl %{_bindir}/gpsctl
%{_bindir}/gpsprof
%{_bindir}/sirfmon
%{_libdir}/libgps.so.*
%{python_sitelib}/gps.py*
/var/adm/fillup-templates/sysconfig.gpsd /var/adm/fillup-templates/sysconfig.gpsd
%files -n %libgps
%defattr(-,root,root)
%{_libdir}/libgps.so.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc README INSTALL COPYING TODO %doc README INSTALL COPYING TODO
%{_mandir}/man?/gpsfake.* %{_mandir}/man?/gpsfake.*
%{_mandir}/man?/gpscat.* %{_mandir}/man?/gpscat.*
%{_mandir}/man?/libgps*.* %{_mandir}/man?/libgps*.*
%{_mandir}/man?/rtcmdecode.*
%{_mandir}/man?/gpsflash.*
%{_mandir}/man?/rtcm-104.* %{_mandir}/man?/rtcm-104.*
%{_mandir}/man?/srec.* %{_mandir}/man?/srec.*
%{_mandir}/man?/gpsdecode.*
%{_mandir}/man?/gpsprof.*
%{_bindir}/gpsfake %{_bindir}/gpsfake
%{_bindir}/rtcmdecode
%{_bindir}/gpsflash
%{_bindir}/gpscat %{_bindir}/gpscat
%{_bindir}/gpsdecode
%{_bindir}/gpsprof
%{_includedir}/gps.h %{_includedir}/gps.h
%{_includedir}/libgpsmm.h %{_includedir}/libgpsmm.h
%{_includedir}/gpsd.h %{_includedir}/gpsd.h
%{python_sitelib}/gpsfake.py*
%{python_sitelib}/gpspacket.so*
%{_libdir}/libgps.so %{_libdir}/libgps.so
%{_libdir}/pkgconfig/libgps*.pc %{_libdir}/pkgconfig/libgps*.pc
%files -n python-gpsd
%defattr(-,root,root)
%{python_sitelib}/gps*.py*
%{python_sitelib}/gpslib.so
%{python_sitelib}/gpspacket.so*
%files clients %files clients
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man?/gps.* %{_mandir}/man?/gps.*
%{_mandir}/man?/cgps.* %{_mandir}/man?/cgps.*
%{_mandir}/man?/lcdgps.1.gz
%{_mandir}/man?/xgps.* %{_mandir}/man?/xgps.*
%{_mandir}/man?/xgpsspeed.* %{_mandir}/man?/xgpsspeed.*
%{_mandir}/man?/gpspipe.* %{_mandir}/man?/gpspipe.*
%{_mandir}/man?/gpsmon.*
%{_mandir}/man?/cgpxlogger.* %{_mandir}/man?/cgpxlogger.*
%{_bindir}/xgps %{_bindir}/xgps
%{_bindir}/xgpsspeed %{_bindir}/xgpsspeed
%{_bindir}/cgps %{_bindir}/cgps
%{_bindir}/cgpxlogger %{_bindir}/lcdgps
%{_bindir}/gpsmon
%{_bindir}/gpspipe %{_bindir}/gpspipe
%if 0%{?suse_version} > 1020 %if 0%{?suse_version} > 1020
%{_bindir}/gpxlogger %{_bindir}/gpxlogger

View File

@ -7,14 +7,14 @@ LABEL="gpsd_add"
ACTION != "add", GOTO="gpsd_end" ACTION != "add", GOTO="gpsd_end"
# "Prolific Technology 2303 (commonly in tandem with SiRF chips)" # "Prolific Technology 2303 (commonly in tandem with SiRF chips)"
KERNEL=="ttyUSB*", SYSFS{idVendor}=="067b", SYSFS{idProduct}=="2303", RUN="/lib/udev/gpsd.sh" KERNEL=="ttyUSB*", ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", RUN="/lib/udev/gpsd.sh"
# "FTDI 8U232AM" # "FTDI 8U232AM"
KERNEL=="ttyUSB*", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", RUN="/lib/udev/gpsd.sh" KERNEL=="ttyUSB*", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", RUN="/lib/udev/gpsd.sh"
# "Cypress M8/CY7C64013 (DeLorme uses these)" # "Cypress M8/CY7C64013 (DeLorme uses these)"
KERNEL=="ttyUSB*", SYSFS{idVendor}=="1163", SYSFS{idProduct}=="0100", RUN="/lib/udev/gpsd.sh" KERNEL=="ttyUSB*", ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", RUN="/lib/udev/gpsd.sh"
# "PS-360 OEM (Microsoft GPS sold with Street and Trips 2005)" # "PS-360 OEM (Microsoft GPS sold with Street and Trips 2005)"
KERNEL=="ttyUSB*", SYSFS{idVendor}=="067b", SYSFS{idProduct}=="aaa0", RUN="/lib/udev/gpsd.sh" KERNEL=="ttyUSB*", ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", RUN="/lib/udev/gpsd.sh"
# SiRF Star III 20ch Gmouse GPS (a.k.a Cygnal Integrated Products, Inc.) # SiRF Star III 20ch Gmouse GPS (a.k.a Cygnal Integrated Products, Inc.)
KERNEL=="ttyUSB*", SYSFS{idVendor}=="10c4", SYSFS{idProduct}=="ea60", RUN="/lib/udev/gpsd.sh" KERNEL=="ttyUSB*", ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", RUN="/lib/udev/gpsd.sh"
LABEL="gpsd_end" LABEL="gpsd_end"