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): 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.
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): Biblioteka kliencka GPS
76 %description libs -l pl
77 Biblioteka kliencka GPS.
80 Summary: Client libraries in C and Python for talking to a running gpsd or GPS
81 Summary(pl): 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
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): Statyczna biblioteka kliencka GPS
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Static GPS client library.
104 %description static -l pl
105 Statyczna biblioteka kliencka GPS.
108 Summary: Clients for gpsd with an X interface
109 Summary(pl): 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
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