2 # - at this time package do not build with dbus support
6 %bcond_with dbus # build with dbus support
8 Summary: Service daemon for mediating access to a GPS
9 Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em
15 Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
16 # Source0-md5: 03b57754091e4a34e27c78e1dc35c55e
17 Patch0: %{name}-ncurses.patch
18 URL: http://gpsd.berlios.de/
19 BuildRequires: XFree86-devel
20 BuildRequires: autoconf
21 BuildRequires: automake
23 BuildRequires: dbus-devel
24 BuildRequires: dbus-glib-devel
26 BuildRequires: ncurses-devel
27 BuildRequires: openmotif-devel
28 Requires: %{name}-libs = %{version}-%{release}
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _appdefsdir /usr/X11R6/lib/X11/app-defaults
34 gpsd is a service daemon that mediates access to a GPS sensor
35 connected to the host computer by serial or USB interface, making its
36 data on the location/course/velocity of the sensor available to be
37 queried on TCP port 2947 of the host computer. With gpsd, multiple GPS
38 client applications (such as navigational and wardriving software) can
39 share access to a GPS without contention or loss of data. Also, gpsd
40 responds to queries with a format that is substantially easier to
41 parse than NMEA 0183. A client library is provided for applications.
43 After installing this RPM, gpsd will automatically connect to USB
44 GPSes when they are plugged in and requires no configuration. For
45 serial GPSes, you will need to start gpsd by hand. Once connected, the
46 daemon automatically discovers the correct baudrate, stop bits, and
47 protocol. The daemon will be quiescent when there are no clients
48 asking for location information, and copes gracefully when the GPS is
49 unplugged and replugged.
51 %description -l pl.UTF-8
52 gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
53 połączonego z komputerem poprzez interfejs szeregowy lub USB,
54 udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
55 na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
56 klienckich GPS (takich jak oprogramowanie nawigacyjne) może
57 współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
58 na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
59 0183. Dostarczona jest biblioteka kliencka dla aplikacji.
61 Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
62 GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
63 uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
64 właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
65 spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
66 ponownym podłączaniem GPS-a.
69 Summary: GPS client library
70 Summary(pl.UTF-8): Biblioteka kliencka GPS
76 %description libs -l pl.UTF-8
77 Biblioteka kliencka GPS.
80 Summary: Client libraries in C and Python for talking to a running gpsd or GPS
81 Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
82 Group: Development/Libraries
83 Requires: %{name}-libs = %{version}-%{release}
86 This package provides C header files for the gpsd shared libraries
87 that manage access to a GPS for applications; also Python modules. You
88 will need to have gpsd installed for it to work.
90 %description devel -l pl.UTF-8
91 Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
92 gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
93 Pythona. Do działania bibliotek potrzebny jest gpsd.
96 Summary: Static GPS client library
97 Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Static GPS client library.
104 %description static -l pl.UTF-8
105 Statyczna biblioteka kliencka GPS.
108 Summary: Clients for gpsd with an X interface
109 Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X
110 Group: Applications/System
111 Requires: %{name}-libs = %{version}-%{release}
114 xgps is a simple test client for gpsd with an X interface. It displays
115 current GPS position/time/velocity information and (for GPSes that
116 support the feature) the locations of accessible satellites.
118 xgpsspeed is a speedometer that uses position information from the
119 GPS. It accepts an -h option and optional argument as for gps, or a -v
120 option to dump the package version and exit. Additionally, it accepts
121 -rv (reverse video) and -nc (needle color) options.
123 cgps resembles xgps, but without the pictorial satellite display. It
124 can run on a serial terminal or terminal emulator.
126 %description clients -l pl.UTF-8
127 xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
128 bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
129 przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
131 xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
132 Przyjmuje opcję -h i opcjonalnie argument taki jak gps lub opcję -v w
133 celu wyświetlenia wersji pakietu. Ponadto przyjmuje opcje -rv (reverse
134 video - odwrotny obraz) i -nc (needle color).
136 cgps jest podobny do xgps, ale bez rysunkowego przedstawiania
137 satelitów. Może działać na terminalu szeregowym lub emulatorze
150 %{?with_dbus:--enable-dbus}
153 %{__python} -c "import compiler;compiler.compileFile('gps.py')"
154 %{__python} -c "import compiler;compiler.compileFile('gpsfake.py')"
157 rm -rf $RPM_BUILD_ROOT
158 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/gpsd}
161 DESTDIR=$RPM_BUILD_ROOT
163 install gps.pyc gpsfake.pyc $RPM_BUILD_ROOT%{py_sitedir}
164 install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb
165 install xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps
166 install xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
167 install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
170 rm -rf $RPM_BUILD_ROOT
172 %post libs -p /sbin/ldconfig
173 %postun libs -p /sbin/ldconfig
176 %defattr(644,root,root,755)
177 %doc README INSTALL COPYING TODO AUTHORS HACKING
178 %attr(755,root,root) %{_sbindir}/gpsd
179 %attr(755,root,root) %{_bindir}/gpsprof
180 %attr(755,root,root) %{_bindir}/sirfmon
181 %{_mandir}/man8/gpsd.8*
182 %{_mandir}/man1/gpsprof.1*
183 %{_mandir}/man1/sirfmon.1*
184 %{_sysconfdir}/hotplug/usb/gpsd.hotplug
185 %{_sysconfdir}/hotplug/usb/gpsd.usermap
186 %{_datadir}/gpsd/dgpsip-servers
187 %{py_sitedir}/gps.pyc
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/libgps.so.*.*.*
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_bindir}/gpsfake
196 %attr(755,root,root) %{_bindir}/rtcmdecode
197 %attr(755,root,root) %{_bindir}/gpsflash
198 %attr(755,root,root) %{_libdir}/libgps.so
200 %{py_sitedir}/gpsfake.pyc
202 %{_includedir}/libgpsmm.h
203 %{_includedir}/gpsd.h
204 %{_mandir}/man1/gpsfake.1*
205 %{_mandir}/man1/rtcmdecode.1*
206 %{_mandir}/man1/gpsflash.1*
207 %{_mandir}/man3/libgps.3*
208 %{_mandir}/man3/libgpsmm.3*
209 %{_mandir}/man3/libgpsd.3*
210 %{_mandir}/man5/rtcm-104.5*
211 %{_mandir}/man5/srec.5*
214 %defattr(644,root,root,755)
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_bindir}/xgps
220 %attr(755,root,root) %{_bindir}/xgpsspeed
221 %attr(755,root,root) %{_bindir}/cgpxlogger
222 %attr(755,root,root) %{_bindir}/cgps
223 %attr(755,root,root) %{_bindir}/gpspipe
224 %{?with_dbus: %attr(755,root,root) %{_bindir}/gpxlogger}
225 %{_mandir}/man1/xgps.1*
226 %{_mandir}/man1/cgps.1*
227 %{_mandir}/man1/cgpxlogger.1*
228 %{_mandir}/man1/gps.1*
229 %{_mandir}/man1/xgpsspeed.1*
230 %{_mandir}/man1/gpspipe.1*
231 %{?with_dbus: %{_mandir}/man1/gpxlogger.1*}
233 %{_appdefsdir}/xgpsspeed