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