2024-01-05 18:01:50 +01:00
|
|
|
Name: spacenavd
|
2024-01-05 18:01:51 +01:00
|
|
|
Version: 0.8
|
|
|
|
Release: 1mamba
|
|
|
|
Summary: A user-space driver (daemon), for 3Dconnexion's space-something 6dof input devices
|
2024-01-05 18:01:50 +01:00
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 18:01:51 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 18:01:50 +01:00
|
|
|
URL: http://spacenav.sourceforge.net/
|
|
|
|
Source: http://downloads.sourceforge.net/project/spacenav/spacenav%20daemon/spacenavd%20%{version}/spacenavd-%{version}.tar.gz
|
|
|
|
Patch0: spacenavd-0.5-Makefile_in.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libX11-devel
|
2024-01-05 18:01:51 +01:00
|
|
|
BuildRequires: libXi-devel
|
2024-01-05 18:01:50 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
Spacenavd, is a free software replacement user-space driver (daemon), for 3Dconnexion's space-something 6dof input devices. It's compatible with the original 3dxsrv proprietary daemon provided by 3Dconnexion, and works perfectly with any program that was written for the 3Dconnexion driver.
|
|
|
|
|
2024-01-05 18:01:51 +01:00
|
|
|
%debug_package
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2024-01-05 18:01:51 +01:00
|
|
|
#%patch0 -p0
|
2024-01-05 18:01:50 +01:00
|
|
|
|
2024-01-05 18:01:51 +01:00
|
|
|
sed -i "s|/usr/local/bin/|%{_bindir}|" contrib/systemd/spacenavd.service
|
|
|
|
sed -i "s|/var/run/|/run/|" contrib/systemd/spacenavd.service
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
2024-01-05 18:01:51 +01:00
|
|
|
install -D -m0644 contrib/systemd/spacenavd.service %{buildroot}%{_unitdir}/spacenavd.service
|
2024-01-05 18:01:50 +01:00
|
|
|
|
2024-01-05 18:01:51 +01:00
|
|
|
#mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
#install -pm 644 doc/example-spnavrc %{buildroot}%{_sysconfdir}/spnavrc
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd spacenavd -g 66 2>/dev/null
|
|
|
|
/usr/sbin/useradd -u 66 -c 'Spacenav Daemon' -d /dev/null \
|
|
|
|
-g spacenavd -s /bin/false spacenavdn 2>/dev/null
|
2024-01-05 18:01:51 +01:00
|
|
|
%systemd_pre spacenavd
|
|
|
|
:
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%post
|
2024-01-05 18:01:51 +01:00
|
|
|
%systemd_post spacenavd
|
|
|
|
:
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 18:01:51 +01:00
|
|
|
%systemd_postun spacenavd
|
|
|
|
:
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 18:01:51 +01:00
|
|
|
#%config(noreplace) %{_sysconfdir}/spnavrc
|
2024-01-05 18:01:50 +01:00
|
|
|
%{_bindir}/spacenavd
|
|
|
|
%{_bindir}/spnavd_ctl
|
2024-01-05 18:01:51 +01:00
|
|
|
%{_unitdir}/spacenavd.service
|
|
|
|
%doc AUTHORS COPYING
|
2024-01-05 18:01:50 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:01:51 +01:00
|
|
|
* Sun May 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8-1mamba
|
|
|
|
- update to 0.8
|
|
|
|
|
2024-01-05 18:01:50 +01:00
|
|
|
* Tue Aug 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5-2mamba
|
|
|
|
- rebuilt in devel
|
|
|
|
|
|
|
|
* Wed Feb 02 2011 gil <puntogil@libero.it> 0.5-1mamba
|
|
|
|
- package created by autospec
|