]>
Commit | Line | Data |
---|---|---|
4d5d1f20 | 1 | # |
dc7c690b | 2 | # TODO: |
3 | # - integrate udev stuff from Debian (die hotplug, die!) | |
4 | # - fix pysitedir??? | |
5 | # | |
90c8b3d7 | 6 | # Conditional build: |
dc7c690b | 7 | %bcond_without dbus # build with dbus 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 |
dc7c690b | 12 | Version: 2.37 |
13 | Release: 0.1 | |
90c8b3d7 | 14 | License: BSD |
15 | Group: Daemons | |
16 | Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz | |
dc7c690b | 17 | # Source0-md5: 6c96cc0b2df0279cb7baac1ebc5881d3 |
90c8b3d7 | 18 | Patch0: %{name}-ncurses.patch |
19 | URL: http://gpsd.berlios.de/ | |
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 | |
aa3a47e8 | 28 | BuildRequires: xorg-lib-libXaw-devel |
4d5d1f20 | 29 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
dc7c690b | 32 | %define _appdefsdir /usr/lib/X11/app-defaults |
90c8b3d7 | 33 | |
34 | %description | |
35 | gpsd is a service daemon that mediates access to a GPS sensor | |
36 | connected to the host computer by serial or USB interface, making its | |
37 | data on the location/course/velocity of the sensor available to be | |
38 | queried on TCP port 2947 of the host computer. With gpsd, multiple GPS | |
39 | client applications (such as navigational and wardriving software) can | |
40 | share access to a GPS without contention or loss of data. Also, gpsd | |
41 | responds to queries with a format that is substantially easier to | |
42 | parse than NMEA 0183. A client library is provided for applications. | |
43 | ||
44 | After installing this RPM, gpsd will automatically connect to USB | |
45 | GPSes when they are plugged in and requires no configuration. For | |
46 | serial GPSes, you will need to start gpsd by hand. Once connected, the | |
47 | daemon automatically discovers the correct baudrate, stop bits, and | |
48 | protocol. The daemon will be quiescent when there are no clients | |
49 | asking for location information, and copes gracefully when the GPS is | |
50 | unplugged and replugged. | |
51 | ||
21673dc2 JR |
52 | %description -l pl.UTF-8 |
53 | gpsd to demon usługi pośredniczącej w dostępie do sensora GPS | |
54 | połączonego z komputerem poprzez interfejs szeregowy lub USB, | |
55 | udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora | |
56 | na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji | |
57 | klienckich GPS (takich jak oprogramowanie nawigacyjne) może | |
58 | współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada | |
59 | na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA | |
4d5d1f20 JB |
60 | 0183. Dostarczona jest biblioteka kliencka dla aplikacji. |
61 | ||
21673dc2 JR |
62 | Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z |
63 | GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba | |
64 | uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa | |
65 | właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje | |
66 | spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i | |
67 | ponownym podłączaniem GPS-a. | |
4d5d1f20 JB |
68 | |
69 | %package libs | |
dc7c690b | 70 | Summary: GPSd client library |
71 | Summary(pl.UTF-8): Biblioteka kliencka GPSd | |
4d5d1f20 JB |
72 | Group: Libraries |
73 | ||
74 | %description libs | |
dc7c690b | 75 | GPSd client library. |
4d5d1f20 | 76 | |
21673dc2 | 77 | %description libs -l pl.UTF-8 |
dc7c690b | 78 | Biblioteka kliencka GPSd. |
4d5d1f20 JB |
79 | |
80 | %package devel | |
90c8b3d7 | 81 | Summary: Client libraries in C and Python for talking to a running gpsd or GPS |
7704e599 | 82 | Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em |
90c8b3d7 | 83 | Group: Development/Libraries |
4d5d1f20 | 84 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 85 | |
4d5d1f20 | 86 | %description devel |
90c8b3d7 | 87 | This package provides C header files for the gpsd shared libraries |
88 | that manage access to a GPS for applications; also Python modules. You | |
89 | will need to have gpsd installed for it to work. | |
90 | ||
21673dc2 JR |
91 | %description devel -l pl.UTF-8 |
92 | Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych | |
93 | gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły | |
94 | Pythona. Do działania bibliotek potrzebny jest gpsd. | |
4d5d1f20 JB |
95 | |
96 | %package static | |
97 | Summary: Static GPS client library | |
7704e599 | 98 | Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS |
4d5d1f20 JB |
99 | Group: Development/Libraries |
100 | Requires: %{name}-devel = %{version}-%{release} | |
101 | ||
102 | %description static | |
103 | Static GPS client library. | |
104 | ||
21673dc2 | 105 | %description static -l pl.UTF-8 |
4d5d1f20 JB |
106 | Statyczna biblioteka kliencka GPS. |
107 | ||
108 | %package clients | |
90c8b3d7 | 109 | Summary: Clients for gpsd with an X interface |
7704e599 | 110 | Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X |
90c8b3d7 | 111 | Group: Applications/System |
4d5d1f20 | 112 | Requires: %{name}-libs = %{version}-%{release} |
90c8b3d7 | 113 | |
4d5d1f20 | 114 | %description clients |
90c8b3d7 | 115 | xgps is a simple test client for gpsd with an X interface. It displays |
116 | current GPS position/time/velocity information and (for GPSes that | |
117 | support the feature) the locations of accessible satellites. | |
118 | ||
119 | xgpsspeed is a speedometer that uses position information from the | |
120 | GPS. It accepts an -h option and optional argument as for gps, or a -v | |
121 | option to dump the package version and exit. Additionally, it accepts | |
4d5d1f20 | 122 | -rv (reverse video) and -nc (needle color) options. |
90c8b3d7 | 123 | |
124 | cgps resembles xgps, but without the pictorial satellite display. It | |
125 | can run on a serial terminal or terminal emulator. | |
126 | ||
21673dc2 JR |
127 | %description clients -l pl.UTF-8 |
128 | xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla | |
129 | bieżące informacje GPS o położeniu, czasie i prędkości oraz (w | |
130 | przypadku GPS-ów obsługujących to) położenia dostępnych satelitów. | |
4d5d1f20 | 131 | |
21673dc2 JR |
132 | xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a. |
133 | Przyjmuje opcję -h i opcjonalnie argument taki jak gps lub opcję -v w | |
134 | celu wyświetlenia wersji pakietu. Ponadto przyjmuje opcje -rv (reverse | |
4d5d1f20 JB |
135 | video - odwrotny obraz) i -nc (needle color). |
136 | ||
137 | cgps jest podobny do xgps, ale bez rysunkowego przedstawiania | |
21673dc2 | 138 | satelitów. Może działać na terminalu szeregowym lub emulatorze |
4d5d1f20 JB |
139 | terminala. |
140 | ||
90c8b3d7 | 141 | %prep |
142 | %setup -q | |
143 | %patch0 -p1 | |
144 | ||
145 | %build | |
dc7c690b | 146 | %{__libtoolize} |
90c8b3d7 | 147 | %{__aclocal} |
148 | %{__autoconf} | |
149 | %{__autoheader} | |
150 | %{__automake} | |
df34cb17 | 151 | %configure \ |
4d5d1f20 | 152 | %{?with_dbus:--enable-dbus} |
df34cb17 | 153 | |
90c8b3d7 | 154 | %{__make} |
dc7c690b | 155 | #%{__python} -c "import compiler;compiler.compileFile('gps.py')" |
156 | #%{__python} -c "import compiler;compiler.compileFile('gpsfake.py')" | |
90c8b3d7 | 157 | |
158 | %install | |
159 | rm -rf $RPM_BUILD_ROOT | |
dc7c690b | 160 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hotplug/usb,%{py_sitedir},%{_appdefsdir},%{_datadir}/%{name}} |
90c8b3d7 | 161 | |
162 | %{__make} install \ | |
163 | DESTDIR=$RPM_BUILD_ROOT | |
164 | ||
dc7c690b | 165 | #install gps.pyc gpsfake.pyc $RPM_BUILD_ROOT%{py_sitedir} |
4d5d1f20 JB |
166 | install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb |
167 | install xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps | |
168 | install xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed | |
169 | install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers | |
90c8b3d7 | 170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
4d5d1f20 JB |
174 | %post libs -p /sbin/ldconfig |
175 | %postun libs -p /sbin/ldconfig | |
90c8b3d7 | 176 | |
177 | %files | |
178 | %defattr(644,root,root,755) | |
dc7c690b | 179 | %doc README INSTALL COPYING TODO AUTHORS |
90c8b3d7 | 180 | %attr(755,root,root) %{_sbindir}/gpsd |
181 | %attr(755,root,root) %{_bindir}/gpsprof | |
182 | %attr(755,root,root) %{_bindir}/sirfmon | |
90c8b3d7 | 183 | %{_mandir}/man8/gpsd.8* |
184 | %{_mandir}/man1/gpsprof.1* | |
185 | %{_mandir}/man1/sirfmon.1* | |
186 | %{_sysconfdir}/hotplug/usb/gpsd.hotplug | |
187 | %{_sysconfdir}/hotplug/usb/gpsd.usermap | |
dc7c690b | 188 | %dir %{_datadir}/%{name} |
90c8b3d7 | 189 | %{_datadir}/gpsd/dgpsip-servers |
dc7c690b | 190 | #%{py_sitedir}/gps.pyc |
191 | %{_pkgconfigdir}/libgps.pc | |
192 | %{_pkgconfigdir}/libgpsd.pc | |
193 | ||
4d5d1f20 | 194 | %files libs |
90c8b3d7 | 195 | %defattr(644,root,root,755) |
4d5d1f20 | 196 | %attr(755,root,root) %{_libdir}/libgps.so.*.*.* |
90c8b3d7 | 197 | |
4d5d1f20 | 198 | %files devel |
90c8b3d7 | 199 | %defattr(644,root,root,755) |
200 | %attr(755,root,root) %{_bindir}/gpsfake | |
201 | %attr(755,root,root) %{_bindir}/rtcmdecode | |
202 | %attr(755,root,root) %{_bindir}/gpsflash | |
4d5d1f20 JB |
203 | %attr(755,root,root) %{_libdir}/libgps.so |
204 | %{_libdir}/libgps.la | |
dc7c690b | 205 | #%{py_sitedir}/gpsfake.pyc |
90c8b3d7 | 206 | %{_includedir}/gps.h |
207 | %{_includedir}/libgpsmm.h | |
208 | %{_includedir}/gpsd.h | |
209 | %{_mandir}/man1/gpsfake.1* | |
210 | %{_mandir}/man1/rtcmdecode.1* | |
211 | %{_mandir}/man1/gpsflash.1* | |
212 | %{_mandir}/man3/libgps.3* | |
213 | %{_mandir}/man3/libgpsmm.3* | |
214 | %{_mandir}/man3/libgpsd.3* | |
215 | %{_mandir}/man5/rtcm-104.5* | |
216 | %{_mandir}/man5/srec.5* | |
4d5d1f20 JB |
217 | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
220 | %{_libdir}/libgps.a | |
221 | ||
222 | %files clients | |
223 | %defattr(644,root,root,755) | |
dc7c690b | 224 | %attr(755,root,root) %{_bindir}/gpscat |
225 | %attr(755,root,root) %{_bindir}/gpsctl | |
4d5d1f20 JB |
226 | %attr(755,root,root) %{_bindir}/xgps |
227 | %attr(755,root,root) %{_bindir}/xgpsspeed | |
a7db052a | 228 | %attr(755,root,root) %{_bindir}/cgpxlogger |
4d5d1f20 JB |
229 | %attr(755,root,root) %{_bindir}/cgps |
230 | %attr(755,root,root) %{_bindir}/gpspipe | |
231 | %{?with_dbus: %attr(755,root,root) %{_bindir}/gpxlogger} | |
dc7c690b | 232 | %{_mandir}/man1/gpscat.1* |
233 | %{_mandir}/man1/gpsctl.1* | |
4d5d1f20 | 234 | %{_mandir}/man1/xgps.1* |
a7db052a | 235 | %{_mandir}/man1/cgps.1* |
236 | %{_mandir}/man1/cgpxlogger.1* | |
237 | %{_mandir}/man1/gps.1* | |
238 | %{_mandir}/man1/xgpsspeed.1* | |
4d5d1f20 | 239 | %{_mandir}/man1/gpspipe.1* |
4d5d1f20 JB |
240 | %{_appdefsdir}/xgps |
241 | %{_appdefsdir}/xgpsspeed |