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