|
@@ -5,8 +5,8 @@ Summary: Service daemon for mediating access to a GPS
|
|
Summary(ja): GPS にアクセスするためのサービスデーモン
|
|
Summary(ja): GPS にアクセスするためのサービスデーモン
|
|
|
|
|
|
Name: gpsd
|
|
Name: gpsd
|
|
-Version: 2.95
|
|
+Version: 3.7
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
License: BSD
|
|
License: BSD
|
|
@@ -14,10 +14,10 @@ URL: http://developer.berlios.de/projects/gpsd/
|
|
Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
|
|
Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
|
|
Source10: gpsd.init
|
|
Source10: gpsd.init
|
|
Source11: gpsd.sysconfig
|
|
Source11: gpsd.sysconfig
|
|
-Patch0: gpsd-2.95-silentmake.patch
|
|
|
|
-Patch1: gpsd-2.95-hotplugvars.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
+BuildRequires: scons
|
|
|
|
+BuildRequires: chrpath
|
|
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel
|
|
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel
|
|
BuildRequires: libusb1-devel desktop-file-utils
|
|
BuildRequires: libusb1-devel desktop-file-utils
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: libudev-devel
|
|
@@ -70,20 +70,25 @@ can run on a serial terminal or terminal emulator.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch0 -p1 -b .silentmake
|
|
|
|
-%patch1 -p1 -b .hotplugvars
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --enable-dbus --disable-static --disable-libQgpsmm
|
|
+scons %{_smp_mflags} \
|
|
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
+ prefix=%{_prefix} \
|
|
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
+ bindir=%{_bindir} \
|
|
-make %{?_smp_mflags}
|
|
+ includedir=%{_includedir} \
|
|
-
|
|
+ libdir=%{_libdir} \
|
|
|
|
+ sbindir=%{_sbindir} \
|
|
|
|
+ mandir=%{_mandir} \
|
|
|
|
+ docdir=%{_docdir} \
|
|
|
|
+ pkgconfigdir=%{_libdir}/pkgconfig
|
|
|
|
+
|
|
|
|
+scons build
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
-make DESTDIR=%{buildroot} install
|
|
+export DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
+scons install
|
|
|
|
|
|
# init scripts
|
|
# init scripts
|
|
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/init.d
|
|
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/init.d
|
|
@@ -101,7 +106,7 @@ make DESTDIR=%{buildroot} install
|
|
|
|
|
|
# hotplug script
|
|
# hotplug script
|
|
%{__install} -d -m 0755 %{buildroot}/lib/udev
|
|
%{__install} -d -m 0755 %{buildroot}/lib/udev
|
|
-%{__install} -p -m 0755 gpsd.hotplug gpsd.hotplug.wrapper %{buildroot}/lib/udev
|
|
+%{__install} -p -m 0755 gpsd.hotplug %{buildroot}/lib/udev
|
|
|
|
|
|
# remove .la files
|
|
# remove .la files
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
@@ -110,13 +115,11 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
%{__chmod} +x %{buildroot}%{python_sitearch}/gps/gps.py
|
|
%{__chmod} +x %{buildroot}%{python_sitearch}/gps/gps.py
|
|
|
|
|
|
# Install the .desktop files
|
|
# Install the .desktop files
|
|
-desktop-file-install --vendor fedora \
|
|
+desktop-file-install \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
- --add-category X-Fedora \
|
|
|
|
packaging/X11/xgps.desktop
|
|
packaging/X11/xgps.desktop
|
|
-desktop-file-install --vendor fedora \
|
|
+desktop-file-install \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
--dir %{buildroot}%{_datadir}/applications \
|
|
- --add-category X-Fedora \
|
|
|
|
packaging/X11/xgpsspeed.desktop
|
|
packaging/X11/xgpsspeed.desktop
|
|
|
|
|
|
# Install logo icon for .desktop files
|
|
# Install logo icon for .desktop files
|
|
@@ -147,6 +150,8 @@ fi
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
|
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
|
%{_sbindir}/gpsd
|
|
%{_sbindir}/gpsd
|
|
|
|
+%{_sbindir}/gpsdctl
|
|
|
|
+%{_bindir}/gegps
|
|
%{_bindir}/gpsprof
|
|
%{_bindir}/gpsprof
|
|
%{_bindir}/gpsmon
|
|
%{_bindir}/gpsmon
|
|
%{_bindir}/gpsctl
|
|
%{_bindir}/gpsctl
|
|
@@ -154,10 +159,9 @@ fi
|
|
/lib/udev/gpsd*
|
|
/lib/udev/gpsd*
|
|
%{python_sitearch}/gps*
|
|
%{python_sitearch}/gps*
|
|
%exclude %{python_sitearch}/gps/fake*
|
|
%exclude %{python_sitearch}/gps/fake*
|
|
-%ifarch x86_64
|
|
|
|
-%{python_sitelib}/gps*
|
|
|
|
-%endif
|
|
|
|
%{_mandir}/man8/gpsd.8*
|
|
%{_mandir}/man8/gpsd.8*
|
|
|
|
+%{_mandir}/man8/gpsdctl.8*
|
|
|
|
+%{_mandir}/man1/gegps.1*
|
|
%{_mandir}/man1/gpsprof.1*
|
|
%{_mandir}/man1/gpsprof.1*
|
|
%{_mandir}/man1/gpsmon.1*
|
|
%{_mandir}/man1/gpsmon.1*
|
|
%{_mandir}/man1/gpsctl.1*
|
|
%{_mandir}/man1/gpsctl.1*
|
|
@@ -171,12 +175,12 @@ fi
|
|
%{python_sitearch}/gps/fake*
|
|
%{python_sitearch}/gps/fake*
|
|
%{_includedir}/gps.h
|
|
%{_includedir}/gps.h
|
|
%{_includedir}/libgpsmm.h
|
|
%{_includedir}/libgpsmm.h
|
|
-%{_includedir}/gpsd.h
|
|
|
|
%{_mandir}/man1/gpsfake.1*
|
|
%{_mandir}/man1/gpsfake.1*
|
|
|
|
+%{_mandir}/man3/libQgpsmm.3*
|
|
%{_mandir}/man3/libgps.3*
|
|
%{_mandir}/man3/libgps.3*
|
|
%{_mandir}/man3/libgpsmm.3*
|
|
%{_mandir}/man3/libgpsmm.3*
|
|
%{_mandir}/man3/libgpsd.3*
|
|
%{_mandir}/man3/libgpsd.3*
|
|
-%{_mandir}/man5/rtcm-104.5*
|
|
+%{_mandir}/man5/gpsd_json.5*
|
|
%{_mandir}/man5/srec.5*
|
|
%{_mandir}/man5/srec.5*
|
|
|
|
|
|
%files clients
|
|
%files clients
|
|
@@ -203,6 +207,11 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.7-1
|
|
|
|
+- update to 3.7
|
|
|
|
+- remove old patches
|
|
|
|
+- add BuildRequires: scons, chrpath
|
|
|
|
+
|
|
* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.95-3
|
|
* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.95-3
|
|
- rebuild with python-2.7.2
|
|
- rebuild with python-2.7.2
|
|
|
|
|