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