6 %bcond_without dbus # build without dbus support
7 %bcond_without x # build without X Window System support
9 Summary: Service daemon for mediating access to a GPS
10 Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em
16 Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
17 # Source0-md5: ce70bcd707ac1df861d4c72f503c09d1
18 URL: http://gpsd.berlios.de/
20 BuildRequires: dbus-devel
21 BuildRequires: dbus-glib-devel
23 BuildRequires: docbook-dtd412-xml
24 BuildRequires: docbook-style-xsl
25 BuildRequires: libstdc++-devel
26 BuildRequires: libxslt-progs
27 BuildRequires: ncurses-devel
28 %{?with_x:BuildRequires: openmotif-devel}
29 BuildRequires: pkgconfig
30 BuildRequires: python-devel
31 BuildRequires: rpm-pythonprov
33 %{?with_x:BuildRequires: xorg-lib-libXaw-devel}
34 Requires: %{name}-libs = %{version}-%{release}
35 Requires: udev-core >= 1:127
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define _appdefsdir /usr/share/X11/app-defaults
39 %define udevdir /lib/udev
42 gpsd is a service daemon that mediates access to a GPS sensor
43 connected to the host computer by serial or USB interface, making its
44 data on the location/course/velocity of the sensor available to be
45 queried on TCP port 2947 of the host computer. With gpsd, multiple GPS
46 client applications (such as navigational and wardriving software) can
47 share access to a GPS without contention or loss of data. Also, gpsd
48 responds to queries with a format that is substantially easier to
49 parse than NMEA 0183. A client library is provided for applications.
51 After installing this RPM, gpsd will automatically connect to USB
52 GPSes when they are plugged in and requires no configuration. For
53 serial GPSes, you will need to start gpsd by hand. Once connected, the
54 daemon automatically discovers the correct baudrate, stop bits, and
55 protocol. The daemon will be quiescent when there are no clients
56 asking for location information, and copes gracefully when the GPS is
57 unplugged and replugged.
59 %description -l pl.UTF-8
60 gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
61 połączonego z komputerem poprzez interfejs szeregowy lub USB,
62 udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
63 na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
64 klienckich GPS (takich jak oprogramowanie nawigacyjne) może
65 współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
66 na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
67 0183. Dostarczona jest biblioteka kliencka dla aplikacji.
69 Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
70 GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
71 uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
72 właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
73 spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
74 ponownym podłączaniem GPS-a.
77 Summary: GPSd client library
78 Summary(pl.UTF-8): Biblioteka kliencka GPSd
84 %description libs -l pl.UTF-8
85 Biblioteka kliencka GPSd.
88 Summary: Client libraries in C and Python for talking to a running gpsd or GPS
89 Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
90 Group: Development/Libraries
91 Requires: %{name}-libs = %{version}-%{release}
94 This package provides C header files for the gpsd shared libraries
95 that manage access to a GPS for applications; also Python modules. You
96 will need to have gpsd installed for it to work.
98 %description devel -l pl.UTF-8
99 Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
100 gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
101 Pythona. Do działania bibliotek potrzebny jest gpsd.
104 Summary: Static GPS client library
105 Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS
106 Group: Development/Libraries
107 Requires: %{name}-devel = %{version}-%{release}
110 Static GPS client library.
112 %description static -l pl.UTF-8
113 Statyczna biblioteka kliencka GPS.
115 %package -n python-gps
116 Summary: Python GPSd client library
117 Summary(pl.UTF-8): Biblioteka kliencka GPSd dla Pythona
118 Group: Libraries/Python
119 Requires: %{name}-libs = %{version}-%{release}
121 %description -n python-gps
122 GPSd client library for Python.
124 %description -n python-gps -l pl.UTF-8
125 Biblioteka kliencka GPSd dla Pythona.
128 Summary: Clients for gpsd
129 Summary(pl.UTF-8): Aplikacje klienckie dla gpsd
130 Group: Applications/System
131 Requires: %{name}-libs = %{version}-%{release}
134 cgps is a simple test client for gpsd. It displays current GPS
135 position/time/velocity information and (for GPSes that support the
136 feature) the locations of accessible satellites. cgps resembles xgps,
137 but without the pictorial satellite display. It can run on a serial
138 terminal or terminal emulator.
140 %description clients -l pl.UTF-8
141 cgps to prosty klient testowy dla gpsd. Wyświetla bieżące informacje
142 GPS o położeniu, czasie i prędkości oraz (w przypadku GPS-ów
143 obsługujących to) położenia dostępnych satelitów. Jest podobny do
144 xgps, ale nie ma rysunkowego przedstawiania satelitów. Może działać na
145 terminalu szeregowym lub emulatorze terminala.
148 Summary: Clients for gpsd with an X interface
149 Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X
150 Group: Applications/System
151 Requires: %{name}-libs = %{version}-%{release}
152 Requires: xorg-lib-libXt >= 1.0.0
154 %description clients-gui
155 xgps is a simple test client for gpsd with an X interface. It displays
156 current GPS position/time/velocity information and (for GPSes that
157 support the feature) the locations of accessible satellites.
159 xgpsspeed is a speedometer that uses position information from the
162 %description clients-gui -l pl.UTF-8
163 xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
164 bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
165 przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
167 xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
173 %configure CPPFLAGS="-I%{_includedir}/ncurses" \
174 %{?with_dbus:--enable-dbus} \
175 %{!?with_x:--without-x}
180 rm -rf $RPM_BUILD_ROOT
181 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_datadir}/%{name}}
182 install -d $RPM_BUILD_ROOT{%{udevdir},/etc/{udev/rules.d,sysconfig}}
184 %{__make} -j1 install \
185 DESTDIR=$RPM_BUILD_ROOT
187 install gpsd.hotplug gpsd.hotplug.wrapper $RPM_BUILD_ROOT%{udevdir}
188 #install gpsd.udev $RPM_BUILD_ROOT/etc/udev/rules.d/25-gpsd.rules
189 #install gpsd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/gpsd
190 install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
193 install -D xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps
194 install -D xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
197 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
198 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
202 rm -rf $RPM_BUILD_ROOT
204 %post libs -p /sbin/ldconfig
205 %postun libs -p /sbin/ldconfig
208 %defattr(644,root,root,755)
209 %doc README INSTALL COPYING TODO AUTHORS
210 %attr(755,root,root) %{_sbindir}/gpsd
211 %attr(755,root,root) %{_bindir}/gpsmon
212 %{_mandir}/man8/gpsd.8*
213 %{_mandir}/man1/gpsmon.1*
214 %attr(755,root,root) %{udevdir}/gpsd.hotplug
215 %attr(755,root,root) %{udevdir}/gpsd.hotplug.wrapper
216 #/etc/udev/rules.d/25-gpsd.rules
217 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gpsd
218 %dir %{_datadir}/%{name}
219 %{_datadir}/gpsd/dgpsip-servers
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/libgps.so
224 %attr(755,root,root) %{_libdir}/libgpsd.so.*
225 %attr(755,root,root) %{_libdir}/libgps.so.*.*.*
226 %attr(755,root,root) %ghost %{_libdir}/libgps.so.19
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/gpsdecode
231 %attr(755,root,root) %{_libdir}/libgps.so
233 %{_libdir}/libgpsd.la
235 %{_includedir}/gpsd.h
236 %{_includedir}/libgpsmm.h
237 %{_pkgconfigdir}/libgps.pc
238 %{_pkgconfigdir}/libgpsd.pc
239 %{_mandir}/man1/gpsdecode.1*
240 %{_mandir}/man3/libgps.3*
241 %{_mandir}/man3/libgpsd.3*
242 %{_mandir}/man3/libgpsmm.3*
243 %{_mandir}/man5/rtcm-104.5*
244 %{_mandir}/man5/srec.5*
247 %defattr(644,root,root,755)
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/gpscat
254 %attr(755,root,root) %{_bindir}/gpsfake
255 %attr(755,root,root) %{_bindir}/gpsprof
256 %{py_sitescriptdir}/gpscap.py[co]
258 %dir %{py_sitedir}/gps
259 %attr(755,root,root) %{py_sitedir}/gps/*.so
260 %{py_sitedir}/gps/*.py[co]
263 %{_mandir}/man1/gpscat.1*
264 %{_mandir}/man1/gpsfake.1*
265 %{_mandir}/man1/gpsprof.1*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/gpsctl
270 %attr(755,root,root) %{_bindir}/cgps
271 %attr(755,root,root) %{_bindir}/gpspipe
272 %{?with_dbus:%attr(755,root,root) %{_bindir}/gpxlogger}
273 %{_mandir}/man1/gpsctl.1*
274 %{_mandir}/man1/cgps.1*
275 #%{_mandir}/man1/cgpxlogger.1*
276 %{_mandir}/man1/gps.1*
277 %{_mandir}/man1/gpspipe.1*
281 %defattr(644,root,root,755)
282 %attr(755,root,root) %{_bindir}/lcdgps
283 %attr(755,root,root) %{_bindir}/xgps
284 %attr(755,root,root) %{_bindir}/xgpsspeed
286 %{_appdefsdir}/xgpsspeed
287 %{_mandir}/man1/xgps.1*
288 %{_mandir}/man1/xgpsspeed.1*