]> git.pld-linux.org Git - packages/gpsd.git/blame - gpsd.spec
- rel 1; builds
[packages/gpsd.git] / gpsd.spec
CommitLineData
4d5d1f20 1#
dc7c690b 2# TODO:
dc7c690b 3# - fix pysitedir???
4a2c2802 4#
90c8b3d7 5# Conditional build:
3c22fb66 6%bcond_without dbus # build without dbus support
2bfd87da 7%bcond_without x # build without X Window System 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
9f13a9eb 12Version: 2.94
b88610fc 13Release: 1
90c8b3d7 14License: BSD
15Group: Daemons
16Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
9f13a9eb 17# Source0-md5: ce70bcd707ac1df861d4c72f503c09d1
b88610fc 18Patch0: %{name}-link.patch
90c8b3d7 19URL: http://gpsd.berlios.de/
df34cb17 20%if %{with dbus}
90c8b3d7 21BuildRequires: dbus-devel
22BuildRequires: dbus-glib-devel
23%endif
76626dbc 24BuildRequires: docbook-dtd412-xml
9f13a9eb 25BuildRequires: docbook-style-xsl
76626dbc 26BuildRequires: libstdc++-devel
b88610fc 27BuildRequires: libusb-devel
76626dbc 28BuildRequires: libxslt-progs
4d5d1f20 29BuildRequires: ncurses-devel
76626dbc 30%{?with_x:BuildRequires: openmotif-devel}
31BuildRequires: pkgconfig
4116cf5e
JK
32BuildRequires: python-devel
33BuildRequires: rpm-pythonprov
76626dbc 34BuildRequires: xmlto
35%{?with_x:BuildRequires: xorg-lib-libXaw-devel}
4d5d1f20 36Requires: %{name}-libs = %{version}-%{release}
4a2c2802 37Requires: udev-core >= 1:127
90c8b3d7 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
3c22fb66 40%define _appdefsdir /usr/share/X11/app-defaults
4a2c2802 41%define udevdir /lib/udev
90c8b3d7 42
43%description
44gpsd is a service daemon that mediates access to a GPS sensor
45connected to the host computer by serial or USB interface, making its
46data on the location/course/velocity of the sensor available to be
47queried on TCP port 2947 of the host computer. With gpsd, multiple GPS
48client applications (such as navigational and wardriving software) can
49share access to a GPS without contention or loss of data. Also, gpsd
50responds to queries with a format that is substantially easier to
51parse than NMEA 0183. A client library is provided for applications.
52
53After installing this RPM, gpsd will automatically connect to USB
54GPSes when they are plugged in and requires no configuration. For
55serial GPSes, you will need to start gpsd by hand. Once connected, the
56daemon automatically discovers the correct baudrate, stop bits, and
57protocol. The daemon will be quiescent when there are no clients
58asking for location information, and copes gracefully when the GPS is
59unplugged and replugged.
60
21673dc2
JR
61%description -l pl.UTF-8
62gpsd to demon usługi pośredniczącej w dostępie do sensora GPS
63połączonego z komputerem poprzez interfejs szeregowy lub USB,
64udostępniający dane o położeniu, kierunku ruchu i prędkości z sensora
65na porcie TCP 2947 komputera. Przy użyciu gpsd wiele aplikacji
66klienckich GPS (takich jak oprogramowanie nawigacyjne) może
67współdzielić dostęp do GPS-a bez utraty danych. Ponadto gpsd odpowiada
68na zapytania w formacie znacznie łatwiejszym do przetworzenia niż NMEA
4d5d1f20
JB
690183. Dostarczona jest biblioteka kliencka dla aplikacji.
70
21673dc2
JR
71Po zainstalowaniu tego pakietu gpsd będzie się automatycznie łączył z
72GPS-ami USB po podłączeniu ich. Dla GPS-ów szeregowych trzeba
73uruchomić gpsd ręcznie. Po poączeniu demon automatycznie wykrywa
74właściwą prędkość, liczbę bitów stopu i protokół. Demon oczekuje
75spokojnie kiedy nie ma klientów i radzi sobie dobrze z odłączaniem i
76ponownym podłączaniem GPS-a.
4d5d1f20
JB
77
78%package libs
dc7c690b 79Summary: GPSd client library
80Summary(pl.UTF-8): Biblioteka kliencka GPSd
4d5d1f20
JB
81Group: Libraries
82
83%description libs
dc7c690b 84GPSd client library.
4d5d1f20 85
21673dc2 86%description libs -l pl.UTF-8
dc7c690b 87Biblioteka kliencka GPSd.
4d5d1f20
JB
88
89%package devel
90c8b3d7 90Summary: Client libraries in C and Python for talking to a running gpsd or GPS
7704e599 91Summary(pl.UTF-8): Biblioteki klienckie dla C i Pythona do komunikacji z gpsd lub GPS-em
90c8b3d7 92Group: Development/Libraries
4d5d1f20 93Requires: %{name}-libs = %{version}-%{release}
90c8b3d7 94
4d5d1f20 95%description devel
90c8b3d7 96This package provides C header files for the gpsd shared libraries
97that manage access to a GPS for applications; also Python modules. You
98will need to have gpsd installed for it to work.
99
21673dc2
JR
100%description devel -l pl.UTF-8
101Ten pakiet zawiera pliki nagłówkowe C dla bibliotek współdzielonych
102gpsd zarządzających dostępem do GPS-a dla aplikacji, a także moduły
103Pythona. Do działania bibliotek potrzebny jest gpsd.
4d5d1f20
JB
104
105%package static
106Summary: Static GPS client library
7704e599 107Summary(pl.UTF-8): Statyczna biblioteka kliencka GPS
4d5d1f20
JB
108Group: Development/Libraries
109Requires: %{name}-devel = %{version}-%{release}
110
111%description static
112Static GPS client library.
113
21673dc2 114%description static -l pl.UTF-8
4d5d1f20
JB
115Statyczna biblioteka kliencka GPS.
116
4116cf5e
JK
117%package -n python-gps
118Summary: Python GPSd client library
119Summary(pl.UTF-8): Biblioteka kliencka GPSd dla Pythona
120Group: Libraries/Python
121Requires: %{name}-libs = %{version}-%{release}
122
123%description -n python-gps
124GPSd client library for Python.
125
126%description -n python-gps -l pl.UTF-8
127Biblioteka kliencka GPSd dla Pythona.
128
4d5d1f20 129%package clients
2f6e6399
JB
130Summary: Clients for gpsd
131Summary(pl.UTF-8): Aplikacje klienckie dla gpsd
132Group: Applications/System
133Requires: %{name}-libs = %{version}-%{release}
134
135%description clients
136cgps is a simple test client for gpsd. It displays current GPS
137position/time/velocity information and (for GPSes that support the
138feature) the locations of accessible satellites. cgps resembles xgps,
139but without the pictorial satellite display. It can run on a serial
140terminal or terminal emulator.
141
142%description clients -l pl.UTF-8
143cgps to prosty klient testowy dla gpsd. Wyświetla bieżące informacje
144GPS o położeniu, czasie i prędkości oraz (w przypadku GPS-ów
145obsługujących to) położenia dostępnych satelitów. Jest podobny do
146xgps, ale nie ma rysunkowego przedstawiania satelitów. Może działać na
147terminalu szeregowym lub emulatorze terminala.
148
149%package clients-gui
90c8b3d7 150Summary: Clients for gpsd with an X interface
7704e599 151Summary(pl.UTF-8): Aplikacje klienckie z interfejsem X
90c8b3d7 152Group: Applications/System
4d5d1f20 153Requires: %{name}-libs = %{version}-%{release}
3c22fb66 154Requires: xorg-lib-libXt >= 1.0.0
90c8b3d7 155
2f6e6399 156%description clients-gui
90c8b3d7 157xgps is a simple test client for gpsd with an X interface. It displays
158current GPS position/time/velocity information and (for GPSes that
159support the feature) the locations of accessible satellites.
160
161xgpsspeed is a speedometer that uses position information from the
2f6e6399 162GPS.
90c8b3d7 163
2f6e6399 164%description clients-gui -l pl.UTF-8
21673dc2
JR
165xgps to prosty klient testowy dla gpsd z interfejsem X. Wyświetla
166bieżące informacje GPS o położeniu, czasie i prędkości oraz (w
167przypadku GPS-ów obsługujących to) położenia dostępnych satelitów.
4d5d1f20 168
21673dc2 169xgpsspeed to prędkościomierz używający informacji o położeniu z GPS-a.
4d5d1f20 170
90c8b3d7 171%prep
172%setup -q
b88610fc
AM
173%patch0 -p1
174sed -i -e 's#/usr/lib/libusb-\*\.so#/usr/%{_lib}/libusb-*.so#g' configure*
90c8b3d7 175
176%build
b88610fc
AM
177%{__libtoolize}
178%{__aclocal}
179%{__autoconf}
180%configure CPPFLAGS="-I%{_includedir}/ncurses $(pkg-config --cflags-only-I libusb-1.0)" \
6a7f969b 181 %{?with_dbus:--enable-dbus} \
2f6e6399 182 %{!?with_x:--without-x}
df34cb17 183
d8a2c1af 184%{__make} -j1
90c8b3d7 185
186%install
187rm -rf $RPM_BUILD_ROOT
2f6e6399 188install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_datadir}/%{name}}
2bfd87da 189install -d $RPM_BUILD_ROOT{%{udevdir},/etc/{udev/rules.d,sysconfig}}
90c8b3d7 190
d8a2c1af 191%{__make} -j1 install \
90c8b3d7 192 DESTDIR=$RPM_BUILD_ROOT
193
6a7f969b 194install gpsd.hotplug gpsd.hotplug.wrapper $RPM_BUILD_ROOT%{udevdir}
378fdacb 195#install gpsd.udev $RPM_BUILD_ROOT/etc/udev/rules.d/25-gpsd.rules
196#install gpsd.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/gpsd
4d5d1f20 197install dgpsip-servers $RPM_BUILD_ROOT%{_datadir}/gpsd/dgpsip-servers
90c8b3d7 198
2f6e6399 199%if %{with x}
2f6e6399
JB
200install -D xgpsspeed.ad $RPM_BUILD_ROOT%{_appdefsdir}/xgpsspeed
201%endif
4116cf5e 202
378fdacb 203%py_comp $RPM_BUILD_ROOT%{py_sitedir}
204%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
4116cf5e
JK
205%py_postclean
206
90c8b3d7 207%clean
208rm -rf $RPM_BUILD_ROOT
209
4d5d1f20
JB
210%post libs -p /sbin/ldconfig
211%postun libs -p /sbin/ldconfig
90c8b3d7 212
213%files
214%defattr(644,root,root,755)
dc7c690b 215%doc README INSTALL COPYING TODO AUTHORS
90c8b3d7 216%attr(755,root,root) %{_sbindir}/gpsd
810597c4 217%attr(755,root,root) %{_bindir}/gpsmon
90c8b3d7 218%{_mandir}/man8/gpsd.8*
810597c4 219%{_mandir}/man1/gpsmon.1*
d020b7f3
AM
220%attr(755,root,root) %{udevdir}/gpsd.hotplug
221%attr(755,root,root) %{udevdir}/gpsd.hotplug.wrapper
378fdacb 222#/etc/udev/rules.d/25-gpsd.rules
223#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/gpsd
dc7c690b 224%dir %{_datadir}/%{name}
90c8b3d7 225%{_datadir}/gpsd/dgpsip-servers
4a2c2802 226
4d5d1f20 227%files libs
90c8b3d7 228%defattr(644,root,root,755)
9f13a9eb
CM
229%attr(755,root,root) %{_libdir}/libgps.so
230%attr(755,root,root) %{_libdir}/libgpsd.so.*
4d5d1f20 231%attr(755,root,root) %{_libdir}/libgps.so.*.*.*
378fdacb 232%attr(755,root,root) %ghost %{_libdir}/libgps.so.19
90c8b3d7 233
4d5d1f20 234%files devel
90c8b3d7 235%defattr(644,root,root,755)
810597c4 236%attr(755,root,root) %{_bindir}/gpsdecode
4d5d1f20 237%attr(755,root,root) %{_libdir}/libgps.so
b88610fc 238%attr(755,root,root) %{_libdir}/libgpsd.so
4d5d1f20 239%{_libdir}/libgps.la
9f13a9eb 240%{_libdir}/libgpsd.la
90c8b3d7 241%{_includedir}/gps.h
90c8b3d7 242%{_includedir}/gpsd.h
2f6e6399 243%{_includedir}/libgpsmm.h
2bfd87da
JB
244%{_pkgconfigdir}/libgps.pc
245%{_pkgconfigdir}/libgpsd.pc
810597c4 246%{_mandir}/man1/gpsdecode.1*
90c8b3d7 247%{_mandir}/man3/libgps.3*
90c8b3d7 248%{_mandir}/man3/libgpsd.3*
2f6e6399 249%{_mandir}/man3/libgpsmm.3*
90c8b3d7 250%{_mandir}/man5/rtcm-104.5*
251%{_mandir}/man5/srec.5*
4d5d1f20
JB
252
253%files static
254%defattr(644,root,root,755)
255%{_libdir}/libgps.a
9f13a9eb 256%{_libdir}/libgpsd.a
4d5d1f20 257
4116cf5e
JK
258%files -n python-gps
259%defattr(644,root,root,755)
2f6e6399
JB
260%attr(755,root,root) %{_bindir}/gpscat
261%attr(755,root,root) %{_bindir}/gpsfake
262%attr(755,root,root) %{_bindir}/gpsprof
810597c4 263%{py_sitescriptdir}/gpscap.py[co]
378fdacb 264
265%dir %{py_sitedir}/gps
266%attr(755,root,root) %{py_sitedir}/gps/*.so
267%{py_sitedir}/gps/*.py[co]
268%{py_sitedir}/*.egg*
269
2f6e6399
JB
270%{_mandir}/man1/gpscat.1*
271%{_mandir}/man1/gpsfake.1*
272%{_mandir}/man1/gpsprof.1*
4116cf5e 273
4d5d1f20
JB
274%files clients
275%defattr(644,root,root,755)
dc7c690b 276%attr(755,root,root) %{_bindir}/gpsctl
4d5d1f20
JB
277%attr(755,root,root) %{_bindir}/cgps
278%attr(755,root,root) %{_bindir}/gpspipe
3c22fb66 279%{?with_dbus:%attr(755,root,root) %{_bindir}/gpxlogger}
dc7c690b 280%{_mandir}/man1/gpsctl.1*
a7db052a 281%{_mandir}/man1/cgps.1*
378fdacb 282#%{_mandir}/man1/cgpxlogger.1*
a7db052a 283%{_mandir}/man1/gps.1*
4d5d1f20 284%{_mandir}/man1/gpspipe.1*
2f6e6399
JB
285
286%if %{with x}
287%files clients-gui
288%defattr(644,root,root,755)
810597c4 289%attr(755,root,root) %{_bindir}/lcdgps
2f6e6399
JB
290%attr(755,root,root) %{_bindir}/xgps
291%attr(755,root,root) %{_bindir}/xgpsspeed
4d5d1f20 292%{_appdefsdir}/xgpsspeed
b88610fc 293%{_mandir}/man1/lcdgps.1*
2f6e6399
JB
294%{_mandir}/man1/xgps.1*
295%{_mandir}/man1/xgpsspeed.1*
296%endif
This page took 0.106233 seconds and 4 git commands to generate.