# TODO # - at this time package do not build with dbus support # I do not need it ... # # Conditional build: %bcond_with dbus # build with dbus support # Summary: Service daemon for mediating access to a GPS Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em Name: gpsd Version: 2.33 Release: 1.1 License: BSD Group: Daemons Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz # Source0-md5: 03b57754091e4a34e27c78e1dc35c55e Patch0: %{name}-ncurses.patch URL: http://gpsd.berlios.de/ BuildRequires: XFree86-devel BuildRequires: autoconf BuildRequires: automake %if %{with dbus} BuildRequires: dbus-devel BuildRequires: dbus-glib-devel %endif BuildRequires: ncurses-devel BuildRequires: openmotif-devel Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _appdefsdir /usr/X11R6/lib/X11/app-defaults %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. %description -l pl.UTF-8 gpsd to demon usługi pośredniczącej w dostępie do sensora GPS połączonego z komputerem poprzez interfejs szeregowy lub USB, udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji klienckich GPS (takich jak oprogramowanie nawigacyjne) może współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA 0183. Dostarczona jest biblioteka kliencka dla aplikacji. Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i ponownym podłączaniem GPS-a. %package libs Summary: GPS client library Summary(pl.UTF-8): Biblioteka kliencka GPS Group: Libraries %description libs GPS client library. %description libs -l pl.UTF-8 Biblioteka kliencka GPS. %package devel Summary: Client libraries in C and Python for talking to a running gpsd or GPS Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel This package provides C header files for the gpsd shared libraries that manage access to a GPS for applications; also Python modules. You will need to have gpsd installed for it to work. %description devel -l pl.UTF-8 Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły Pythona. Do działania bibliotek potrzebny jest gpsd. %package static Summary: Static GPS client library Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Static GPS client library. %description static -l pl.UTF-8 Statyczna biblioteka kliencka GPS. %package clients Summary: Clients for gpsd with an X interface Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X Group: Applications/System Requires: %{name}-libs = %{version}-%{release} %description 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. %description clients -l pl.UTF-8 xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla bieżące informacje GPS o położeniu, czasie i prędkości oraz (w przypadku GPS-ów obsługujących to) położenia dostępnych satelitów. xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a. Przyjmuje opcję -h i opcjonalnie argument taki jak gps lub opcję -v w celu wyświetlenia wersji pakietu. Ponadto przyjmuje opcje -rv (reverse video - odwrotny obraz) i -nc (needle color). cgps jest podobny do xgps, ale bez rysunkowego przedstawiania satelitów. Może działać na terminalu szeregowym lub emulatorze terminala. %prep %setup -q %patch0 -p1 %build %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{?with_dbus:--enable-dbus} %{__make} %{__python} -c "import compiler;compiler.compileFile('gps.py')" %{__python} -c "import compiler;compiler.compileFile('gpsfake.py')" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/gpsd} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install gps.pyc gpsfake.pyc $RPM_BUILD_ROOT%{py_sitedir} install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb install xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps install xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers %clean rm -rf $RPM_BUILD_ROOT %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc README INSTALL COPYING TODO AUTHORS HACKING %attr(755,root,root) %{_sbindir}/gpsd %attr(755,root,root) %{_bindir}/gpsprof %attr(755,root,root) %{_bindir}/sirfmon %{_mandir}/man8/gpsd.8* %{_mandir}/man1/gpsprof.1* %{_mandir}/man1/sirfmon.1* %{_sysconfdir}/hotplug/usb/gpsd.hotplug %{_sysconfdir}/hotplug/usb/gpsd.usermap %{_datadir}/gpsd/dgpsip-servers %{py_sitedir}/gps.pyc %files libs %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libgps.so.*.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/gpsfake %attr(755,root,root) %{_bindir}/rtcmdecode %attr(755,root,root) %{_bindir}/gpsflash %attr(755,root,root) %{_libdir}/libgps.so %{_libdir}/libgps.la %{py_sitedir}/gpsfake.pyc %{_includedir}/gps.h %{_includedir}/libgpsmm.h %{_includedir}/gpsd.h %{_mandir}/man1/gpsfake.1* %{_mandir}/man1/rtcmdecode.1* %{_mandir}/man1/gpsflash.1* %{_mandir}/man3/libgps.3* %{_mandir}/man3/libgpsmm.3* %{_mandir}/man3/libgpsd.3* %{_mandir}/man5/rtcm-104.5* %{_mandir}/man5/srec.5* %files static %defattr(644,root,root,755) %{_libdir}/libgps.a %files clients %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/xgps %attr(755,root,root) %{_bindir}/xgpsspeed %attr(755,root,root) %{_bindir}/cgpxlogger %attr(755,root,root) %{_bindir}/cgps %attr(755,root,root) %{_bindir}/gpspipe %{?with_dbus: %attr(755,root,root) %{_bindir}/gpxlogger} %{_mandir}/man1/xgps.1* %{_mandir}/man1/cgps.1* %{_mandir}/man1/cgpxlogger.1* %{_mandir}/man1/gps.1* %{_mandir}/man1/xgpsspeed.1* %{_mandir}/man1/gpspipe.1* %{?with_dbus: %{_mandir}/man1/gpxlogger.1*} %{_appdefsdir}/xgps %{_appdefsdir}/xgpsspeed