]>
Commit | Line | Data |
---|---|---|
90c8b3d7 | 1 | # TODO |
2 | # - at this time package do not build with dbus support | |
3 | # I do not need it ... | |
4d5d1f20 | 4 | # |
90c8b3d7 | 5 | # Conditional build: |
df34cb17 | 6 | %bcond_with dbus # build with dbus support |
90c8b3d7 | 7 | # |
8 | Summary: Service daemon for mediating access to a GPS | |
7704e599 | 9 | Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em |
90c8b3d7 | 10 | Name: gpsd |
a7db052a | 11 | Version: 2.33 |
df34cb17 | 12 | Release: 1.1 |
90c8b3d7 | 13 | License: BSD |
14 | Group: Daemons | |
15 | Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz | |
a7db052a | 16 | # Source0-md5: 03b57754091e4a34e27c78e1dc35c55e |
90c8b3d7 | 17 | Patch0: %{name}-ncurses.patch |
18 | URL: http://gpsd.berlios.de/ | |
4d5d1f20 | 19 | BuildRequires: XFree86-devel |
90c8b3d7 | 20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
df34cb17 | 22 | %if %{with dbus} |
90c8b3d7 | 23 | BuildRequires: dbus-devel |
24 | BuildRequires: dbus-glib-devel | |
25 | %endif | |
4d5d1f20 JB |
26 | BuildRequires: ncurses-devel |
27 | BuildRequires: openmotif-devel | |
28 | Requires: %{name}-libs = %{version}-%{release} | |
90c8b3d7 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
4d5d1f20 | 31 | %define _appdefsdir /usr/X11R6/lib/X11/app-defaults |
90c8b3d7 | 32 | |
33 | %description | |
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. | |
42 | ||
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. | |
50 | ||
21673dc2 JR |
51 | %description -l pl.UTF-8 |
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 | |
4d5d1f20 JB |
59 | 0183. Dostarczona jest biblioteka kliencka dla aplikacji. |
60 | ||
21673dc2 JR |
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. | |
4d5d1f20 JB |
67 | |
68 | %package libs | |
69 | Summary: GPS client library | |
7704e599 | 70 | Summary(pl.UTF-8): Biblioteka kliencka GPS |
4d5d1f20 JB |
71 | Group: Libraries |
72 | ||
73 | %description libs | |
74 | GPS client library. | |
75 | ||
21673dc2 | 76 | %description libs -l pl.UTF-8 |
4d5d1f20 JB |
77 | Biblioteka kliencka GPS. |
78 | ||
79 | %package devel | |
90c8b3d7 | 80 | Summary: Client libraries in C and Python for talking to a running gpsd or GPS |
7704e599 | 81 | Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em |
90c8b3d7 | 82 | Group: Development/Libraries |
4d5d1f20 | 83 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 84 | |
4d5d1f20 | 85 | %description devel |
90c8b3d7 | 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. | |
89 | ||
21673dc2 JR |
90 | %description devel -l pl.UTF-8 |
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. | |
4d5d1f20 JB |
94 | |
95 | %package static | |
96 | Summary: Static GPS client library | |
7704e599 | 97 | Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS |
4d5d1f20 JB |
98 | Group: Development/Libraries |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | ||
101 | %description static | |
102 | Static GPS client library. | |
103 | ||
21673dc2 | 104 | %description static -l pl.UTF-8 |
4d5d1f20 JB |
105 | Statyczna biblioteka kliencka GPS. |
106 | ||
107 | %package clients | |
90c8b3d7 | 108 | Summary: Clients for gpsd with an X interface |
7704e599 | 109 | Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X |
90c8b3d7 | 110 | Group: Applications/System |
4d5d1f20 | 111 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 112 | |
4d5d1f20 | 113 | %description clients |
90c8b3d7 | 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. | |
117 | ||
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 | |
4d5d1f20 | 121 | -rv (reverse video) and -nc (needle color) options. |
90c8b3d7 | 122 | |
123 | cgps resembles xgps, but without the pictorial satellite display. It | |
124 | can run on a serial terminal or terminal emulator. | |
125 | ||
21673dc2 JR |
126 | %description clients -l pl.UTF-8 |
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. | |
4d5d1f20 | 130 | |
21673dc2 JR |
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 | |
4d5d1f20 JB |
134 | video - odwrotny obraz) i -nc (needle color). |
135 | ||
136 | cgps jest podobny do xgps, ale bez rysunkowego przedstawiania | |
21673dc2 | 137 | satelitów. Może działać na terminalu szeregowym lub emulatorze |
4d5d1f20 JB |
138 | terminala. |
139 | ||
90c8b3d7 | 140 | %prep |
141 | %setup -q | |
142 | %patch0 -p1 | |
143 | ||
144 | %build | |
145 | %{__aclocal} | |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
df34cb17 | 149 | %configure \ |
4d5d1f20 | 150 | %{?with_dbus:--enable-dbus} |
df34cb17 | 151 | |
90c8b3d7 | 152 | %{__make} |
153 | %{__python} -c "import compiler;compiler.compileFile('gps.py')" | |
154 | %{__python} -c "import compiler;compiler.compileFile('gpsfake.py')" | |
155 | ||
156 | %install | |
157 | rm -rf $RPM_BUILD_ROOT | |
4d5d1f20 | 158 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/gpsd} |
90c8b3d7 | 159 | |
160 | %{__make} install \ | |
161 | DESTDIR=$RPM_BUILD_ROOT | |
162 | ||
4d5d1f20 JB |
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 | |
90c8b3d7 | 168 | |
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
4d5d1f20 JB |
172 | %post libs -p /sbin/ldconfig |
173 | %postun libs -p /sbin/ldconfig | |
90c8b3d7 | 174 | |
175 | %files | |
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 | |
90c8b3d7 | 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 | |
188 | ||
4d5d1f20 | 189 | %files libs |
90c8b3d7 | 190 | %defattr(644,root,root,755) |
4d5d1f20 | 191 | %attr(755,root,root) %{_libdir}/libgps.so.*.*.* |
90c8b3d7 | 192 | |
4d5d1f20 | 193 | %files devel |
90c8b3d7 | 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 | |
4d5d1f20 JB |
198 | %attr(755,root,root) %{_libdir}/libgps.so |
199 | %{_libdir}/libgps.la | |
90c8b3d7 | 200 | %{py_sitedir}/gpsfake.pyc |
201 | %{_includedir}/gps.h | |
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* | |
4d5d1f20 JB |
212 | |
213 | %files static | |
214 | %defattr(644,root,root,755) | |
215 | %{_libdir}/libgps.a | |
216 | ||
217 | %files clients | |
218 | %defattr(644,root,root,755) | |
219 | %attr(755,root,root) %{_bindir}/xgps | |
220 | %attr(755,root,root) %{_bindir}/xgpsspeed | |
a7db052a | 221 | %attr(755,root,root) %{_bindir}/cgpxlogger |
4d5d1f20 JB |
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* | |
a7db052a | 226 | %{_mandir}/man1/cgps.1* |
227 | %{_mandir}/man1/cgpxlogger.1* | |
228 | %{_mandir}/man1/gps.1* | |
229 | %{_mandir}/man1/xgpsspeed.1* | |
4d5d1f20 JB |
230 | %{_mandir}/man1/gpspipe.1* |
231 | %{?with_dbus: %{_mandir}/man1/gpxlogger.1*} | |
232 | %{_appdefsdir}/xgps | |
233 | %{_appdefsdir}/xgpsspeed |