install systemd and udev files; added xgps and -debug packages [release 3.25-2mamba;Sat Feb 25 2023]
This commit is contained in:
parent
9950c942fd
commit
bcceced8f9
5
gpsd.conf
Normal file
5
gpsd.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Default settings for gpsd.
|
||||||
|
START_DAEMON="true"
|
||||||
|
GPSD_OPTIONS=""
|
||||||
|
DEVICES=""
|
||||||
|
USBAUTO="true"
|
69
gpsd.spec
69
gpsd.spec
@ -1,6 +1,6 @@
|
|||||||
Name: gpsd
|
Name: gpsd
|
||||||
Version: 3.25
|
Version: 3.25
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A service daemon that monitors one or more GPSes attached to a host computer
|
Summary: A service daemon that monitors one or more GPSes attached to a host computer
|
||||||
Group: Graphical Desktop/Applications/Utilities
|
Group: Graphical Desktop/Applications/Utilities
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -8,6 +8,7 @@ Distribution: openmamba
|
|||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://www.berlios.de/software/gpsd/
|
URL: https://www.berlios.de/software/gpsd/
|
||||||
Source: http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-%{version}.tar.gz
|
Source: http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-%{version}.tar.gz
|
||||||
|
Source1: gpsd.conf
|
||||||
Patch0: gpsd-3.7-rpath.patch
|
Patch0: gpsd-3.7-rpath.patch
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
@ -29,6 +30,15 @@ gpsd is a service daemon that monitors one or more GPSes attached to a host comp
|
|||||||
Besides gpsd itself, the project provides auxiliary tools for diagnostic monitoring and profiling of GPSes and feeding GPS-aware applications specified track data for diagnostic purposes.
|
Besides gpsd itself, the project provides auxiliary tools for diagnostic monitoring and profiling of GPSes and feeding GPS-aware applications specified track data for diagnostic purposes.
|
||||||
The goal of the gpsd project is to create a solid layer of open-source infrastructure for programs running under Linux and other open-source Unixes that want to be location-sensitive. We aim for simple, robust interfaces, unfussy operation, and an easy learning curve for application developers. Applications that presently use gpsd include pyGPS, Kismet, GPSdrive, gpeGPS, position, roadmap, roadnav, navit, viking, and gaia.
|
The goal of the gpsd project is to create a solid layer of open-source infrastructure for programs running under Linux and other open-source Unixes that want to be location-sensitive. We aim for simple, robust interfaces, unfussy operation, and an easy learning curve for application developers. Applications that presently use gpsd include pyGPS, Kismet, GPSdrive, gpeGPS, position, roadmap, roadnav, navit, viking, and gaia.
|
||||||
|
|
||||||
|
%package -n xgps
|
||||||
|
Summary: X11 GPS UI application provided with %{name}
|
||||||
|
Group: Graphical Desktop/Applications/Utilities
|
||||||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n xgps
|
||||||
|
gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors 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 GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd.
|
||||||
|
This package provides the X11 GPS UI application provided with %{name},
|
||||||
|
|
||||||
%package -n libgps
|
%package -n libgps
|
||||||
Summary: GPS libraries provided by %{name}
|
Summary: GPS libraries provided by %{name}
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -67,7 +77,7 @@ Requires: libgps-qt = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors 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 GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd.
|
gpsd is a service daemon that monitors one or more GPSes attached to a host computer through serial or USB ports, making all data on the location/course/velocity of the sensors 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 GPSes without contention or loss of data. Also, gpsd responds to queries with a format that is substantially easier to parse than the NMEA 0183 emitted by most GPSes. The gpsd distribution includes a linkable C service library, a C++ wrapper class, and a Python module that developers of gpsd-aware applications can use to encapsulate all communication with gpsd.
|
||||||
This package contains the QT binding library for libgps.
|
This package contains the QT binding library for libgps.
|
||||||
|
|
||||||
#% debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -78,24 +88,64 @@ find -name "*.py" | while read line; do sed -i "s|env python$|env python3|" $lin
|
|||||||
scons \
|
scons \
|
||||||
prefix=%{_prefix} \
|
prefix=%{_prefix} \
|
||||||
libdir=%{_lib} \
|
libdir=%{_lib} \
|
||||||
|
systemd=yes \
|
||||||
|
gpsd_group=uucp \
|
||||||
target_python=%{__python3} \
|
target_python=%{__python3} \
|
||||||
python_shebang="/usr/bin/env python3" \
|
python_shebang="/usr/bin/env python3" \
|
||||||
python_libdir=%{python3_sitelib} \
|
python_libdir=%{python3_sitelib} \
|
||||||
qt_versioned=5
|
qt_versioned=5 \
|
||||||
|
nostrip=True
|
||||||
|
|
||||||
|
scons build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
export DESTDIR=%{buildroot}
|
export DESTDIR=%{buildroot}
|
||||||
scons install prefix=%{_prefix} libdir=%{_lib}
|
scons install prefix=%{_prefix} libdir=%{_lib}
|
||||||
|
|
||||||
|
install -D -m0755 gpsinit %{buildroot}%{_bindir}/gpsinit
|
||||||
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/default/gpsd
|
||||||
|
install -D -m0644 gpsd-%{version}/gpsd.rules %{buildroot}%{_udevrulesdir}/25-gpsd-usb.rules
|
||||||
|
install -D -m0755 gpsd.hotplug %{buildroot}%{_prefix}/lib/udev/gpsd.hotplug
|
||||||
|
sed -e 's|/local||' -i packaging/X11/*.desktop
|
||||||
|
install -D -m0644 packaging/X11/*.desktop -t %{buildroot}%{_datadir}/applications/
|
||||||
|
install -D -m0644 gpsd-%{version}/systemd/{gpsd.service,gpsd.socket,gpsdctl@.service} -t %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun gpsd.socket
|
||||||
|
:
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post gpsd.socket
|
||||||
|
:
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun gpsd.socket
|
||||||
|
:
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/*
|
%config(noreplace) %{_sysconfdir}/default/gpsd
|
||||||
|
%{_bindir}/cgps
|
||||||
|
%{_bindir}/gegps
|
||||||
|
%{_bindir}/gps*
|
||||||
|
%{_bindir}/gpxlogger
|
||||||
|
%{_bindir}/lcdgps
|
||||||
|
%{_bindir}/ntpshmmon
|
||||||
|
%{_bindir}/ppscheck
|
||||||
|
%{_bindir}/ubxtool
|
||||||
|
%{_bindir}/zerk
|
||||||
%{_sbindir}/gpsd
|
%{_sbindir}/gpsd
|
||||||
%{_sbindir}/gpsdctl
|
%{_sbindir}/gpsdctl
|
||||||
|
%{_unitdir}/gpsd.socket
|
||||||
|
%{_unitdir}/gpsd.service
|
||||||
|
%{_unitdir}/gpsdctl@.service
|
||||||
|
%{_prefix}/lib/udev/gpsd.hotplug
|
||||||
|
%{_udevrulesdir}/25-gpsd-usb.rules
|
||||||
%dir %{_datadir}/gpsd
|
%dir %{_datadir}/gpsd
|
||||||
%dir %{_datadir}/gpsd/icons
|
%dir %{_datadir}/gpsd/icons
|
||||||
%{_datadir}/gpsd/icons/gpsd-logo.png
|
%{_datadir}/gpsd/icons/gpsd-logo.png
|
||||||
@ -104,6 +154,14 @@ scons install prefix=%{_prefix} libdir=%{_lib}
|
|||||||
%{_datadir}/snmp/mibs/gpsd/GPSD-MIB
|
%{_datadir}/snmp/mibs/gpsd/GPSD-MIB
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
%doc LICENSE COPYING
|
||||||
|
|
||||||
|
%files -n xgps
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/xgps
|
||||||
|
%{_bindir}/xgpsspeed
|
||||||
|
%{_datadir}/applications/xgps.desktop
|
||||||
|
%{_datadir}/applications/xgpsspeed.desktop
|
||||||
|
|
||||||
%files -n libgps
|
%files -n libgps
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -133,6 +191,9 @@ scons install prefix=%{_prefix} libdir=%{_lib}
|
|||||||
%{_libdir}/pkgconfig/Qgpsmm.pc
|
%{_libdir}/pkgconfig/Qgpsmm.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Feb 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.25-2mamba
|
||||||
|
- install systemd and udev files; added xgps and -debug packages
|
||||||
|
|
||||||
* Tue Jan 17 2023 Automatic Build System <autodist@mambasoft.it> 3.25-1mamba
|
* Tue Jan 17 2023 Automatic Build System <autodist@mambasoft.it> 3.25-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user