summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMichael R. Davis <mrdvt@cpan.org>2010-07-05 21:23:34 +0000
committerBernd Zeimetz <bernd@bzed.de>2010-07-12 00:43:21 +0200
commita1267e9903630906fe0da9fc1913efefb64c841b (patch)
treea072ee5be2d03d9618c4d3c582a32a612a341c17 /packaging
parenta78c1d7f1b5aa41fc531a1bb81de6133a66fa92b (diff)
downloadgpsd-a1267e9903630906fe0da9fc1913efefb64c841b.tar.gz
This patch has the changes needed for RPM packaging.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/X11/gpsd-logo.pngbin0 -> 16518 bytes
-rw-r--r--packaging/X11/xgps.desktop10
-rw-r--r--packaging/X11/xgpsspeed.desktop10
-rw-r--r--packaging/deb/etc_default_gpsd (renamed from packaging/etc_default_gpsd)0
-rw-r--r--packaging/deb/etc_init.d_gpsd (renamed from packaging/etc_init.d_gpsd)0
-rw-r--r--packaging/etc_init.d_gpsd_rpm90
-rw-r--r--packaging/gpsd.spec.in175
-rw-r--r--packaging/rpm/gpsd.init93
-rw-r--r--packaging/rpm/gpsd.spec.in370
-rw-r--r--packaging/rpm/gpsd.sysconfig2
10 files changed, 485 insertions, 265 deletions
diff --git a/packaging/X11/gpsd-logo.png b/packaging/X11/gpsd-logo.png
new file mode 100644
index 00000000..83ca3080
--- /dev/null
+++ b/packaging/X11/gpsd-logo.png
Binary files differ
diff --git a/packaging/X11/xgps.desktop b/packaging/X11/xgps.desktop
new file mode 100644
index 00000000..bdd31e28
--- /dev/null
+++ b/packaging/X11/xgps.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=xgps
+GenericName=GPS information
+Comment=Display GPS information from a gpsd daemon
+Exec=xgps
+Icon=/usr/share/gpsd/gpsd-logo.png
+Terminal=false
+Type=Application
+Categories=Application;Graphics;
diff --git a/packaging/X11/xgpsspeed.desktop b/packaging/X11/xgpsspeed.desktop
new file mode 100644
index 00000000..477e2588
--- /dev/null
+++ b/packaging/X11/xgpsspeed.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=xgpsspeed
+GenericName=GPS speedometer
+Comment=Display GPS speed from a gpsd daemon
+Exec=xgpsspeed
+Icon=/usr/share/gpsd/gpsd-logo.png
+Terminal=false
+Type=Application
+Categories=Application;Graphics;
diff --git a/packaging/etc_default_gpsd b/packaging/deb/etc_default_gpsd
index 54ebab6a..54ebab6a 100644
--- a/packaging/etc_default_gpsd
+++ b/packaging/deb/etc_default_gpsd
diff --git a/packaging/etc_init.d_gpsd b/packaging/deb/etc_init.d_gpsd
index 0084d1c1..0084d1c1 100644
--- a/packaging/etc_init.d_gpsd
+++ b/packaging/deb/etc_init.d_gpsd
diff --git a/packaging/etc_init.d_gpsd_rpm b/packaging/etc_init.d_gpsd_rpm
deleted file mode 100644
index 46cbe8a4..00000000
--- a/packaging/etc_init.d_gpsd_rpm
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-#
-# /etc/rc.d/init.d/gpsd
-#
-# Starts the gps daemon
-#
-# chkconfig: 345 44 56
-# description: Listen and dispatch GPS events
-# processname: gpsd
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-DAEMON=gps
-PROGNAME=${DAEMON}d
-TTY=/dev/ttyUSB0
-PIDFILE=/var/run/gpsd.pid
-CONTROL_SOCKET=/var/run/gpsd.sock
-OPTIONS="-n -F $CONTROL_SOCKET -P $PIDFILE"
-
-test -x /usr/sbin/$PROGNAME || exit 0
-
-RETVAL=0
-
-#
-# See how we were called.
-#
-
-start() {
-# Check if it is already running
- [ "$EUID" != "0" ] && exit 4
- if [ ! -f /var/lock/subsys/$PROGNAME ]; then
- echo -n "Starting $DAEMON daemon: "
- daemon /usr/sbin/$PROGNAME $OPTIONS $TTY
- RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$PROGNAME
- echo
- fi
- return $RETVAL
-}
-
-stop() {
- [ "$EUID" != "0" ] && exit 4
- echo -n "Stopping $DAEMON daemon: "
- killproc /usr/sbin/$PROGNAME
- RETVAL=$?
- [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROGNAME
- echo
- return $RETVAL
-}
-
-
-restart() {
- stop
- start
-}
-
-reload() {
- trap "" SIGHUP
- killall -HUP $PROGNAME
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- reload)
- reload
- ;;
- restart)
- restart
- ;;
- condrestart)
- if [ -f /var/lock/subsys/$PROGNAME ]; then
- restart
- fi
- ;;
- status)
- status $PROGNAME
- ;;
- *)
- INITNAME=`basename $0`
- echo "Usage: $INITNAME {start|stop|restart|condrestart|status}"
- exit 1
-esac
-
-exit $RETVAL
diff --git a/packaging/gpsd.spec.in b/packaging/gpsd.spec.in
deleted file mode 100644
index f441a770..00000000
--- a/packaging/gpsd.spec.in
+++ /dev/null
@@ -1,175 +0,0 @@
-%define pkgconfig_version 0.12
-
-Name: gpsd
-Summary: Service daemon for mediating access to a GPS
-Version: @VERSION@
-Release: 1
-License: BSD
-Group: System Environment/Daemons
-URL: http://developer.berlios.de/projects/gpsd/
-Source0: %{name}-%{version}.tar.gz
-BuildRequires: ncurses-devel gcc libxslt python
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-Prereq: /sbin/chkconfig
-#Destinations: mailto:gpsd-announce@lists.berlios.de, mailto:gpsd-users@lists.berlios.de, mailto:gpsd-dev@lists.berlios.de
-
-%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. A client library is provided for applications.
-
-After installing this RPM, gpsd will automatically connect to USB
-GPSes when they are plugged in and requires no configuration. For
-serial GPSes, you will need to start gpsd by hand. Once connected,
-the daemon automatically discovers the correct baudrate, stop bits,
-and protocol. The daemon will be quiescent when there are no
-clients asking for location information, and copes gracefully when the
-GPS is unplugged and replugged.
-
-%package devel
-Summary: Client libraries in C and Python for talking to a running gpsd or GPS
-Group: Development/Libraries
-BuildRequires: pkgconfig >= %{pkgconfig_version}
-Requires: gpsd
-
-%description devel
-This package provides C header files for the gpsd shared libraries
-that manage access to a GPS for applications; also Python modules.
-You will need to have gpsd installed for it to work.
-
-%package clients
-Summary: Clients for gpsd with an X interface
-Group: Applications/System
-BuildRequires: pygtk
-BuildRequires: libXaw-devel
-
-%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.
-%prep
-%setup -q
-
-%build
-###########################################################################
-# #
-# Append configure options to the ./autogen.sh script command line #
-# Examples: #
-# ./autogen.sh --disable-earthmate #
-# ./autogen.sh --disable-reconfigure #
-# #
-###########################################################################
-./autogen.sh LDFLAGS=-s
-make %{?_smp_mflags}
-
-%install
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-%makeinstall
-# additional gpsd files
-mkdir -p "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/
-cp xgps.ad "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/xgps
-cp xgpsspeed.ad "$RPM_BUILD_ROOT"%{_libdir}/X11/app-defaults/xgpsspeed
-mkdir -p "$RPM_BUILD_ROOT"%{_sysconfdir}/hotplug/usb
-cp gpsd.hotplug gpsd.usermap "$RPM_BUILD_ROOT"%{_sysconfdir}/hotplug/usb/
-mkdir -p "$RPM_BUILD_ROOT"/etc/rc.d/init.d
-cp packaging/etc_init.d_gpsd_rpm "$RPM_BUILD_ROOT"/etc/rc.d/init.d/gpsd
-
-%clean
-[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
-
-%post -n gpsd
-/sbin/ldconfig
-
-%postun -n gpsd
-/sbin/ldconfig
-
-# /usr/lib/python* has to be wired in below because the autoconf-generated
-# Python installation production drops Python stuff in /usr/lib even on a
-# 64-bit system, where ${_libdir} will expand to /usr/lib64.
-
-%files
-%defattr(-,root,root,-)
-%doc README INSTALL COPYING
-%attr(755, root, root) %{_sbindir}/gpsd
-%attr(755, root, root) %{_bindir}/gpsctl
-%attr(755, root, root) %{_bindir}/lcdgps
-%attr(755, root, root) %{_bindir}/gpsprof
-%attr(755, root, root) %{_bindir}/gpsmon
-%{_libdir}/libgps.la
-%{_libdir}/libgps.so*
-%{_libdir}/libgps.a
-%{_libdir}/libgpsd.la
-%{_libdir}/libgpsd.so*
-%{_libdir}/libgpsd.a
-%{_mandir}/man8/gpsd.8*
-%{_mandir}/man1/gpsprof.1*
-%{_mandir}/man1/gpsmon.1*
-%{_mandir}/man1/gpsctl.1*
-%{_sysconfdir}/hotplug/usb/gpsd.hotplug
-%{_sysconfdir}/hotplug/usb/gpsd.usermap
-%attr(755, root, root) /etc/rc.d/init.d/gpsd
-%attr(755, root, root) /usr/lib/python*/site-packages/gps/*
-%attr(755, root, root) /usr/lib/python*/site-packages/gpscap.py*
-#%{_datadir}/gpsd/dgpsip-servers
-
-%files devel
-%defattr(-,root,root,-)
-%doc README INSTALL COPYING TODO
-%attr(755, root, root) %{_bindir}/gpscat
-%attr(755, root, root) %{_bindir}/gpsfake
-%attr(755, root, root) %{_bindir}/gpsdecode
-%{_includedir}/gps.h
-%{_includedir}/libgpsmm.h
-%{_includedir}/gpsd.h
-%{_mandir}/man1/gpscat.1*
-%{_mandir}/man1/gpsfake.1*
-%{_mandir}/man1/gpsdecode.1*
-%{_mandir}/man1/lcdgps.1*
-%{_mandir}/man3/libgps.3*
-%{_mandir}/man3/libgpsmm.3*
-%{_mandir}/man3/libgpsd.3*
-%{_mandir}/man5/rtcm-104.5*
-%{_mandir}/man5/srec.5*
-%{_libdir}/pkgconfig/*
-
-%files clients
-%defattr(-,root,root,-)
-%attr(755, root, root) %{_bindir}/xgps
-%attr(755, root, root) %{_bindir}/xgpsspeed
-%attr(755, root, root) %{_bindir}/cgps
-%attr(755, root, root) %{_bindir}/gpspipe
-%attr(755, root, root) %{_bindir}/gpxlogger
-%{_mandir}/man1/gps.1*
-%{_mandir}/man1/cgps.1*
-%{_mandir}/man1/xgps.1*
-%{_mandir}/man1/xgpsspeed.1*
-%{_mandir}/man1/gpspipe.1*
-%{_libdir}/X11/app-defaults/xgps
-%{_libdir}/X11/app-defaults/xgpsspeed
-
-%changelog
-* Tue Mar 10 2009 Michael R. Davis <mrdvt92> - 2.39dev
-- dropped gpsdclient.h from packaging
-* Sun Mar 8 2009 Michael R. Davis <mrdvt92> - 2.39dev
-- changed gpsdlcdd to lcdgps, sirfmon to gpsmon, cgpxlogger to gpxlogger
- added gpsdclient.h to devel package
-* Sat Feb 7 2009 Michael R. Davis <mrdvt92> - 2.38 RC4
-- Added gpsdlcdd, gpscap.py*, gpslib.so, init.d/gpsd
-
-# The following sets edit modes for GNU EMACS
-# Local Variables:
-# mode:rpm-spec
-# End:
diff --git a/packaging/rpm/gpsd.init b/packaging/rpm/gpsd.init
new file mode 100644
index 00000000..85fab36a
--- /dev/null
+++ b/packaging/rpm/gpsd.init
@@ -0,0 +1,93 @@
+#!/bin/sh
+#
+# gpsd Service daemon for mediating access to a GPS
+#
+# chkconfig: - 44 66
+# 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.
+# processname: gpsd
+# pidfile: /var/run/gpsd.pid
+
+# http://fedoraproject.org/wiki/FCNewInit/Initscripts
+### BEGIN INIT INFO
+# Provides: gpsd
+# Required-Start: network
+# Required-Stop: network
+# Should-Start:
+# Should-Stop:
+# Default-Start:
+# Default-Stop:
+# Short-Description: Service daemon for mediating access to a GPS
+# 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.
+### END INIT INFO
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+exec="/usr/sbin/gpsd"
+prog=$(basename $exec)
+PIDFILE=/var/run/gpsd.pid
+CONTROL_SOCKET=/var/run/gpsd.sock
+
+[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
+: ${OPTIONS:=-n}
+: ${DEVICE:=/dev/ttyUSB0}
+
+lockfile=/var/lock/subsys/$prog
+
+start() {
+ [ "$EUID" != "0" ] && exit 4
+ echo -n $"Starting $prog: "
+ daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE
+ retval=$?
+ echo
+ [ $retval -eq 0 ] && touch $lockfile
+ return $retval
+}
+
+stop() {
+ [ "$EUID" != "0" ] && exit 4
+ echo -n $"Stopping $prog: "
+ killproc $prog
+ retval=$?
+ echo
+ [ $retval -eq 0 ] && rm -f $lockfile
+ return $retval
+}
+
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start|stop|restart)
+ $1
+ ;;
+ force-reload)
+ restart
+ ;;
+ status)
+ status $prog
+ ;;
+ try-restart|condrestart)
+ if status $prog >/dev/null ; then
+ restart
+ fi
+ ;;
+ reload)
+ status $prog >/dev/null || exit 7
+ # If config can be reloaded without restarting, implement it here,
+ # remove the "exit", and add "reload" to the usage message below.
+ action $"Service $prog does not support the reload action: " /bin/false
+ exit 3
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
+ exit 2
+esac
diff --git a/packaging/rpm/gpsd.spec.in b/packaging/rpm/gpsd.spec.in
new file mode 100644
index 00000000..3345a982
--- /dev/null
+++ b/packaging/rpm/gpsd.spec.in
@@ -0,0 +1,370 @@
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
+Name: gpsd
+Version: @VERSION@
+Release: 3%{?dist}
+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
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel
+BuildRequires: libXaw-devel desktop-file-utils
+BuildRequires: qt-devel
+
+Requires: udev
+Requires(post): /sbin/ldconfig
+Requires(post): /sbin/chkconfig
+Requires(preun): initscripts
+Requires(preun): /sbin/chkconfig
+Requires(postun): /sbin/ldconfig
+
+%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
+Summary: Client libraries in C and Python for talking to a running gpsd or GPS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+This package provides C header files and python modules for the gpsd shared
+libraries that manage access to a GPS for applications
+
+%package -n libQgpsmm
+Summary: Qt Client libraries for talking to a running gpsd or GPS
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: qt
+Requires: pkgconfig
+
+%description -n libQgpsmm
+This package provides Qt shared libraries that manage access to a GPS
+for Qt applications
+
+%package clients
+Summary: Clients for gpsd
+Group: Applications/System
+
+%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.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --enable-dbus \
+ --disable-static
+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
+
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} pythondir=%{python_sitearch} install
+
+# init scripts
+%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/init.d
+%{__install} -p -m 0755 packaging/rpm/gpsd.init \
+ %{buildroot}%{_sysconfdir}/init.d/gpsd
+
+%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
+%{__install} -p -m 0644 packaging/rpm/gpsd.sysconfig \
+ %{buildroot}%{_sysconfdir}/sysconfig/gpsd
+
+# udev rules
+%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/udev/rules.d
+%{__install} -p -m 0644 gpsd.rules \
+ %{buildroot}%{_sysconfdir}/udev/rules.d/99-gpsd.rules
+
+# hotplug script
+%{__install} -d -m 0755 %{buildroot}/lib/udev
+%{__install} -p -m 0755 gpsd.hotplug gpsd.hotplug.wrapper \
+ %{buildroot}/lib/udev
+
+# remove .la files
+#rm -f %{buildroot}%{_libdir}/libgps*.la
+
+# fix non-executable python script
+%{__chmod} +x %{buildroot}%{python_sitearch}/gps/gps.py
+
+# Install the .desktop files
+desktop-file-install --vendor fedora \
+ --dir %{buildroot}%{_datadir}/applications \
+ --add-category X-Fedora \
+ packaging/X11/xgps.desktop
+desktop-file-install --vendor fedora \
+ --dir %{buildroot}%{_datadir}/applications \
+ --add-category X-Fedora \
+ packaging/X11/xgpsspeed.desktop
+
+# Install logo icon for .desktop files
+%{__install} -d -m 0755 %{buildroot}%{_datadir}/gpsd
+%{__install} -p -m 0644 packaging/X11/gpsd-logo.png %{buildroot}%{_datadir}/gpsd/gpsd-logo.png
+
+%clean
+rm -rf %{buildroot}
+
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add %{name}
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/service %{name} stop > /dev/null 2>&1 || true
+ /sbin/chkconfig --del %{name}
+fi
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc README INSTALL COPYING
+%config(noreplace) %{_sysconfdir}/init.d/%{name}
+%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%config(noreplace) %{_sysconfdir}/udev/rules.d/*
+%{_sbindir}/gpsd
+%{_bindir}/gpsprof
+%{_bindir}/gpsmon
+%{_bindir}/gpsctl
+%{_libdir}/libgps*.so.*
+/lib/udev/gpsd*
+%{python_sitearch}/gps*
+%exclude %{python_sitearch}/gps/fake*
+%{_mandir}/man8/gpsd.8*
+%{_mandir}/man1/gpsprof.1*
+%{_mandir}/man1/gpsmon.1*
+%{_mandir}/man1/gpsctl.1*
+
+%files devel
+%defattr(-,root,root,-)
+%doc TODO
+%{_bindir}/gpsfake
+%{_libdir}/libgps*.so
+%{_libdir}/pkgconfig/*.pc
+%{python_sitearch}/gps/fake*
+%{_includedir}/gps.h
+%{_includedir}/libgpsmm.h
+%{_includedir}/gpsd.h
+%{_mandir}/man1/gpsfake.1*
+%{_mandir}/man3/libgps.3*
+%{_mandir}/man3/libgpsmm.3*
+%{_mandir}/man3/libgpsd.3*
+%{_mandir}/man5/rtcm-104.5*
+%{_mandir}/man5/srec.5*
+
+%files -n libQgpsmm
+%defattr(-,root,root,-)
+%{_qt4_libdir}/libQgpsmm.so*
+
+%files clients
+%defattr(-,root,root,-)
+%{_bindir}/cgps
+%{_bindir}/gpscat
+%{_bindir}/gpsdecode
+%{_bindir}/gpspipe
+%{_bindir}/gpxlogger
+%{_bindir}/lcdgps
+%{_bindir}/xgps
+%{_bindir}/xgpsspeed
+%{_mandir}/man1/gps.1*
+%{_mandir}/man1/gpsdecode.1*
+%{_mandir}/man1/gpspipe.1*
+%{_mandir}/man1/lcdgps.1*
+%{_mandir}/man1/xgps.1*
+%{_mandir}/man1/xgpsspeed.1*
+%{_mandir}/man1/cgps.1*
+%{_mandir}/man1/gpscat.1*
+%{_datadir}/applications/*.desktop
+%dir %{_datadir}/gpsd
+%{_datadir}/gpsd/gpsd-logo.png
+
+%changelog
+* Mon Jul 05 2010 Michael R. Davis <mrdvt@cpan.org> - 2.95-3
+- Updated to move rpm files to packaging/rpm folder
+- Renamed gpsd-qt to libQgpsmm
+
+* Sun Jul 04 2010 Michael R. Davis <mrdvt@cpan.org> - 2.95-2
+- missing X11/app-defaults/xgpsspeed
+
+* Sat Jul 03 2010 Michael R. Davis <mrdvt@cpan.org> - 2.95-1
+- back ported spec to gpsd from Fedora 14
+- updated to 2.95
+- added gpsd-qt package
+
+* Thu May 06 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.94-1
+- update to 2.94 (#556642)
+
+* Tue Mar 02 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.39-7
+- don't use deprecated SYSFS{} in udev rules (#569089)
+- fix init script LSB compliance
+
+* Mon Feb 15 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.39-6
+- fix linking with --no-add-needed (#564662)
+- use %%global macro instead of %%define
+
+* Wed Aug 12 2009 Marek Mahut <mmahut@fedoraproject.org> - 2.39-5
+- RHBZ#505588: gpsd has a broken initscript that fails to launch daemon
+
+* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.39-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Tue Mar 31 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.39-3
+- some of the gpsd client bits went into gpsdclient.h, but that file wasn't getting installed
+ specifically, viking needs that header to build.
+
+* Wed Mar 25 2009 Douglas E. Warner <silfreed@silfreed.net> - 2.39-2
+- adding patch to try to fix parallel make errors
+
+* Thu Mar 19 2009 Douglas E. Warner <silfreed@silfreed.net> - 2.39-1
+- updating to 2.39
+- fixed potential core dump in C client handling of "K" responses
+- Made device hotplugging work again; had been broken by changes in udev
+- Introduced major and minor API version symbols into the public interfaces
+- The sirfmon utility is gone, replaced by gpsmon which does the same job
+ for multiple GPS types
+- Fixed a two-year old error in NMEA parsing that nobody noticed because its
+ only effect was to trash VDOP values from GSA sentences, and gpsd computes
+ those with an internal error model when they look wonky
+- cgpxlogger has been merged into gpxlogger
+- Speed-setting commands now allow parity and stop-bit setting if the GPS
+ chipset and adaptor can support it
+- Specfile and other packaging paraphenalia now live in a packaging
+ subdirectory
+- rtcmdecode becomes gpsdecode and can now de-armor and dump AIDVM packets
+- The client library now work correctly in locales where the decimal separator
+ is not a period
+
+* Mon Mar 16 2009 Douglas E. Warner <silfreed@silfreed.net> - 2.38-1
+- updating to 2.38
+- creating init script and sysconfig files
+- migrating hotplug rules to udev + hotplug wrapper script from svn r5147
+- updating pyexecdir patch
+- fixing udev rule subsystem match
+- Regression test load for RoyalTek RGM3800 and Blumax GPS-009 added
+- Scaling on E error-estimate fields fixed to match O
+- Listen on localhost only by default to avoid security problems; this can be
+ overridden with the -G command-line option
+- The packet-state machine can now recognize RTCM3 packets, though support is
+ not yet complete
+- Added support for ublox5 and mkt-3301 devices
+- Add a wrapper around gpsd_hexdump to save CPU
+- Lots of little fixes to various packet parsers
+- Always keep the device open: "-n" is not optional any more
+- xgpsspeed no longer depends on Motif
+- gpsctl can now ship arbitrary payloads to a device;
+ It's possible to send binary through the control channel with the
+ new "&" command
+- Experimental new driver for Novatel SuperStarII
+- The 'g' mode switch command now requires, and returns, 'rtcm104v2' rather
+ than 'rtcm104'; this is design forward for when RTCM104v2 is fully working
+
+* 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
+
+* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.37-3
+- Rebuild for Python 2.6
+
+* Wed Mar 19 2008 Douglas E. Warner <silfreed@silfreed.net> - 2.37-2
+- moving gpspacket.so python lib to main package
+
+* 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
+
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.34-9
+- Autorebuild for GCC 4.3
+
+* 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.
+
+* 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.
+
+* 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).
+
+* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-5
+- Fix desktop file and logo file name.
+
+* Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-4
+- Include icon for .desktop files per BZ 241428
+
+* Tue Mar 20 2007 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.34-3
+- Bump release for FE5 -> Fedora 7 upgrade path.
+
+* Tue Feb 27 2007 Matthew Truch <matt at truch.net> - 2.34-2
+- BR python-devel instead of python to make it build.
+
+* 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.
+
+* Sat Dec 9 2006 Matthew Truch <matt at truch.net> - 2.33-6
+- Rebuild to pull in new version of python.
+
+* Tue Sep 26 2006 Matthew Truch <matt at truch.net> - 2.33-5
+- Remove openmotif requirment, and switch to lesstif.
+
+* Mon Aug 28 2006 Matthew Truch <matt at truch.net> - 2.33-4
+- Bump release for rebuild in prep. for FC6.
+
+* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-3
+- Actually, was a missing BR glib-dbus-devel. Ooops.
+
+* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-2
+- Missing BR glib-devel
+
+* Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-1
+- Update to version 2.33
+
+* 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.
+
+* Thu Apr 13 2006 Matthew Truch <matt at truch.net> - 2.32-4
+- Add dbus-glib to BuildRequires as needed for build.
+
+* 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
diff --git a/packaging/rpm/gpsd.sysconfig b/packaging/rpm/gpsd.sysconfig
new file mode 100644
index 00000000..1f7b1f63
--- /dev/null
+++ b/packaging/rpm/gpsd.sysconfig
@@ -0,0 +1,2 @@
+OPTIONS="-n"
+DEVICE="/dev/ttyUSB0"