]> git.pld-linux.org Git - packages/gpsd.git/blob - gpsd.spec
- updated to 2.96 (note: new libgps and libQgpsmm sonames)
[packages/gpsd.git] / gpsd.spec
1 #
2 # Conditional build:
3 %bcond_without  dbus    # build without dbus support
4 %bcond_without  bluez   # build without Bluetooth support
5 %bcond_without  x       # build without X Window System support
6 #
7 Summary:        Service daemon for mediating access to a GPS
8 Summary(pl.UTF-8):      Oprogramowanie komunikujące się z GPS-em
9 Name:           gpsd
10 Version:        2.96
11 Release:        1
12 License:        BSD
13 Group:          Daemons
14 Source0:        http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
15 # Source0-md5:  26a7a04d4298bc3a3a5d89fef4582b64
16 Patch0:         %{name}-link.patch
17 URL:            http://gpsd.berlios.de/
18 BuildRequires:  QtNetwork-devel >= 4.4
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 %if %{with dbus}
22 BuildRequires:  dbus-devel
23 BuildRequires:  dbus-glib-devel
24 %endif
25 %{?with_bluez:BuildRequires:    bluez-libs-devel}
26 BuildRequires:  docbook-dtd412-xml
27 BuildRequires:  docbook-style-xsl
28 BuildRequires:  libstdc++-devel
29 BuildRequires:  libtool >= 2:1.5
30 BuildRequires:  libusb-devel >= 1.0.0
31 BuildRequires:  libxslt-progs
32 BuildRequires:  ncurses-devel
33 BuildRequires:  pkgconfig
34 BuildRequires:  python-devel >= 1:2.4
35 BuildRequires:  qt4-qmake >= 4.4
36 BuildRequires:  rpm-pythonprov
37 BuildRequires:  xmlto
38 Requires:       %{name}-libs = %{version}-%{release}
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %define         udevdir         /lib/udev
42
43 %description
44 gpsd is a service daemon that mediates access to a GPS sensor
45 connected to the host computer by serial or USB interface, making its
46 data on the location/course/velocity of the sensor available to be
47 queried on TCP port 2947 of the host computer. With gpsd, multiple GPS
48 client applications (such as navigational and wardriving software) can
49 share access to a GPS without contention or loss of data. Also, gpsd
50 responds to queries with a format that is substantially easier to
51 parse than NMEA 0183. A client library is provided for applications.
52
53 After installing this RPM, gpsd will automatically connect to USB
54 GPSes when they are plugged in and requires no configuration. For
55 serial GPSes, you will need to start gpsd by hand. Once connected, the
56 daemon automatically discovers the correct baudrate, stop bits, and
57 protocol. The daemon will be quiescent when there are no clients
58 asking for location information, and copes gracefully when the GPS is
59 unplugged and replugged.
60
61 %description -l pl.UTF-8
62 gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
63 połączonego z komputerem poprzez interfejs szeregowy lub USB,
64 udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
65 na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
66 klienckich GPS (takich jak oprogramowanie nawigacyjne) może
67 współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
68 na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
69 0183. Dostarczona jest biblioteka kliencka dla aplikacji.
70
71 Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
72 GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
73 uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
74 właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
75 spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
76 ponownym podłączaniem GPS-a.
77
78 %package -n udev-gpsd
79 Summary:        UDEV support for GPS hotplugging
80 Summary(pl.UTF-8):      Obsługa UDEV-a do podłączania urządzeń GPS
81 Group:          Applications/System
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       udev-core >= 1:127
84
85 %description -n udev-gpsd
86 UDEV support for GPS hotplugging.
87
88 %description -n udev-gpsd -l pl.UTF-8
89 Obsługa UDEV-a do podłączania urządzeń GPS.
90
91 %package libs
92 Summary:        GPSd client library
93 Summary(pl.UTF-8):      Biblioteka kliencka GPSd
94 Group:          Libraries
95
96 %description libs
97 GPSd client library.
98
99 %description libs -l pl.UTF-8
100 Biblioteka kliencka GPSd.
101
102 %package devel
103 Summary:        Client libraries in C and Python for talking to a running gpsd or GPS
104 Summary(pl.UTF-8):      Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
105 Group:          Development/Libraries
106 Requires:       %{name}-libs = %{version}-%{release}
107 Requires:       libstdc++-devel
108
109 %description devel
110 This package provides C header files for the gpsd shared libraries
111 that manage access to a GPS for applications; also Python modules. You
112 will need to have gpsd installed for it to work.
113
114 %description devel -l pl.UTF-8
115 Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
116 gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
117 Pythona. Do działania bibliotek potrzebny jest gpsd.
118
119 %package static
120 Summary:        Static GPS client library
121 Summary(pl.UTF-8):      Statyczna biblioteka kliencka GPS
122 Group:          Development/Libraries
123 Requires:       %{name}-devel = %{version}-%{release}
124
125 %description static
126 Static GPS client library.
127
128 %description static -l pl.UTF-8
129 Statyczna biblioteka kliencka GPS.
130
131 %package qt-libs
132 Summary:        GPS Qt4 integration library
133 Summary(pl.UTF-8):      Biblioteka integrująca GPS z Qt4
134 Group:          X11/Libraries
135 Requires:       %{name}-libs = %{version}-%{release}
136 Requires:       QtNetwork >= 4.4
137
138 %description qt-libs
139 GPS Qt4 integration library.
140
141 %description qt-libs -l pl.UTF-8
142 Biblioteka integrująca GPS z Qt4.
143
144 %package qt-devel
145 Summary:        Development files for GPS Qt4 integration library
146 Summary(pl.UTF-8):      Pliki programistyczne biblioteki integrującej GPS z Qt4
147 Group:          X11/Development/Libraries
148 Requires:       %{name}-devel = %{version}-%{release}
149 Requires:       %{name}-qt-libs = %{version}-%{release}
150 Requires:       QtNetwork-devel >= 4.4
151
152 %description qt-devel
153 Development files for GPS Qt4 integration library.
154
155 %description qt-devel -l pl.UTF-8
156 Pliki programistyczne biblioteki integrującej GPS z Qt4.
157
158 %package -n python-gps
159 Summary:        Python GPSd client library
160 Summary(pl.UTF-8):      Biblioteka kliencka GPSd dla Pythona
161 Group:          Libraries/Python
162 Requires:       %{name}-libs = %{version}-%{release}
163
164 %description -n python-gps
165 GPSd client library for Python.
166
167 %description -n python-gps -l pl.UTF-8
168 Biblioteka kliencka GPSd dla Pythona.
169
170 %package clients
171 Summary:        Clients for gpsd
172 Summary(pl.UTF-8):      Aplikacje klienckie dla gpsd
173 Group:          Applications/System
174 Requires:       %{name}-libs = %{version}-%{release}
175
176 %description clients
177 cgps is a simple test client for gpsd. It displays current GPS
178 position/time/velocity information and (for GPSes that support the
179 feature) the locations of accessible satellites. cgps resembles xgps,
180 but without the pictorial satellite display. It can run on a serial
181 terminal or terminal emulator.
182
183 %description clients -l pl.UTF-8
184 cgps to prosty klient testowy dla gpsd. Wyświetla bieżące informacje
185 GPS o położeniu, czasie i prędkości oraz (w przypadku GPS-ów
186 obsługujących to) położenia dostępnych satelitów. Jest podobny do
187 xgps, ale nie ma rysunkowego przedstawiania satelitów. Może działać na
188 terminalu szeregowym lub emulatorze terminala.
189
190 %package clients-gui
191 Summary:        Clients for gpsd with an X interface
192 Summary(pl.UTF-8):      Aplikacje klienckie z interfejsem X
193 Group:          Applications/System
194 Requires:       %{name}-libs = %{version}-%{release}
195 Requires:       python-gps = %{version}-%{release}
196 Requires:       python-pygtk-gtk >= 2:2.0
197
198 %description clients-gui
199 xgps is a simple test client for gpsd with an X interface. It displays
200 current GPS position/time/velocity information and (for GPSes that
201 support the feature) the locations of accessible satellites.
202
203 xgpsspeed is a speedometer that uses position information from the
204 GPS.
205
206 %description clients-gui -l pl.UTF-8
207 xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
208 bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
209 przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
210
211 xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
212
213 %prep
214 %setup -q
215 %patch0 -p1
216
217 %build
218 %{__libtoolize}
219 %{__aclocal}
220 %{__autoconf}
221 %{__autoheader}
222 %{__automake}
223 %configure \
224         CPPFLAGS="-I/usr/include/ncurses" \
225         %{?with_bluez:--enable-bluetooth} \
226         %{?with_dbus:--enable-dbus} \
227         %{!?with_x:--without-x}
228
229 %{__make} -j1
230
231 %install
232 rm -rf $RPM_BUILD_ROOT
233 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_datadir}/%{name}}
234 install -d $RPM_BUILD_ROOT{%{udevdir},/etc/{udev/rules.d,sysconfig}}
235
236 %{__make} -j1 install \
237         DESTDIR=$RPM_BUILD_ROOT
238
239 install gpsd.hotplug gpsd.hotplug.wrapper $RPM_BUILD_ROOT%{udevdir}
240 #install        gpsd.udev $RPM_BUILD_ROOT/etc/udev/rules.d/25-gpsd.rules
241 #install        gpsd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/gpsd
242 install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
243
244 # check if missing header installation is up to date
245 [ ! -f $RPM_BUILD_ROOT%{_includedir}/libQgpsmm_global.h ] || exit 1
246 install libQgpsmm/libQgpsmm_global.h $RPM_BUILD_ROOT%{_includedir}
247
248 [ ! -d $RPM_BUILD_ROOT%{_desktopdir} ] || exit 1
249 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
250 install packaging/X11/{xgps,xgpsspeed}.desktop $RPM_BUILD_ROOT%{_desktopdir}
251 install packaging/X11/gpsd-logo.png $RPM_BUILD_ROOT%{_pixmapsdir}
252
253 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
254 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
255 %py_postclean
256
257 %clean
258 rm -rf $RPM_BUILD_ROOT
259
260 %post   libs -p /sbin/ldconfig
261 %postun libs -p /sbin/ldconfig
262
263 %post   qt-libs -p /sbin/ldconfig
264 %postun qt-libs -p /sbin/ldconfig
265
266 %files
267 %defattr(644,root,root,755)
268 %doc README INSTALL COPYING TODO AUTHORS
269 %attr(755,root,root) %{_sbindir}/gpsd
270 %attr(755,root,root) %{_bindir}/gpsmon
271 %{_mandir}/man8/gpsd.8*
272 %{_mandir}/man1/gpsmon.1*
273 %dir %{_datadir}/gpsd
274 %{_datadir}/gpsd/dgpsip-servers
275
276 %files -n udev-gpsd
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{udevdir}/gpsd.hotplug
279 %attr(755,root,root) %{udevdir}/gpsd.hotplug.wrapper
280 #/etc/udev/rules.d/25-gpsd.rules
281 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gpsd
282
283 %files libs
284 %defattr(644,root,root,755)
285 %attr(755,root,root) %{_libdir}/libgpsd.so.*.*.*
286 %attr(755,root,root) %ghost %{_libdir}/libgpsd.so.0
287 %attr(755,root,root) %{_libdir}/libgps.so.*.*.*
288 %attr(755,root,root) %ghost %{_libdir}/libgps.so.20
289
290 %files devel
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_bindir}/gpsdecode
293 %attr(755,root,root) %{_libdir}/libgps.so
294 %attr(755,root,root) %{_libdir}/libgpsd.so
295 %{_libdir}/libgps.la
296 %{_libdir}/libgpsd.la
297 %{_includedir}/gps.h
298 %{_includedir}/gpsd.h
299 %{_includedir}/libgpsmm.h
300 %{_pkgconfigdir}/libgps.pc
301 %{_pkgconfigdir}/libgpsd.pc
302 %{_mandir}/man1/gpsdecode.1*
303 %{_mandir}/man3/libgps.3*
304 %{_mandir}/man3/libgpsd.3*
305 %{_mandir}/man3/libgpsmm.3*
306 %{_mandir}/man5/srec.5*
307
308 %files static
309 %defattr(644,root,root,755)
310 %{_libdir}/libgps.a
311 %{_libdir}/libgpsd.a
312
313 %files qt-libs
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/libQgpsmm.so.*.*.*
316 %attr(755,root,root) %ghost %{_libdir}/libQgpsmm.so.20
317
318 %files qt-devel
319 %defattr(644,root,root,755)
320 %attr(755,root,root) %{_libdir}/libQgpsmm.so
321 %{_libdir}/libQgpsmm.prl
322 %{_includedir}/libQgpsmm_global.h
323 %{_pkgconfigdir}/Qgpsmm.pc
324
325 %files -n python-gps
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_bindir}/gpscat
328 %attr(755,root,root) %{_bindir}/gpsfake
329 %attr(755,root,root) %{_bindir}/gpsprof
330 %dir %{py_sitedir}/gps
331 %attr(755,root,root) %{py_sitedir}/gps/*.so
332 %{py_sitedir}/gps/*.py[co]
333 %{py_sitedir}/gps-%{version}-py*.egg-info
334 %{py_sitedir}/gpscap.py[co]
335 %{_mandir}/man1/gpscat.1*
336 %{_mandir}/man1/gpsfake.1*
337 %{_mandir}/man1/gpsprof.1*
338
339 %files clients
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_bindir}/gpsctl
342 %attr(755,root,root) %{_bindir}/cgps
343 %attr(755,root,root) %{_bindir}/gpspipe
344 %{?with_dbus:%attr(755,root,root) %{_bindir}/gpxlogger}
345 %{_mandir}/man1/gpsctl.1*
346 %{_mandir}/man1/cgps.1*
347 %{_mandir}/man1/gps.1*
348 %{_mandir}/man1/gpspipe.1*
349
350 %if %{with x}
351 %files clients-gui
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_bindir}/lcdgps
354 %attr(755,root,root) %{_bindir}/xgps
355 %attr(755,root,root) %{_bindir}/xgpsspeed
356 %{_mandir}/man1/lcdgps.1*
357 %{_mandir}/man1/xgps.1*
358 %{_mandir}/man1/xgpsspeed.1*
359 %{_desktopdir}/xgps.desktop
360 %{_desktopdir}/xgpsspeed.desktop
361 %{_pixmapsdir}/gpsd-logo.png
362 %endif
This page took 0.30936 seconds and 4 git commands to generate.