Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37735231
en ru br
ALT Linux repos
S:3.23.1-alt2
5.0: 2.37-alt1
4.1: 2.37-alt1

Group :: System/Servers
RPM: gpsd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: gpsd
Summary: Service daemon for mediating access to a GPS
Version: 2.37
Release: alt1
License: BSD
Group: System/Servers
URL: http://developer.berlios.de/projects/gpsd/

Packager: Anton V. Boyarshinov <boyarsh at altlinux.ru>

Source0: %{name}-%{version}.tar
BuildRequires: docbook-style-xsl gcc-c++ imake libdbus-glib-devel libncurses-devel libXaw-devel python-devel xorg-cf-files xsltproc lesstif-devel

%description
gpsd is a service daemon that mediates access to a GPS sensor
connected to the host computer by serial or USB interface, making its
data on the location/course/velocity of the sensor 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 a GPS without contention or loss of data.  Also,
gpsd responds to queries with a format that is substantially easier to
parse than NMEA 0183.  A client library is provided for applications.

After installing this RPM, gpsd will automatically connect to USB
GPSes when they are plugged in and requires no configuration.  For
serial GPSes, you will need to start gpsd by hand.  Once connected,
the daemon automatically discovers the correct baudrate, stop bits,
and protocol. The daemon will be quiescent when there are no
clients asking for location information, and copes gracefully when the
GPS is unplugged and replugged.

%package -n libgps
Summary: Client libraries in C and Python for talking to a running gpsd or GPS
Group: Sciences/Geosciences
Requires: gpsd
%description -n libgps
Client libraries in C and Python for talking to a running gpsd or GPS


%package -n libgps-devel
Summary: Development files for libgps
Group: Development/C
Requires: libgps = %{version}-%{release}

%description -n libgps-devel
Development files for libgps

%package -n gpsd-clients
Summary: Clients for gpsd with an X interface
Group: Sciences/Geosciences

%description -n gpsd-clients
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.
%prep
%setup -q

%build
%configure --enable-dbus

%make_build
%make xgps xgpsspeed

%install
%makeinstall
# additional gpsd files
mkdir -p "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/
cp xgps.ad "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/xgps
cp xgpsspeed.ad "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/xgpsspeed
mkdir -p "$RPM_BUILD_ROOT"%{_sysconfdir}/hotplug/usb
cp gpsd.hotplug gpsd.usermap "$RPM_BUILD_ROOT"%{_sysconfdir}/hotplug/usb/


%post -n gpsd
/sbin/ldconfig

%postun -n gpsd
/sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc README INSTALL COPYING
%attr(755, root, root) %{_sbindir}/gpsd
%attr(755, root, root) %{_bindir}/gpsctl
%attr(755, root, root) %{_bindir}/gpsprof
%attr(755, root, root) %{_bindir}/sirfmon
%{_mandir}/man8/gpsd.8*
%{_mandir}/man1/gpsprof.1*
%{_mandir}/man1/sirfmon.1*
%{_mandir}/man1/gpsctl.1*
%{_sysconfdir}/hotplug/usb/gpsd.hotplug
%{_sysconfdir}/hotplug/usb/gpsd.usermap


%files -n libgps
%{_libdir}/libgps*[0-9]
%{_libdir}/python*/site-packages/*


%files -n libgps-devel
%{_includedir}/libgpsmm.h
%{_includedir}/*.h
%{_mandir}/man3/libgps.3*
%{_mandir}/man3/libgpsmm.3*
%{_mandir}/man3/libgpsd.3*
%{_mandir}/man5/rtcm-104.5*
%{_mandir}/man5/srec.5*
%{_libdir}/pkgconfig/*
%{_libdir}/libgps.so

%files -n gpsd-clients
%{_mandir}/man1/gpscat.1*
%{_mandir}/man1/gpsfake.1*
%{_mandir}/man1/rtcmdecode.1*
%{_mandir}/man1/gpsflash.1*
%{_bindir}/gpscat
%{_bindir}/gpsfake
%{_bindir}/gpsflash
%{_bindir}/gpxlogger
%{_bindir}/rtcmdecode
%{_bindir}/xgps
%{_bindir}/xgpsspeed
%{_bindir}/cgps
%{_bindir}/gpspipe
%{_bindir}/cgpxlogger
%{_mandir}/man1/gps.1*
%{_mandir}/man1/cgps.1*
%{_mandir}/man1/cgpxlogger.1*
%{_mandir}/man1/xgps.1*
%{_mandir}/man1/xgpsspeed.1*
%{_mandir}/man1/gpspipe.1*
%{_libdir}/X11/app-defaults/xgps
%{_libdir}/X11/app-defaults/xgpsspeed

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin