]>
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 |
9f13a9eb | 12 | Version: 2.94 |
b88610fc | 13 | Release: 1 |
90c8b3d7 | 14 | License: BSD |
15 | Group: Daemons | |
16 | Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz | |
9f13a9eb | 17 | # Source0-md5: ce70bcd707ac1df861d4c72f503c09d1 |
b88610fc | 18 | Patch0: %{name}-link.patch |
90c8b3d7 | 19 | URL: http://gpsd.berlios.de/ |
df34cb17 | 20 | %if %{with dbus} |
90c8b3d7 | 21 | BuildRequires: dbus-devel |
22 | BuildRequires: dbus-glib-devel | |
23 | %endif | |
76626dbc | 24 | BuildRequires: docbook-dtd412-xml |
9f13a9eb | 25 | BuildRequires: docbook-style-xsl |
76626dbc | 26 | BuildRequires: libstdc++-devel |
b88610fc | 27 | BuildRequires: libusb-devel |
76626dbc | 28 | BuildRequires: libxslt-progs |
4d5d1f20 | 29 | BuildRequires: ncurses-devel |
76626dbc | 30 | %{?with_x:BuildRequires: openmotif-devel} |
31 | BuildRequires: pkgconfig | |
4116cf5e JK |
32 | BuildRequires: python-devel |
33 | BuildRequires: rpm-pythonprov | |
76626dbc | 34 | BuildRequires: xmlto |
35 | %{?with_x:BuildRequires: xorg-lib-libXaw-devel} | |
4d5d1f20 | 36 | Requires: %{name}-libs = %{version}-%{release} |
4a2c2802 | 37 | Requires: udev-core >= 1:127 |
90c8b3d7 | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
3c22fb66 | 40 | %define _appdefsdir /usr/share/X11/app-defaults |
4a2c2802 | 41 | %define udevdir /lib/udev |
90c8b3d7 | 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 | ||
21673dc2 JR |
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 | |
4d5d1f20 JB |
69 | 0183. Dostarczona jest biblioteka kliencka dla aplikacji. |
70 | ||
21673dc2 JR |
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. | |
4d5d1f20 JB |
77 | |
78 | %package libs | |
dc7c690b | 79 | Summary: GPSd client library |
80 | Summary(pl.UTF-8): Biblioteka kliencka GPSd | |
4d5d1f20 JB |
81 | Group: Libraries |
82 | ||
83 | %description libs | |
dc7c690b | 84 | GPSd client library. |
4d5d1f20 | 85 | |
21673dc2 | 86 | %description libs -l pl.UTF-8 |
dc7c690b | 87 | Biblioteka kliencka GPSd. |
4d5d1f20 JB |
88 | |
89 | %package devel | |
90c8b3d7 | 90 | Summary: Client libraries in C and Python for talking to a running gpsd or GPS |
7704e599 | 91 | Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em |
90c8b3d7 | 92 | Group: Development/Libraries |
4d5d1f20 | 93 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 94 | |
4d5d1f20 | 95 | %description devel |
90c8b3d7 | 96 | This package provides C header files for the gpsd shared libraries |
97 | that manage access to a GPS for applications; also Python modules. You | |
98 | will need to have gpsd installed for it to work. | |
99 | ||
21673dc2 JR |
100 | %description devel -l pl.UTF-8 |
101 | Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych | |
102 | gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły | |
103 | Pythona. Do działania bibliotek potrzebny jest gpsd. | |
4d5d1f20 JB |
104 | |
105 | %package static | |
106 | Summary: Static GPS client library | |
7704e599 | 107 | Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS |
4d5d1f20 JB |
108 | Group: Development/Libraries |
109 | Requires: %{name}-devel = %{version}-%{release} | |
110 | ||
111 | %description static | |
112 | Static GPS client library. | |
113 | ||
21673dc2 | 114 | %description static -l pl.UTF-8 |
4d5d1f20 JB |
115 | Statyczna biblioteka kliencka GPS. |
116 | ||
4116cf5e JK |
117 | %package -n python-gps |
118 | Summary: Python GPSd client library | |
119 | Summary(pl.UTF-8): Biblioteka kliencka GPSd dla Pythona | |
120 | Group: Libraries/Python | |
121 | Requires: %{name}-libs = %{version}-%{release} | |
122 | ||
123 | %description -n python-gps | |
124 | GPSd client library for Python. | |
125 | ||
126 | %description -n python-gps -l pl.UTF-8 | |
127 | Biblioteka kliencka GPSd dla Pythona. | |
128 | ||
4d5d1f20 | 129 | %package clients |
2f6e6399 JB |
130 | Summary: Clients for gpsd |
131 | Summary(pl.UTF-8): Aplikacje klienckie dla gpsd | |
132 | Group: Applications/System | |
133 | Requires: %{name}-libs = %{version}-%{release} | |
134 | ||
135 | %description clients | |
136 | cgps is a simple test client for gpsd. It displays current GPS | |
137 | position/time/velocity information and (for GPSes that support the | |
138 | feature) the locations of accessible satellites. cgps resembles xgps, | |
139 | but without the pictorial satellite display. It can run on a serial | |
140 | terminal or terminal emulator. | |
141 | ||
142 | %description clients -l pl.UTF-8 | |
143 | cgps to prosty klient testowy dla gpsd. Wyświetla bieżące informacje | |
144 | GPS o położeniu, czasie i prędkości oraz (w przypadku GPS-ów | |
145 | obsługujących to) położenia dostępnych satelitów. Jest podobny do | |
146 | xgps, ale nie ma rysunkowego przedstawiania satelitów. Może działać na | |
147 | terminalu szeregowym lub emulatorze terminala. | |
148 | ||
149 | %package clients-gui | |
90c8b3d7 | 150 | Summary: Clients for gpsd with an X interface |
7704e599 | 151 | Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X |
90c8b3d7 | 152 | Group: Applications/System |
4d5d1f20 | 153 | Requires: %{name}-libs = %{version}-%{release} |
3c22fb66 | 154 | Requires: xorg-lib-libXt >= 1.0.0 |
90c8b3d7 | 155 | |
2f6e6399 | 156 | %description clients-gui |
90c8b3d7 | 157 | xgps is a simple test client for gpsd with an X interface. It displays |
158 | current GPS position/time/velocity information and (for GPSes that | |
159 | support the feature) the locations of accessible satellites. | |
160 | ||
161 | xgpsspeed is a speedometer that uses position information from the | |
2f6e6399 | 162 | GPS. |
90c8b3d7 | 163 | |
2f6e6399 | 164 | %description clients-gui -l pl.UTF-8 |
21673dc2 JR |
165 | xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla |
166 | bieżące informacje GPS o położeniu, czasie i prędkości oraz (w | |
167 | przypadku GPS-ów obsługujących to) położenia dostępnych satelitów. | |
4d5d1f20 | 168 | |
21673dc2 | 169 | xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a. |
4d5d1f20 | 170 | |
90c8b3d7 | 171 | %prep |
172 | %setup -q | |
b88610fc AM |
173 | %patch0 -p1 |
174 | sed -i -e 's#/usr/lib/libusb-\*\.so#/usr/%{_lib}/libusb-*.so#g' configure* | |
90c8b3d7 | 175 | |
176 | %build | |
b88610fc AM |
177 | %{__libtoolize} |
178 | %{__aclocal} | |
179 | %{__autoconf} | |
180 | %configure CPPFLAGS="-I%{_includedir}/ncurses $(pkg-config --cflags-only-I libusb-1.0)" \ | |
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} |
378fdacb | 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 | 199 | %if %{with x} |
2f6e6399 JB |
200 | install -D xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed |
201 | %endif | |
4116cf5e | 202 | |
378fdacb | 203 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
204 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
4116cf5e JK |
205 | %py_postclean |
206 | ||
90c8b3d7 | 207 | %clean |
208 | rm -rf $RPM_BUILD_ROOT | |
209 | ||
4d5d1f20 JB |
210 | %post libs -p /sbin/ldconfig |
211 | %postun libs -p /sbin/ldconfig | |
90c8b3d7 | 212 | |
213 | %files | |
214 | %defattr(644,root,root,755) | |
dc7c690b | 215 | %doc README INSTALL COPYING TODO AUTHORS |
90c8b3d7 | 216 | %attr(755,root,root) %{_sbindir}/gpsd |
810597c4 | 217 | %attr(755,root,root) %{_bindir}/gpsmon |
90c8b3d7 | 218 | %{_mandir}/man8/gpsd.8* |
810597c4 | 219 | %{_mandir}/man1/gpsmon.1* |
d020b7f3 AM |
220 | %attr(755,root,root) %{udevdir}/gpsd.hotplug |
221 | %attr(755,root,root) %{udevdir}/gpsd.hotplug.wrapper | |
378fdacb | 222 | #/etc/udev/rules.d/25-gpsd.rules |
223 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gpsd | |
dc7c690b | 224 | %dir %{_datadir}/%{name} |
90c8b3d7 | 225 | %{_datadir}/gpsd/dgpsip-servers |
4a2c2802 | 226 | |
4d5d1f20 | 227 | %files libs |
90c8b3d7 | 228 | %defattr(644,root,root,755) |
9f13a9eb CM |
229 | %attr(755,root,root) %{_libdir}/libgps.so |
230 | %attr(755,root,root) %{_libdir}/libgpsd.so.* | |
4d5d1f20 | 231 | %attr(755,root,root) %{_libdir}/libgps.so.*.*.* |
378fdacb | 232 | %attr(755,root,root) %ghost %{_libdir}/libgps.so.19 |
90c8b3d7 | 233 | |
4d5d1f20 | 234 | %files devel |
90c8b3d7 | 235 | %defattr(644,root,root,755) |
810597c4 | 236 | %attr(755,root,root) %{_bindir}/gpsdecode |
4d5d1f20 | 237 | %attr(755,root,root) %{_libdir}/libgps.so |
b88610fc | 238 | %attr(755,root,root) %{_libdir}/libgpsd.so |
4d5d1f20 | 239 | %{_libdir}/libgps.la |
9f13a9eb | 240 | %{_libdir}/libgpsd.la |
90c8b3d7 | 241 | %{_includedir}/gps.h |
90c8b3d7 | 242 | %{_includedir}/gpsd.h |
2f6e6399 | 243 | %{_includedir}/libgpsmm.h |
2bfd87da JB |
244 | %{_pkgconfigdir}/libgps.pc |
245 | %{_pkgconfigdir}/libgpsd.pc | |
810597c4 | 246 | %{_mandir}/man1/gpsdecode.1* |
90c8b3d7 | 247 | %{_mandir}/man3/libgps.3* |
90c8b3d7 | 248 | %{_mandir}/man3/libgpsd.3* |
2f6e6399 | 249 | %{_mandir}/man3/libgpsmm.3* |
90c8b3d7 | 250 | %{_mandir}/man5/rtcm-104.5* |
251 | %{_mandir}/man5/srec.5* | |
4d5d1f20 JB |
252 | |
253 | %files static | |
254 | %defattr(644,root,root,755) | |
255 | %{_libdir}/libgps.a | |
9f13a9eb | 256 | %{_libdir}/libgpsd.a |
4d5d1f20 | 257 | |
4116cf5e JK |
258 | %files -n python-gps |
259 | %defattr(644,root,root,755) | |
2f6e6399 JB |
260 | %attr(755,root,root) %{_bindir}/gpscat |
261 | %attr(755,root,root) %{_bindir}/gpsfake | |
262 | %attr(755,root,root) %{_bindir}/gpsprof | |
810597c4 | 263 | %{py_sitescriptdir}/gpscap.py[co] |
378fdacb | 264 | |
265 | %dir %{py_sitedir}/gps | |
266 | %attr(755,root,root) %{py_sitedir}/gps/*.so | |
267 | %{py_sitedir}/gps/*.py[co] | |
268 | %{py_sitedir}/*.egg* | |
269 | ||
2f6e6399 JB |
270 | %{_mandir}/man1/gpscat.1* |
271 | %{_mandir}/man1/gpsfake.1* | |
272 | %{_mandir}/man1/gpsprof.1* | |
4116cf5e | 273 | |
4d5d1f20 JB |
274 | %files clients |
275 | %defattr(644,root,root,755) | |
dc7c690b | 276 | %attr(755,root,root) %{_bindir}/gpsctl |
4d5d1f20 JB |
277 | %attr(755,root,root) %{_bindir}/cgps |
278 | %attr(755,root,root) %{_bindir}/gpspipe | |
3c22fb66 | 279 | %{?with_dbus:%attr(755,root,root) %{_bindir}/gpxlogger} |
dc7c690b | 280 | %{_mandir}/man1/gpsctl.1* |
a7db052a | 281 | %{_mandir}/man1/cgps.1* |
378fdacb | 282 | #%{_mandir}/man1/cgpxlogger.1* |
a7db052a | 283 | %{_mandir}/man1/gps.1* |
4d5d1f20 | 284 | %{_mandir}/man1/gpspipe.1* |
2f6e6399 JB |
285 | |
286 | %if %{with x} | |
287 | %files clients-gui | |
288 | %defattr(644,root,root,755) | |
810597c4 | 289 | %attr(755,root,root) %{_bindir}/lcdgps |
2f6e6399 JB |
290 | %attr(755,root,root) %{_bindir}/xgps |
291 | %attr(755,root,root) %{_bindir}/xgpsspeed | |
4d5d1f20 | 292 | %{_appdefsdir}/xgpsspeed |
b88610fc | 293 | %{_mandir}/man1/lcdgps.1* |
2f6e6399 JB |
294 | %{_mandir}/man1/xgps.1* |
295 | %{_mandir}/man1/xgpsspeed.1* | |
296 | %endif |