Name: gpsd Version: 2.39 Release: 2mamba Summary: A service daemon that monitors one or more GPSes attached to a host computer Group: Graphical Desktop/Applications/Utilities Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://gpsd.berlios.de Source0: http://download.berlios.de/gpsd/gpsd-%{version}.tar.gz Source1: gpsd-logo.png Source2: gpsd.init Source3: gpsd.sysconfig Source4: gpsd.hotplug.wrapper Patch0: gpsd-2.38-pyexecdir.patch # 224 aclocal.m4 ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libglib-devel BuildRequires: libICE-devel BuildRequires: liblesstif-devel BuildRequires: libncurses-devel BuildRequires: libpython26-devel BuildRequires: libselinux-devel BuildRequires: libSM-devel BuildRequires: libstdc++6-devel BuildRequires: libX11-devel BuildRequires: libXau-devel BuildRequires: libXaw-devel BuildRequires: libxcb-devel BuildRequires: libXdmcp-devel BuildRequires: libXext-devel BuildRequires: libXft-devel BuildRequires: libXmu-devel BuildRequires: libXp-devel BuildRequires: libXpm-devel BuildRequires: libXrender-devel BuildRequires: libXt-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root #gpsd 2.39 #------------------------------------------ # Protocols # --------- #Ashtech : yes #Earthmate : yes #EverMore : yes #FV-18 : yes #Garmin : yes #Garmin Simple Text : no #iTrax : yes #NMEA : yes #NTRIP : yes #Navcom : yes #RTCM104V2 : yes #RTCM104V3 : yes #SiRF : yes #SuperStarII : yes #Trimble TSIP : yes #Tripmate : yes #True North : no #OceanServer : no #UBX : yes #GPSclock : yes #AIVDM support : yes #MKT-3301 : yes # Daemon Features # --------------- #NTP SHM : yes #NTP PPS : yes #PPS input on : DCD #Fixed port speed : no #Priv-drop user : nobody #Enable shared libraries : yes #Enable DBUS support : yes #Limited max clients : no #Limited max devices : no #Allow device reconfig : yes #Allow control send : yes #Squelch logging/hexdump : no # Client Features # --------------- #Build ncurses programs : yes #Enable X11 support : yes #Enable Python support : yes #------------------------------------------ %description gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer. With gpsd, multiple GPS client applications (such as navigational and wardriving software) can share access to GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd. Besides gpsd itself, the project provides auxiliary tools for diagnostic monitoring and profiling of GPSes and feeding GPS-aware applications specified track data for diagnostic purposes. The goal of the gpsd project is to create a solid layer of open-source infrastructure for programs running under Linux and other open-source Unixes that want to be location-sensitive. We aim for simple, robust interfaces, unfussy operation, and an easy learning curve for application developers. Applications that presently use gpsd include pyGPS, Kismet, GPSdrive, gpeGPS, position, roadmap, roadnav, navit, viking, and gaia. %package clients Summary: Clients for %{name} Group: Graphical Desktop/Applications/Other %description clients gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer. With gpsd, multiple GPS client applications (such as navigational and wardriving software) can share access to GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd. xgps is a simple test client for gpsd with an X interface. It displays current GPS position/time/velocity information and (for GPSes that support the feature) the locations of accessible satellites. xgpsspeed is a speedometer that uses position information from the GPS. It accepts an -h option and optional argument as for gps, or a -v option to dump the package version and exit. Additionally, it accepts -rv (reverse video) and -nc (needle color) options. cgps resembles xgps, but without the pictorial satellite display. It can run on a serial terminal or terminal emulator. %package devel Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer. With gpsd, multiple GPS client applications (such as navigational and wardriving software) can share access to GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd. This package contains libraries and header files need for development. %package static Summary: Static package for %{name} Group: Development/Libraries Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} %description static gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors available to be queried on TCP port 2947 of the host computer. With gpsd, multiple GPS client applications (such as navigational and wardriving software) can share access to GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd. This package contains static libraries need for development. %prep %setup -q %patch0 -p1 for p in $(find . -name "*.py"); do sed -i '1s|#!/usr/bin/python|#!%{__python26}|' $p sed -i '1s|#!/usr/bin/env python|#!%{__python26}|' $p sed -i '1s|#!python|#!%{__python26}|' $p sed -i '1s|#! /usr/bin/env python|#!%{__python26}|' $p done sed -i '1s|#!/usr/bin/env python|#!%{__python26}|' gpscat gpsfake gpsprof valgrind-audit sed -i '1s|#!/usr/bin/python|#!%{__python26}|' gpsd.hotplug striplog %build %configure\ --disable-rpath \ --enable-dbus \ PYTHON=%{__python26} %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall mkdir -p %{buildroot}%{_datadir}/gpsd install -pm 644 %{S:1} %{buildroot}%{_datadir}/gpsd/ # fix perms chmod +x %{buildroot}%{python26_sitearch}/gpspacket.so chmod +x %{buildroot}%{python26_sitearch}/gps.py mkdir -p %{buildroot}%{_datadir}/X11/app-defaults/ install -pm 644 xgps.ad %{buildroot}%{_datadir}/X11/app-defaults/xgps install -pm 644 xgpsspeed.ad %{buildroot}%{_datadir}/X11/app-defaults/xgpsspeed mkdir -p %{buildroot}%{_sysconfdir}/init.d install -pm 755 %{S:2} \ %{buildroot}%{_sysconfdir}/init.d/gpsd mkdir -p %{buildroot}%{_sysconfdir}/sysconfig install -pm 644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/gpsd mkdir -p %{buildroot}/lib/udev install -pm 755 %{S:4} %{buildroot}/lib/udev sed -i 's|/usr/bin/python|%{__python26}|' %{buildroot}/lib/udev/gpsd.hotplug.wrapper install -pm 755 gpsd.hotplug %{buildroot}/lib/udev mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d install -pm 644 gpsd.rules %{buildroot}%{_sysconfdir}/udev/rules.d/99-gpsd.rules mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/xgps.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=xgps GenericName=GPS information Comment=Display GPS information from a gpsd daemon Exec=%{_bindir}/xgps Icon=%{_datadir}/gpsd/gpsd-logo.png Terminal=false Type=Application Categories=System; EOF cat > %{buildroot}%{_datadir}/applications/xgpsspeed.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=xgpsspeed GenericName=GPS speedometer Comment=Display GPS speed from a gpsd daemon Exec=%{_bindir}/xgpsspeed Icon=%{_datadir}/gpsd/gpsd-logo.png Terminal=false Type=Application Categories=System; EOF cp -p %{buildroot}%{_mandir}/man1/cgpxlogger.1 %{buildroot}%{_mandir}/man1/gpxlogger.1 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post /sbin/ldconfig /sbin/chkconfig --add %{name} %preun if [ $1 = 0 ]; then /sbin/service %{name} stop > /dev/null 2>&1 || true /sbin/chkconfig --del %{name} fi %postun -p /sbin/ldconfig %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/init.d/gpsd %config(noreplace) %{_sysconfdir}/sysconfig/gpsd %config(noreplace) %{_sysconfdir}/udev/rules.d/99-gpsd.rules /lib/udev/gpsd.hotplug /lib/udev/gpsd.hotplug.wrapper %{_bindir}/gpsctl %{_bindir}/gpsmon %{_bindir}/gpsprof %{_sbindir}/gpsd %{_libdir}/libgps.so.* %{python26_sitearch}/gps* %{_mandir}/man1/gpsctl.1.gz %{_mandir}/man1/gpsmon.1.gz %{_mandir}/man1/gpsprof.1.gz %{_mandir}/man8/gpsd.8.gz %doc README INSTALL COPYING %files clients %defattr(-,root,root) %{_bindir}/cgps %{_bindir}/gpscat %{_bindir}/gpsdecode %{_bindir}/gpspipe %{_bindir}/gpxlogger %{_bindir}/lcdgps %{_bindir}/xgps %{_bindir}/xgpsspeed %{_datadir}/X11/app-defaults/xgps %{_datadir}/X11/app-defaults/xgpsspeed %{_datadir}/applications/*.desktop %dir %{_datadir}/gpsd %{_datadir}/gpsd/gpsd-logo.png %{_mandir}/man1/cgpxlogger.1.gz %{_mandir}/man1/gps.1.gz %{_mandir}/man1/gpsdecode.1.gz %{_mandir}/man1/gpspipe.1.gz %{_mandir}/man1/gpxlogger.1.gz %{_mandir}/man1/xgps.1.gz %{_mandir}/man1/xgpsspeed.1.gz %{_mandir}/man1/cgps.1.gz %{_mandir}/man1/gpscat.1.gz %files devel %defattr(-,root,root) %{_bindir}/gpsfake %{_bindir}/gpsflash %{_includedir}/*.h %{_libdir}/libgps.so %{_libdir}/pkgconfig/libgps.pc %{_libdir}/pkgconfig/libgpsd.pc %{_mandir}/man1/gpsfake.1.gz %{_mandir}/man1/gpsflash.1.gz %{_mandir}/man3/libgps.3.gz %{_mandir}/man3/libgpsmm.3.gz %{_mandir}/man3/libgpsd.3.gz %{_mandir}/man5/rtcm-104.5.gz %{_mandir}/man5/srec.5.gz %doc TODO %files static %defattr(-,root,root) %{_libdir}/libgps.a %{_libdir}/libgps.la %changelog * Sat Jun 26 2010 gil 2.39-2mamba - rebuilt with python2.6 support * Wed Apr 01 2009 gil 2.39-1mamba - update to 2.39 - added package static, clients (edit spec file) * Thu Mar 05 2009 Silvan Calarco 2.38-1mamba - automatic update by autodist * Wed Jan 07 2009 Silvan Calarco 2.37-1mamba - package created by autospec