[521] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
[1489] | 2 | %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
---|
[521] | 3 | |
---|
| 4 | Summary: Service daemon for mediating access to a GPS |
---|
| 5 | Summary(ja): GPS にアクセスするためのサービスデーモン |
---|
| 6 | |
---|
| 7 | Name: gpsd |
---|
[1489] | 8 | Version: 2.95 |
---|
[1942] | 9 | Release: 2%{?_dist_release} |
---|
[521] | 10 | |
---|
| 11 | Group: System Environment/Daemons |
---|
| 12 | License: BSD |
---|
| 13 | URL: http://developer.berlios.de/projects/gpsd/ |
---|
| 14 | Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz |
---|
[1489] | 15 | Source10: gpsd.init |
---|
| 16 | Source11: gpsd.sysconfig |
---|
| 17 | Patch0: gpsd-2.95-silentmake.patch |
---|
| 18 | Patch1: gpsd-2.95-hotplugvars.patch |
---|
[521] | 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 20 | |
---|
| 21 | BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel |
---|
[1489] | 22 | BuildRequires: libusb1-devel desktop-file-utils |
---|
| 23 | BuildRequires: libudev-devel |
---|
[521] | 24 | |
---|
[1489] | 25 | Requires: udev |
---|
[521] | 26 | Requires(post): /sbin/ldconfig |
---|
[1489] | 27 | Requires(post): /sbin/chkconfig |
---|
| 28 | Requires(preun): initscripts |
---|
| 29 | Requires(preun): /sbin/chkconfig |
---|
[521] | 30 | Requires(postun): /sbin/ldconfig |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | gpsd is a service daemon that mediates access to a GPS sensor |
---|
| 34 | connected to the host computer by serial or USB interface, making its |
---|
| 35 | data on the location/course/velocity of the sensor available to be |
---|
| 36 | queried on TCP port 2947 of the host computer. With gpsd, multiple |
---|
| 37 | GPS client applications (such as navigational and wardriving software) |
---|
| 38 | can share access to a GPS without contention or loss of data. Also, |
---|
| 39 | gpsd responds to queries with a format that is substantially easier to |
---|
| 40 | parse than NMEA 0183. |
---|
| 41 | |
---|
| 42 | %package devel |
---|
| 43 | Summary: Client libraries in C and Python for talking to a running gpsd or GPS |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
| 46 | Requires: pkgconfig |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | This package provides C header files and python modules for the gpsd shared |
---|
| 50 | libraries that manage access to a GPS for applications |
---|
| 51 | |
---|
| 52 | %package clients |
---|
| 53 | Summary: Clients for gpsd |
---|
| 54 | Summary(ja): gpsd 用クライアント |
---|
| 55 | Group: Applications/System |
---|
| 56 | |
---|
| 57 | %description clients |
---|
| 58 | xgps is a simple test client for gpsd with an X interface. It displays |
---|
| 59 | current GPS position/time/velocity information and (for GPSes that |
---|
| 60 | support the feature) the locations of accessible satellites. |
---|
| 61 | |
---|
| 62 | xgpsspeed is a speedometer that uses position information from the GPS. |
---|
| 63 | It accepts an -h option and optional argument as for gps, or a -v option |
---|
| 64 | to dump the package version and exit. Additionally, it accepts -rv |
---|
| 65 | (reverse video) and -nc (needle color) options. |
---|
| 66 | |
---|
| 67 | cgps resembles xgps, but without the pictorial satellite display. It |
---|
| 68 | can run on a serial terminal or terminal emulator. |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %prep |
---|
| 72 | %setup -q |
---|
[1489] | 73 | %patch0 -p1 -b .silentmake |
---|
| 74 | %patch1 -p1 -b .hotplugvars |
---|
[521] | 75 | |
---|
| 76 | |
---|
| 77 | %build |
---|
[1489] | 78 | %configure --enable-dbus --disable-static --disable-libQgpsmm |
---|
[521] | 79 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 80 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 81 | make %{?_smp_mflags} |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %install |
---|
| 85 | rm -rf %{buildroot} |
---|
| 86 | make DESTDIR=%{buildroot} install |
---|
| 87 | |
---|
[1489] | 88 | # init scripts |
---|
| 89 | %{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/init.d |
---|
| 90 | %{__install} -p -m 0755 %{SOURCE10} \ |
---|
| 91 | %{buildroot}%{_sysconfdir}/init.d/gpsd |
---|
[521] | 92 | |
---|
[1489] | 93 | %{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig |
---|
| 94 | %{__install} -p -m 0644 %{SOURCE11} \ |
---|
| 95 | %{buildroot}%{_sysconfdir}/sysconfig/gpsd |
---|
| 96 | |
---|
| 97 | # udev rules |
---|
| 98 | %{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/udev/rules.d |
---|
| 99 | %{__install} -p -m 0644 gpsd.rules \ |
---|
| 100 | %{buildroot}%{_sysconfdir}/udev/rules.d/99-gpsd.rules |
---|
| 101 | |
---|
[521] | 102 | # hotplug script |
---|
[1489] | 103 | %{__install} -d -m 0755 %{buildroot}/lib/udev |
---|
| 104 | %{__install} -p -m 0755 gpsd.hotplug gpsd.hotplug.wrapper %{buildroot}/lib/udev |
---|
[521] | 105 | |
---|
| 106 | # remove .la files |
---|
[1489] | 107 | find %{buildroot} -name '*.la' -exec rm -f {} ';' |
---|
[521] | 108 | |
---|
| 109 | # fix non-executable python script |
---|
[1489] | 110 | %{__chmod} +x %{buildroot}%{python_sitearch}/gps/gps.py |
---|
[521] | 111 | |
---|
| 112 | # Install the .desktop files |
---|
| 113 | desktop-file-install --vendor fedora \ |
---|
| 114 | --dir %{buildroot}%{_datadir}/applications \ |
---|
| 115 | --add-category X-Fedora \ |
---|
[1489] | 116 | packaging/X11/xgps.desktop |
---|
[521] | 117 | desktop-file-install --vendor fedora \ |
---|
| 118 | --dir %{buildroot}%{_datadir}/applications \ |
---|
| 119 | --add-category X-Fedora \ |
---|
[1489] | 120 | packaging/X11/xgpsspeed.desktop |
---|
[521] | 121 | |
---|
| 122 | # Install logo icon for .desktop files |
---|
| 123 | %{__install} -d -m 0755 %{buildroot}%{_datadir}/gpsd |
---|
[1489] | 124 | %{__install} -p -m 0644 packaging/X11/gpsd-logo.png %{buildroot}%{_datadir}/gpsd/gpsd-logo.png |
---|
[521] | 125 | |
---|
| 126 | |
---|
| 127 | %clean |
---|
| 128 | rm -rf %{buildroot} |
---|
| 129 | |
---|
[1489] | 130 | %post |
---|
| 131 | /sbin/ldconfig |
---|
| 132 | /sbin/chkconfig --add %{name} |
---|
[521] | 133 | |
---|
[1489] | 134 | %preun |
---|
| 135 | if [ $1 = 0 ]; then |
---|
| 136 | /sbin/service %{name} stop > /dev/null 2>&1 || true |
---|
| 137 | /sbin/chkconfig --del %{name} |
---|
| 138 | fi |
---|
[521] | 139 | |
---|
| 140 | %postun -p /sbin/ldconfig |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | %files |
---|
| 144 | %defattr(-,root,root,-) |
---|
| 145 | %doc README INSTALL COPYING |
---|
[1489] | 146 | %config(noreplace) %{_sysconfdir}/init.d/%{name} |
---|
| 147 | %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |
---|
| 148 | %config(noreplace) %{_sysconfdir}/udev/rules.d/* |
---|
[521] | 149 | %{_sbindir}/gpsd |
---|
| 150 | %{_bindir}/gpsprof |
---|
[1489] | 151 | %{_bindir}/gpsmon |
---|
[521] | 152 | %{_bindir}/gpsctl |
---|
[1489] | 153 | %{_libdir}/libgps*.so.* |
---|
| 154 | /lib/udev/gpsd* |
---|
| 155 | %{python_sitearch}/gps* |
---|
| 156 | %exclude %{python_sitearch}/gps/fake* |
---|
| 157 | %ifarch x86_64 |
---|
| 158 | %{python_sitelib}/gps* |
---|
| 159 | %endif |
---|
[521] | 160 | %{_mandir}/man8/gpsd.8* |
---|
| 161 | %{_mandir}/man1/gpsprof.1* |
---|
[1489] | 162 | %{_mandir}/man1/gpsmon.1* |
---|
[521] | 163 | %{_mandir}/man1/gpsctl.1* |
---|
| 164 | |
---|
| 165 | %files devel |
---|
| 166 | %defattr(-,root,root,-) |
---|
| 167 | %doc TODO |
---|
| 168 | %{_bindir}/gpsfake |
---|
[1489] | 169 | %{_libdir}/libgps*.so |
---|
[521] | 170 | %{_libdir}/pkgconfig/*.pc |
---|
[1489] | 171 | %{python_sitearch}/gps/fake* |
---|
[521] | 172 | %{_includedir}/gps.h |
---|
| 173 | %{_includedir}/libgpsmm.h |
---|
| 174 | %{_includedir}/gpsd.h |
---|
| 175 | %{_mandir}/man1/gpsfake.1* |
---|
| 176 | %{_mandir}/man3/libgps.3* |
---|
| 177 | %{_mandir}/man3/libgpsmm.3* |
---|
| 178 | %{_mandir}/man3/libgpsd.3* |
---|
| 179 | %{_mandir}/man5/rtcm-104.5* |
---|
| 180 | %{_mandir}/man5/srec.5* |
---|
| 181 | |
---|
| 182 | %files clients |
---|
| 183 | %defattr(-,root,root,-) |
---|
| 184 | %{_bindir}/cgps |
---|
[1489] | 185 | %{_bindir}/gpscat |
---|
| 186 | %{_bindir}/gpsdecode |
---|
[521] | 187 | %{_bindir}/gpspipe |
---|
| 188 | %{_bindir}/gpxlogger |
---|
[1489] | 189 | %{_bindir}/lcdgps |
---|
| 190 | %{_bindir}/xgps |
---|
| 191 | %{_bindir}/xgpsspeed |
---|
[521] | 192 | %{_mandir}/man1/gps.1* |
---|
[1489] | 193 | %{_mandir}/man1/gpsdecode.1* |
---|
[521] | 194 | %{_mandir}/man1/gpspipe.1* |
---|
[1489] | 195 | %{_mandir}/man1/lcdgps.1* |
---|
[521] | 196 | %{_mandir}/man1/xgps.1* |
---|
| 197 | %{_mandir}/man1/xgpsspeed.1* |
---|
| 198 | %{_mandir}/man1/cgps.1* |
---|
| 199 | %{_mandir}/man1/gpscat.1* |
---|
| 200 | %{_datadir}/applications/*.desktop |
---|
| 201 | %dir %{_datadir}/gpsd |
---|
| 202 | %{_datadir}/gpsd/gpsd-logo.png |
---|
| 203 | |
---|
| 204 | |
---|
| 205 | %changelog |
---|
[1942] | 206 | * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.95-2 |
---|
| 207 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 208 | |
---|
[1489] | 209 | * Sun Aug 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.95-1 |
---|
| 210 | - new upstream release |
---|
| 211 | - merge spec, patch, source from fedora |
---|
| 212 | |
---|
[521] | 213 | * Mon Feb 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.37-3 |
---|
| 214 | - add BuildRequires: libXp-devel |
---|
| 215 | |
---|
| 216 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.37-2 |
---|
| 217 | - rebuilt with python-2.6.4 |
---|
| 218 | |
---|
| 219 | * Mon Feb 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.37-1 |
---|
| 220 | - initial build for Vine Linux |
---|
| 221 | |
---|
| 222 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.37-3 |
---|
| 223 | - Rebuild for Python 2.6 |
---|
| 224 | |
---|
| 225 | * Wed Mar 19 2008 Douglas E. Warner <silfreed@silfreed.net> - 2.37-2 |
---|
| 226 | - moving gpspacket.so python lib to main package |
---|
| 227 | - adding zero.patch to make ZEROIZE error go away on fedora 7 |
---|
| 228 | |
---|
| 229 | * Wed Feb 27 2008 Douglas E. Warner <silfreed@silfreed.net> - 2.37-1 |
---|
| 230 | - update to 2.37 |
---|
| 231 | - removed install-gpsd_config.h.patch |
---|
| 232 | - installed pkgconfig files in devel package |
---|
| 233 | - added patch to install python modules in sitearch |
---|
| 234 | - removing rpath from inclucded libtool |
---|
| 235 | - moving X11 app-defaults to datadir |
---|
| 236 | - using macros for commands in install; using install instead of cp and mkdir |
---|
| 237 | - cleaning up spaces/tabs for rpmlint |
---|
| 238 | |
---|
| 239 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.34-9 |
---|
| 240 | - Autorebuild for GCC 4.3 |
---|
| 241 | |
---|
| 242 | * Sun Aug 19 2007 Matthew Truch <matt at truch.net> - 2.34-8 |
---|
| 243 | - Patch Makefile to also install gpsd_config.h as needed by |
---|
| 244 | libgpsmm.h. Redhat BZ 253433. |
---|
| 245 | |
---|
| 246 | * Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-7 |
---|
| 247 | - Make sure the logo is actually included (via the spec file). |
---|
| 248 | I need to wake up before I try even trivial updates. |
---|
| 249 | |
---|
| 250 | * Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-6 |
---|
| 251 | - Learn how to use search and replace (aka fix all instances of |
---|
| 252 | gpsd-logo.png spelled incorrectly as gspd-logo.png). |
---|
| 253 | |
---|
| 254 | * Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-5 |
---|
| 255 | - Fix desktop file and logo file name. |
---|
| 256 | |
---|
| 257 | * Sat Jun 30 2007 Matthew Truch <matt at truch.net> - 2.34-4 |
---|
| 258 | - Include icon for .desktop files per BZ 241428 |
---|
| 259 | |
---|
| 260 | * Tue Mar 20 2007 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.34-3 |
---|
| 261 | - Bump release for FE5 -> Fedora 7 upgrade path. |
---|
| 262 | |
---|
| 263 | * Tue Feb 27 2007 Matthew Truch <matt at truch.net> - 2.34-2 |
---|
| 264 | - BR python-devel instead of python to make it build. |
---|
| 265 | |
---|
| 266 | * Tue Feb 27 2007 Matthew Truch <matt at truch.net> - 2.34-1 |
---|
| 267 | - Upgrade to 2.34. |
---|
| 268 | - Get rid of %%makeinstall (which was never needed). |
---|
| 269 | - Possibly fix hotplug issuses (BZ 219750). |
---|
| 270 | - Use %%python_sitelib for python site-files stuff. |
---|
| 271 | |
---|
| 272 | * Sat Dec 9 2006 Matthew Truch <matt at truch.net> - 2.33-6 |
---|
| 273 | - Rebuild to pull in new version of python. |
---|
| 274 | |
---|
| 275 | * Tue Sep 26 2006 Matthew Truch <matt at truch.net> - 2.33-5 |
---|
| 276 | - Remove openmotif requirment, and switch to lesstif. |
---|
| 277 | |
---|
| 278 | * Mon Aug 28 2006 Matthew Truch <matt at truch.net> - 2.33-4 |
---|
| 279 | - Bump release for rebuild in prep. for FC6. |
---|
| 280 | |
---|
| 281 | * Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-3 |
---|
| 282 | - Actually, was a missing BR glib-dbus-devel. Ooops. |
---|
| 283 | |
---|
| 284 | * Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-2 |
---|
| 285 | - Missing BR glib-devel |
---|
| 286 | |
---|
| 287 | * Thu Jul 20 2006 Matthew Truch <matt at truch.net> - 2.33-1 |
---|
| 288 | - Update to version 2.33 |
---|
| 289 | |
---|
| 290 | * Wed Apr 19 2006 Matthew Truch <matt at truch.net> - 2.32-5 |
---|
| 291 | - Don't --enable-tnt in build as it causes some gpses to not work |
---|
| 292 | properly with sattelite view mode. See bugzilla bug 189220. |
---|
| 293 | |
---|
| 294 | * Thu Apr 13 2006 Matthew Truch <matt at truch.net> - 2.32-4 |
---|
| 295 | - Add dbus-glib to BuildRequires as needed for build. |
---|
| 296 | |
---|
| 297 | * Sun Apr 9 2006 Matthew Truch <matt at truch.net> - 2.32-3 |
---|
| 298 | - Include xmlto and python in buildrequires so things build right. |
---|
| 299 | - Don't package static library file. |
---|
| 300 | |
---|
| 301 | * Wed Apr 5 2006 Matthew Truch <matt at truch.net> - 2.32-2 |
---|
| 302 | - Use ye olde %%{?dist} tag. |
---|
| 303 | |
---|
| 304 | * Wed Apr 5 2006 Matthew Truch <matt at truch.net> - 2.32-1 |
---|
| 305 | - Initial Fedora Extras specfile |
---|