]> git.pld-linux.org Git - packages/gpsd.git/blame - gpsd.spec
- up to 2.37
[packages/gpsd.git] / gpsd.spec
CommitLineData
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#
9Summary: Service daemon for mediating access to a GPS
7704e599 10Summary(pl.UTF-8): Oprogramowanie komunikujące się z GPS-em
90c8b3d7 11Name: gpsd
dc7c690b 12Version: 2.37
13Release: 0.1
90c8b3d7 14License: BSD
15Group: Daemons
16Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
dc7c690b 17# Source0-md5: 6c96cc0b2df0279cb7baac1ebc5881d3
90c8b3d7 18Patch0: %{name}-ncurses.patch
19URL: http://gpsd.berlios.de/
90c8b3d7 20BuildRequires: autoconf
21BuildRequires: automake
df34cb17 22%if %{with dbus}
90c8b3d7 23BuildRequires: dbus-devel
24BuildRequires: dbus-glib-devel
25%endif
4d5d1f20
JB
26BuildRequires: ncurses-devel
27BuildRequires: openmotif-devel
aa3a47e8 28BuildRequires: xorg-lib-libXaw-devel
4d5d1f20 29Requires: %{name}-libs = %{version}-%{release}
90c8b3d7 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
dc7c690b 32%define _appdefsdir /usr/lib/X11/app-defaults
90c8b3d7 33
34%description
35gpsd is a service daemon that mediates access to a GPS sensor
36connected to the host computer by serial or USB interface, making its
37data on the location/course/velocity of the sensor available to be
38queried on TCP port 2947 of the host computer. With gpsd, multiple GPS
39client applications (such as navigational and wardriving software) can
40share access to a GPS without contention or loss of data. Also, gpsd
41responds to queries with a format that is substantially easier to
42parse than NMEA 0183. A client library is provided for applications.
43
44After installing this RPM, gpsd will automatically connect to USB
45GPSes when they are plugged in and requires no configuration. For
46serial GPSes, you will need to start gpsd by hand. Once connected, the
47daemon automatically discovers the correct baudrate, stop bits, and
48protocol. The daemon will be quiescent when there are no clients
49asking for location information, and copes gracefully when the GPS is
50unplugged and replugged.
51
21673dc2
JR
52%description -l pl.UTF-8
53gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
54połączonego z komputerem poprzez interfejs szeregowy lub USB,
55udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
56na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
57klienckich GPS (takich jak oprogramowanie nawigacyjne) może
58współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
59na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
4d5d1f20
JB
600183. Dostarczona jest biblioteka kliencka dla aplikacji.
61
21673dc2
JR
62Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
63GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
64uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
65właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
66spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
67ponownym podłączaniem GPS-a.
4d5d1f20
JB
68
69%package libs
dc7c690b 70Summary: GPSd client library
71Summary(pl.UTF-8): Biblioteka kliencka GPSd
4d5d1f20
JB
72Group: Libraries
73
74%description libs
dc7c690b 75GPSd client library.
4d5d1f20 76
21673dc2 77%description libs -l pl.UTF-8
dc7c690b 78Biblioteka kliencka GPSd.
4d5d1f20
JB
79
80%package devel
90c8b3d7 81Summary: Client libraries in C and Python for talking to a running gpsd or GPS
7704e599 82Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
90c8b3d7 83Group: Development/Libraries
4d5d1f20 84Requires: %{name}-libs = %{version}-%{release}
90c8b3d7 85
4d5d1f20 86%description devel
90c8b3d7 87This package provides C header files for the gpsd shared libraries
88that manage access to a GPS for applications; also Python modules. You
89will need to have gpsd installed for it to work.
90
21673dc2
JR
91%description devel -l pl.UTF-8
92Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
93gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
94Pythona. Do działania bibliotek potrzebny jest gpsd.
4d5d1f20
JB
95
96%package static
97Summary: Static GPS client library
7704e599 98Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS
4d5d1f20
JB
99Group: Development/Libraries
100Requires: %{name}-devel = %{version}-%{release}
101
102%description static
103Static GPS client library.
104
21673dc2 105%description static -l pl.UTF-8
4d5d1f20
JB
106Statyczna biblioteka kliencka GPS.
107
108%package clients
90c8b3d7 109Summary: Clients for gpsd with an X interface
7704e599 110Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X
90c8b3d7 111Group: Applications/System
4d5d1f20 112Requires: %{name}-libs = %{version}-%{release}
90c8b3d7 113
4d5d1f20 114%description clients
90c8b3d7 115xgps is a simple test client for gpsd with an X interface. It displays
116current GPS position/time/velocity information and (for GPSes that
117support the feature) the locations of accessible satellites.
118
119xgpsspeed is a speedometer that uses position information from the
120GPS. It accepts an -h option and optional argument as for gps, or a -v
121option to dump the package version and exit. Additionally, it accepts
4d5d1f20 122-rv (reverse video) and -nc (needle color) options.
90c8b3d7 123
124cgps resembles xgps, but without the pictorial satellite display. It
125can run on a serial terminal or terminal emulator.
126
21673dc2
JR
127%description clients -l pl.UTF-8
128xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
129bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
130przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
4d5d1f20 131
21673dc2
JR
132xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
133Przyjmuje opcję -h i opcjonalnie argument taki jak gps lub opcję -v w
134celu wyświetlenia wersji pakietu. Ponadto przyjmuje opcje -rv (reverse
4d5d1f20
JB
135video - odwrotny obraz) i -nc (needle color).
136
137cgps jest podobny do xgps, ale bez rysunkowego przedstawiania
21673dc2 138satelitów. Może działać na terminalu szeregowym lub emulatorze
4d5d1f20
JB
139terminala.
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
159rm -rf $RPM_BUILD_ROOT
dc7c690b 160install -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
166install gpsd.hotplug gpsd.usermap $RPM_BUILD_ROOT%{_sysconfdir}/hotplug/usb
167install xgps.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgps
168install xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
169install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
90c8b3d7 170
171%clean
172rm -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
This page took 0.172659 seconds and 4 git commands to generate.