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