2008-02-28 18:51:06 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
|
|
|
|
Name: gpsd
|
|
|
|
Version: 2.37
|
2009-02-25 00:42:26 +00:00
|
|
|
Release: 4%{?dist}
|
2008-02-28 18:51:06 +00:00
|
|
|
Summary: Service daemon for mediating access to a GPS
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: BSD
|
|
|
|
URL: http://developer.berlios.de/projects/gpsd/
|
|
|
|
Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
|
|
|
|
Source1: xgps.desktop
|
|
|
|
Source2: xgpsspeed.desktop
|
|
|
|
Source3: gpsd-logo.png
|
|
|
|
Patch0: python-pyexecdir-install-gpsd-2.37.patch
|
2008-03-20 00:46:42 +00:00
|
|
|
Patch1: zero.patch
|
2008-02-28 18:51:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2007-02-28 02:49:39 +00:00
|
|
|
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel
|
2006-09-26 21:43:41 +00:00
|
|
|
BuildRequires: lesstif-devel libXaw-devel desktop-file-utils
|
2008-03-20 00:46:42 +00:00
|
|
|
BuildRequires: python
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
2006-04-13 01:09:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
gpsd is a service daemon that mediates access to a GPS sensor
|
|
|
|
connected to the host computer by serial or USB interface, making its
|
|
|
|
data on the location/course/velocity of the sensor available to be
|
|
|
|
queried on TCP port 2947 of the host computer. With gpsd, multiple
|
|
|
|
GPS client applications (such as navigational and wardriving software)
|
|
|
|
can share access to a GPS without contention or loss of data. Also,
|
|
|
|
gpsd responds to queries with a format that is substantially easier to
|
|
|
|
parse than NMEA 0183.
|
|
|
|
|
|
|
|
%package devel
|
2008-02-28 18:51:06 +00:00
|
|
|
Summary: Client libraries in C and Python for talking to a running gpsd or GPS
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
2006-04-13 01:09:39 +00:00
|
|
|
|
|
|
|
%description devel
|
2008-02-28 18:51:06 +00:00
|
|
|
This package provides C header files and python modules for the gpsd shared
|
|
|
|
libraries that manage access to a GPS for applications
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
%package clients
|
|
|
|
Summary: Clients for gpsd
|
|
|
|
Group: Applications/System
|
2006-04-13 01:09:39 +00:00
|
|
|
|
|
|
|
%description clients
|
|
|
|
xgps is a simple test client for gpsd with an X interface. It displays
|
|
|
|
current GPS position/time/velocity information and (for GPSes that
|
|
|
|
support the feature) the locations of accessible satellites.
|
|
|
|
|
|
|
|
xgpsspeed is a speedometer that uses position information from the GPS.
|
|
|
|
It accepts an -h option and optional argument as for gps, or a -v option
|
|
|
|
to dump the package version and exit. Additionally, it accepts -rv
|
|
|
|
(reverse video) and -nc (needle color) options.
|
|
|
|
|
|
|
|
cgps resembles xgps, but without the pictorial satellite display. It
|
|
|
|
can run on a serial terminal or terminal emulator.
|
|
|
|
|
2007-02-28 02:33:12 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2008-02-28 18:51:06 +00:00
|
|
|
%patch0 -p1
|
2008-03-20 00:46:42 +00:00
|
|
|
%patch1 -p0
|
2008-02-28 18:51:06 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
|
|
|
|
%build
|
2006-04-19 19:48:13 +00:00
|
|
|
%configure --enable-dbus --disable-static
|
2008-02-28 18:51:06 +00:00
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2006-04-13 01:09:39 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2008-02-28 18:51:06 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
# X11 defaults
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_datadir}/X11/app-defaults/
|
|
|
|
%{__install} -p -m 0644 xgps.ad %{buildroot}%{_datadir}/X11/app-defaults/xgps
|
|
|
|
%{__install} -p -m 0644 xgpsspeed.ad \
|
|
|
|
%{buildroot}%{_datadir}/X11/app-defaults/xgpsspeed
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
# hotplug script
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/hotplug.d/usb
|
|
|
|
%{__install} -p -m 0644 gpsd.hotplug gpsd.usermap \
|
|
|
|
%{buildroot}%{_sysconfdir}/hotplug.d/usb/
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
# remove .la files
|
2006-04-13 01:09:39 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libgps.la
|
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
# fix non-executable libraries
|
|
|
|
%{__chmod} +x %{buildroot}%{_libdir}/libgps.so.17.0.0
|
|
|
|
%{__chmod} +x %{buildroot}%{python_sitearch}/gpspacket.so
|
|
|
|
|
|
|
|
# fix non-executable python script
|
|
|
|
%{__chmod} +x %{buildroot}%{python_sitearch}/gps.py
|
|
|
|
|
|
|
|
# Install the .desktop files
|
|
|
|
desktop-file-install --vendor fedora \
|
|
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
|
|
--add-category X-Fedora \
|
|
|
|
%{SOURCE1}
|
|
|
|
desktop-file-install --vendor fedora \
|
|
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
|
|
--add-category X-Fedora \
|
|
|
|
%{SOURCE2}
|
|
|
|
|
|
|
|
# Install logo icon for .desktop files
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_datadir}/gpsd
|
|
|
|
%{__install} -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/gpsd/gpsd-logo.png
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2007-06-30 14:23:00 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README INSTALL COPYING
|
|
|
|
%{_sbindir}/gpsd
|
|
|
|
%{_bindir}/gpsprof
|
|
|
|
%{_bindir}/sirfmon
|
2007-02-28 02:33:12 +00:00
|
|
|
%{_bindir}/gpsctl
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_libdir}/libgps.so.*
|
2008-02-28 18:51:06 +00:00
|
|
|
%{python_sitearch}/gps.py*
|
2008-03-20 00:46:42 +00:00
|
|
|
%{python_sitearch}/gpspacket.so
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_mandir}/man8/gpsd.8*
|
|
|
|
%{_mandir}/man1/gpsprof.1*
|
|
|
|
%{_mandir}/man1/sirfmon.1*
|
2007-02-28 02:33:12 +00:00
|
|
|
%{_mandir}/man1/gpsctl.1*
|
|
|
|
%{_sysconfdir}/hotplug.d/usb/gpsd.hotplug
|
|
|
|
%{_sysconfdir}/hotplug.d/usb/gpsd.usermap
|
2006-04-13 01:09:39 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2007-02-28 02:33:12 +00:00
|
|
|
%doc TODO
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_bindir}/gpsfake
|
|
|
|
%{_bindir}/rtcmdecode
|
|
|
|
%{_bindir}/gpsflash
|
|
|
|
%{_libdir}/libgps.so
|
2008-02-28 18:51:06 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{python_sitearch}/gpsfake*
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_includedir}/gps.h
|
|
|
|
%{_includedir}/libgpsmm.h
|
|
|
|
%{_includedir}/gpsd.h
|
|
|
|
%{_mandir}/man1/gpsfake.1*
|
|
|
|
%{_mandir}/man1/rtcmdecode.1*
|
|
|
|
%{_mandir}/man1/gpsflash.1*
|
|
|
|
%{_mandir}/man3/libgps.3*
|
|
|
|
%{_mandir}/man3/libgpsmm.3*
|
|
|
|
%{_mandir}/man3/libgpsd.3*
|
|
|
|
%{_mandir}/man5/rtcm-104.5*
|
|
|
|
%{_mandir}/man5/srec.5*
|
|
|
|
|
|
|
|
%files clients
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/xgps
|
|
|
|
%{_bindir}/xgpsspeed
|
|
|
|
%{_bindir}/cgps
|
|
|
|
%{_bindir}/gpspipe
|
|
|
|
%{_bindir}/gpxlogger
|
|
|
|
%{_bindir}/cgpxlogger
|
2007-02-28 02:33:12 +00:00
|
|
|
%{_bindir}/gpscat
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_mandir}/man1/gps.1*
|
|
|
|
%{_mandir}/man1/gpspipe.1*
|
2006-07-20 15:00:50 +00:00
|
|
|
%{_mandir}/man1/xgps.1*
|
|
|
|
%{_mandir}/man1/xgpsspeed.1*
|
|
|
|
%{_mandir}/man1/cgps.1*
|
2007-02-28 02:33:12 +00:00
|
|
|
%{_mandir}/man1/gpscat.1*
|
2006-07-20 15:00:50 +00:00
|
|
|
%{_mandir}/man1/cgpxlogger.1*
|
2008-02-28 18:51:06 +00:00
|
|
|
%{_datadir}/X11/app-defaults/xgps
|
|
|
|
%{_datadir}/X11/app-defaults/xgpsspeed
|
2006-04-13 01:09:39 +00:00
|
|
|
%{_datadir}/applications/*.desktop
|
2007-06-30 14:23:00 +00:00
|
|
|
%dir %{_datadir}/gpsd
|
2007-06-30 14:33:14 +00:00
|
|
|
%{_datadir}/gpsd/gpsd-logo.png
|
2006-04-13 01:09:39 +00:00
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
%changelog
|
2009-02-25 00:42:26 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.37-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-29 16:37:10 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.37-3
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-03-20 00:46:42 +00:00
|
|
|
* Wed Mar 19 2008 Douglas E. Warner <silfreed@silfreed.net> - 2.37-2
|
|
|
|
- moving gpspacket.so python lib to main package
|
|
|
|
- adding zero.patch to make ZEROIZE error go away on fedora 7
|
|
|
|
|
2008-02-28 18:51:06 +00:00
|
|
|
* Wed Feb 27 2008 Douglas E. Warner <silfreed@silfreed.net> - 2.37-1
|
|
|
|
- update to 2.37
|
|
|
|
- removed install-gpsd_config.h.patch
|
|
|
|
- installed pkgconfig files in devel package
|
|
|
|
- added patch to install python modules in sitearch
|
|
|
|
- removing rpath from inclucded libtool
|
|
|
|
- moving X11 app-defaults to datadir
|
|
|
|
- using macros for commands in install; using install instead of cp and mkdir
|
|
|
|
- cleaning up spaces/tabs for rpmlint
|
|
|
|
|
2008-02-19 23:59:36 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.34-9
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-19 13:19:27 +00:00
|
|
|
* Sun Aug 19 2007 Matthew Truch <matt at truch.net> - 2.34-8
|
|
|
|
- Patch Makefile to also install gpsd_config.h as needed by
|
|
|
|
libgpsmm.h. Redhat BZ 253433.
|
|
|
|
|
2007-06-30 14:59:30 +00:00
|
|
|
* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-7
|
|
|
|
- Make sure the logo is actually included (via the spec file).
|
|
|
|
I need to wake up before I try even trivial updates.
|
|
|
|
|
2007-06-30 14:41:10 +00:00
|
|
|
* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-6
|
|
|
|
- Learn how to use search and replace (aka fix all instances of
|
|
|
|
gpsd-logo.png spelled incorrectly as gspd-logo.png).
|
|
|
|
|
2007-06-30 14:33:14 +00:00
|
|
|
* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-5
|
|
|
|
- Fix desktop file and logo file name.
|
|
|
|
|
2007-06-30 14:23:00 +00:00
|
|
|
* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-4
|
|
|
|
- Include icon for .desktop files per BZ 241428
|
|
|
|
|
2007-03-20 19:59:05 +00:00
|
|
|
* Tue Mar 20 2007 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.34-3
|
|
|
|
- Bump release for FE5 -> Fedora 7 upgrade path.
|
|
|
|
|
2007-02-28 02:49:39 +00:00
|
|
|
* Tue Feb 27 2007 Matthew Truch <matt at truch.net> - 2.34-2
|
|
|
|
- BR python-devel instead of python to make it build.
|
|
|
|
|
2007-02-28 02:33:12 +00:00
|
|
|
* Tue Feb 27 2007 Matthew Truch <matt at truch.net> - 2.34-1
|
|
|
|
- Upgrade to 2.34.
|
|
|
|
- Get rid of %%makeinstall (which was never needed).
|
|
|
|
- Possibly fix hotplug issuses (BZ 219750).
|
|
|
|
- Use %%python_sitelib for python site-files stuff.
|
|
|
|
|
2006-12-09 22:33:58 +00:00
|
|
|
* Sat Dec 9 2006 Matthew Truch <matt at truch.net> - 2.33-6
|
|
|
|
- Rebuild to pull in new version of python.
|
|
|
|
|
2006-09-26 21:43:41 +00:00
|
|
|
* Tue Sep 26 2006 Matthew Truch <matt at truch.net> - 2.33-5
|
|
|
|
- Remove openmotif requirment, and switch to lesstif.
|
|
|
|
|
2006-08-28 11:16:33 +00:00
|
|
|
* Mon Aug 28 2006 Matthew Truch <matt at truch.net> - 2.33-4
|
|
|
|
- Bump release for rebuild in prep. for FC6.
|
|
|
|
|
2006-07-20 17:15:42 +00:00
|
|
|
* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-3
|
2008-02-28 18:51:06 +00:00
|
|
|
- Actually, was a missing BR glib-dbus-devel. Ooops.
|
2006-07-20 17:15:42 +00:00
|
|
|
|
2006-07-20 16:28:56 +00:00
|
|
|
* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-2
|
|
|
|
- Missing BR glib-devel
|
|
|
|
|
2006-07-20 15:00:50 +00:00
|
|
|
* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-1
|
|
|
|
- Update to version 2.33
|
|
|
|
|
2006-04-19 19:48:13 +00:00
|
|
|
* Wed Apr 19 2006 Matthew Truch <matt at truch.net> - 2.32-5
|
|
|
|
- Don't --enable-tnt in build as it causes some gpses to not work
|
|
|
|
properly with sattelite view mode. See bugzilla bug 189220.
|
|
|
|
|
2006-04-13 22:20:55 +00:00
|
|
|
* Thu Apr 13 2006 Matthew Truch <matt at truch.net> - 2.32-4
|
|
|
|
- Add dbus-glib to BuildRequires as needed for build.
|
|
|
|
|
2006-04-13 01:09:39 +00:00
|
|
|
* Sun Apr 9 2006 Matthew Truch <matt at truch.net> - 2.32-3
|
|
|
|
- Include xmlto and python in buildrequires so things build right.
|
|
|
|
- Don't package static library file.
|
|
|
|
|
|
|
|
* Wed Apr 5 2006 Matthew Truch <matt at truch.net> - 2.32-2
|
|
|
|
- Use ye olde %%{?dist} tag.
|
|
|
|
|
|
|
|
* Wed Apr 5 2006 Matthew Truch <matt at truch.net> - 2.32-1
|
|
|
|
- Initial Fedora Extras specfile
|