]>
Commit | Line | Data |
---|---|---|
4d5d1f20 | 1 | # |
dc7c690b | 2 | # TODO: |
dc7c690b | 3 | # - fix pysitedir??? |
4a2c2802 | 4 | # |
90c8b3d7 | 5 | # Conditional build: |
3c22fb66 | 6 | %bcond_without dbus # build without dbus support |
2bfd87da | 7 | %bcond_without x # build without X Window System support |
90c8b3d7 | 8 | # |
9 | Summary: Service daemon for mediating access to a GPS | |
7704e599 | 10 | Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em |
90c8b3d7 | 11 | Name: gpsd |
810597c4 | 12 | Version: 2.39 |
d020b7f3 | 13 | Release: 3 |
90c8b3d7 | 14 | License: BSD |
15 | Group: Daemons | |
16 | Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz | |
810597c4 | 17 | # Source0-md5: 3db437196a6840c252fca99b6c19d4d0 |
90c8b3d7 | 18 | Patch0: %{name}-ncurses.patch |
6a7f969b | 19 | Patch1: %{name}-udev.patch |
90c8b3d7 | 20 | URL: http://gpsd.berlios.de/ |
90c8b3d7 | 21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
df34cb17 | 23 | %if %{with dbus} |
90c8b3d7 | 24 | BuildRequires: dbus-devel |
25 | BuildRequires: dbus-glib-devel | |
26 | %endif | |
4d5d1f20 | 27 | BuildRequires: ncurses-devel |
6a7f969b | 28 | %if %{with x} |
4d5d1f20 | 29 | BuildRequires: openmotif-devel |
6a7f969b | 30 | BuildRequires: xorg-lib-libXaw-devel |
31 | %endif | |
4116cf5e JK |
32 | BuildRequires: python-devel |
33 | BuildRequires: rpm-pythonprov | |
4d5d1f20 | 34 | Requires: %{name}-libs = %{version}-%{release} |
4a2c2802 | 35 | Requires: udev-core >= 1:127 |
90c8b3d7 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
3c22fb66 | 38 | %define _appdefsdir /usr/share/X11/app-defaults |
4a2c2802 | 39 | %define udevdir /lib/udev |
90c8b3d7 | 40 | |
41 | %description | |
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. | |
50 | ||
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. | |
58 | ||
21673dc2 JR |
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 | |
4d5d1f20 JB |
67 | 0183. Dostarczona jest biblioteka kliencka dla aplikacji. |
68 | ||
21673dc2 JR |
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. | |
4d5d1f20 JB |
75 | |
76 | %package libs | |
dc7c690b | 77 | Summary: GPSd client library |
78 | Summary(pl.UTF-8): Biblioteka kliencka GPSd | |
4d5d1f20 JB |
79 | Group: Libraries |
80 | ||
81 | %description libs | |
dc7c690b | 82 | GPSd client library. |
4d5d1f20 | 83 | |
21673dc2 | 84 | %description libs -l pl.UTF-8 |
dc7c690b | 85 | Biblioteka kliencka GPSd. |
4d5d1f20 JB |
86 | |
87 | %package devel | |
90c8b3d7 | 88 | Summary: Client libraries in C and Python for talking to a running gpsd or GPS |
7704e599 | 89 | Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em |
90c8b3d7 | 90 | Group: Development/Libraries |
4d5d1f20 | 91 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 92 | |
4d5d1f20 | 93 | %description devel |
90c8b3d7 | 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. | |
97 | ||
21673dc2 JR |
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. | |
4d5d1f20 JB |
102 | |
103 | %package static | |
104 | Summary: Static GPS client library | |
7704e599 | 105 | Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS |
4d5d1f20 JB |
106 | Group: Development/Libraries |
107 | Requires: %{name}-devel = %{version}-%{release} | |
108 | ||
109 | %description static | |
110 | Static GPS client library. | |
111 | ||
21673dc2 | 112 | %description static -l pl.UTF-8 |
4d5d1f20 JB |
113 | Statyczna biblioteka kliencka GPS. |
114 | ||
4116cf5e JK |
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} | |
120 | ||
121 | %description -n python-gps | |
122 | GPSd client library for Python. | |
123 | ||
124 | %description -n python-gps -l pl.UTF-8 | |
125 | Biblioteka kliencka GPSd dla Pythona. | |
126 | ||
4d5d1f20 | 127 | %package clients |
2f6e6399 JB |
128 | Summary: Clients for gpsd |
129 | Summary(pl.UTF-8): Aplikacje klienckie dla gpsd | |
130 | Group: Applications/System | |
131 | Requires: %{name}-libs = %{version}-%{release} | |
132 | ||
133 | %description clients | |
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. | |
139 | ||
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. | |
146 | ||
147 | %package clients-gui | |
90c8b3d7 | 148 | Summary: Clients for gpsd with an X interface |
7704e599 | 149 | Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X |
90c8b3d7 | 150 | Group: Applications/System |
4d5d1f20 | 151 | Requires: %{name}-libs = %{version}-%{release} |
3c22fb66 | 152 | Requires: xorg-lib-libXt >= 1.0.0 |
90c8b3d7 | 153 | |
2f6e6399 | 154 | %description clients-gui |
90c8b3d7 | 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. | |
158 | ||
159 | xgpsspeed is a speedometer that uses position information from the | |
2f6e6399 | 160 | GPS. |
90c8b3d7 | 161 | |
2f6e6399 | 162 | %description clients-gui -l pl.UTF-8 |
21673dc2 JR |
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. | |
4d5d1f20 | 166 | |
21673dc2 | 167 | xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a. |
4d5d1f20 | 168 | |
90c8b3d7 | 169 | %prep |
170 | %setup -q | |
171 | %patch0 -p1 | |
6a7f969b | 172 | %patch1 -p1 |
90c8b3d7 | 173 | |
174 | %build | |
dc7c690b | 175 | %{__libtoolize} |
90c8b3d7 | 176 | %{__aclocal} |
177 | %{__autoconf} | |
178 | %{__autoheader} | |
179 | %{__automake} | |
df34cb17 | 180 | %configure \ |
6a7f969b | 181 | %{?with_dbus:--enable-dbus} \ |
2f6e6399 | 182 | %{!?with_x:--without-x} |
df34cb17 | 183 | |
d8a2c1af | 184 | %{__make} -j1 |
90c8b3d7 | 185 | |
186 | %install | |
187 | rm -rf $RPM_BUILD_ROOT | |
2f6e6399 | 188 | install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_datadir}/%{name}} |
2bfd87da | 189 | install -d $RPM_BUILD_ROOT{%{udevdir},/etc/{udev/rules.d,sysconfig}} |
90c8b3d7 | 190 | |
d8a2c1af | 191 | %{__make} -j1 install \ |
90c8b3d7 | 192 | DESTDIR=$RPM_BUILD_ROOT |
193 | ||
6a7f969b | 194 | install gpsd.hotplug gpsd.hotplug.wrapper $RPM_BUILD_ROOT%{udevdir} |
2bfd87da JB |
195 | install gpsd.udev $RPM_BUILD_ROOT/etc/udev/rules.d/25-gpsd.rules |
196 | install gpsd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/gpsd | |
4d5d1f20 | 197 | install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers |
90c8b3d7 | 198 | |
2f6e6399 JB |
199 | %if %{with x} |
200 | install -D xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps | |
201 | install -D xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed | |
202 | %endif | |
4116cf5e JK |
203 | |
204 | mv $RPM_BUILD_ROOT%{py_sitescriptdir}/*.so $RPM_BUILD_ROOT%{py_sitedir} | |
205 | ||
206 | %py_postclean | |
207 | ||
90c8b3d7 | 208 | %clean |
209 | rm -rf $RPM_BUILD_ROOT | |
210 | ||
4d5d1f20 JB |
211 | %post libs -p /sbin/ldconfig |
212 | %postun libs -p /sbin/ldconfig | |
90c8b3d7 | 213 | |
214 | %files | |
215 | %defattr(644,root,root,755) | |
dc7c690b | 216 | %doc README INSTALL COPYING TODO AUTHORS |
90c8b3d7 | 217 | %attr(755,root,root) %{_sbindir}/gpsd |
810597c4 | 218 | %attr(755,root,root) %{_bindir}/gpsmon |
90c8b3d7 | 219 | %{_mandir}/man8/gpsd.8* |
810597c4 | 220 | %{_mandir}/man1/gpsmon.1* |
d020b7f3 AM |
221 | %attr(755,root,root) %{udevdir}/gpsd.hotplug |
222 | %attr(755,root,root) %{udevdir}/gpsd.hotplug.wrapper | |
2bfd87da | 223 | /etc/udev/rules.d/25-gpsd.rules |
4a2c2802 | 224 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gpsd |
dc7c690b | 225 | %dir %{_datadir}/%{name} |
90c8b3d7 | 226 | %{_datadir}/gpsd/dgpsip-servers |
4a2c2802 | 227 | |
4d5d1f20 | 228 | %files libs |
90c8b3d7 | 229 | %defattr(644,root,root,755) |
4d5d1f20 | 230 | %attr(755,root,root) %{_libdir}/libgps.so.*.*.* |
810597c4 | 231 | %attr(755,root,root) %ghost %{_libdir}/libgps.so.18 |
90c8b3d7 | 232 | |
4d5d1f20 | 233 | %files devel |
90c8b3d7 | 234 | %defattr(644,root,root,755) |
90c8b3d7 | 235 | %attr(755,root,root) %{_bindir}/gpsflash |
810597c4 | 236 | %attr(755,root,root) %{_bindir}/gpsdecode |
4d5d1f20 JB |
237 | %attr(755,root,root) %{_libdir}/libgps.so |
238 | %{_libdir}/libgps.la | |
90c8b3d7 | 239 | %{_includedir}/gps.h |
90c8b3d7 | 240 | %{_includedir}/gpsd.h |
2f6e6399 | 241 | %{_includedir}/libgpsmm.h |
2bfd87da JB |
242 | %{_pkgconfigdir}/libgps.pc |
243 | %{_pkgconfigdir}/libgpsd.pc | |
90c8b3d7 | 244 | %{_mandir}/man1/gpsflash.1* |
810597c4 | 245 | %{_mandir}/man1/gpsdecode.1* |
90c8b3d7 | 246 | %{_mandir}/man3/libgps.3* |
90c8b3d7 | 247 | %{_mandir}/man3/libgpsd.3* |
2f6e6399 | 248 | %{_mandir}/man3/libgpsmm.3* |
90c8b3d7 | 249 | %{_mandir}/man5/rtcm-104.5* |
250 | %{_mandir}/man5/srec.5* | |
4d5d1f20 JB |
251 | |
252 | %files static | |
253 | %defattr(644,root,root,755) | |
254 | %{_libdir}/libgps.a | |
255 | ||
4116cf5e JK |
256 | %files -n python-gps |
257 | %defattr(644,root,root,755) | |
2f6e6399 JB |
258 | %attr(755,root,root) %{_bindir}/gpscat |
259 | %attr(755,root,root) %{_bindir}/gpsfake | |
260 | %attr(755,root,root) %{_bindir}/gpsprof | |
261 | %{py_sitescriptdir}/gps.py[co] | |
810597c4 | 262 | %{py_sitescriptdir}/gpscap.py[co] |
2f6e6399 | 263 | %{py_sitescriptdir}/gpsfake.py[co] |
810597c4 | 264 | %attr(755,root,root) %{py_sitedir}/gpslib.so |
2f6e6399 JB |
265 | %attr(755,root,root) %{py_sitedir}/gpspacket.so |
266 | %{_mandir}/man1/gpscat.1* | |
267 | %{_mandir}/man1/gpsfake.1* | |
268 | %{_mandir}/man1/gpsprof.1* | |
4116cf5e | 269 | |
4d5d1f20 JB |
270 | %files clients |
271 | %defattr(644,root,root,755) | |
dc7c690b | 272 | %attr(755,root,root) %{_bindir}/gpsctl |
4d5d1f20 JB |
273 | %attr(755,root,root) %{_bindir}/cgps |
274 | %attr(755,root,root) %{_bindir}/gpspipe | |
3c22fb66 | 275 | %{?with_dbus:%attr(755,root,root) %{_bindir}/gpxlogger} |
dc7c690b | 276 | %{_mandir}/man1/gpsctl.1* |
a7db052a | 277 | %{_mandir}/man1/cgps.1* |
278 | %{_mandir}/man1/cgpxlogger.1* | |
279 | %{_mandir}/man1/gps.1* | |
4d5d1f20 | 280 | %{_mandir}/man1/gpspipe.1* |
2f6e6399 JB |
281 | |
282 | %if %{with x} | |
283 | %files clients-gui | |
284 | %defattr(644,root,root,755) | |
810597c4 | 285 | %attr(755,root,root) %{_bindir}/lcdgps |
2f6e6399 JB |
286 | %attr(755,root,root) %{_bindir}/xgps |
287 | %attr(755,root,root) %{_bindir}/xgpsspeed | |
4d5d1f20 JB |
288 | %{_appdefsdir}/xgps |
289 | %{_appdefsdir}/xgpsspeed | |
2f6e6399 JB |
290 | %{_mandir}/man1/xgps.1* |
291 | %{_mandir}/man1/xgpsspeed.1* | |
292 | %endif |