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