update to 0.8 [release 0.8-1mamba;Sun May 23 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 18:01:51 +01:00
parent 7419bd4726
commit 808ac982db
2 changed files with 24 additions and 28 deletions

View File

@ -2,5 +2,3 @@
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. 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.
For more info on the spacenav project, visit: http://spacenav.sourceforge.net

View File

@ -1,11 +1,11 @@
Name: spacenavd Name: spacenavd
Version: 0.5 Version: 0.8
Release: 2mamba Release: 1mamba
Summary: Spacenav Daemon Summary: A user-space driver (daemon), for 3Dconnexion's space-something 6dof input devices
Group: System/Tools Group: System/Tools
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: gil <puntogil@libero.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://spacenav.sourceforge.net/ URL: http://spacenav.sourceforge.net/
Source: http://downloads.sourceforge.net/project/spacenav/spacenav%20daemon/spacenavd%20%{version}/spacenavd-%{version}.tar.gz Source: http://downloads.sourceforge.net/project/spacenav/spacenav%20daemon/spacenavd%20%{version}/spacenavd-%{version}.tar.gz
Patch0: spacenavd-0.5-Makefile_in.patch Patch0: spacenavd-0.5-Makefile_in.patch
@ -13,19 +13,20 @@ License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXi-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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.
For more info on the spacenav project, visit: http://spacenav.sourceforge.net %debug_package
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p0 #%patch0 -p0
sed -i "s|DAEMON=/usr/local/bin/spacenavd|DAEMON=%{_bindir}/spacenavd|" init_script sed -i "s|/usr/local/bin/|%{_bindir}|" contrib/systemd/spacenavd.service
sed -i "s|/var/run/|/run/|" contrib/systemd/spacenavd.service
%build %build
%configure %configure
@ -35,11 +36,10 @@ sed -i "s|DAEMON=/usr/local/bin/spacenavd|DAEMON=%{_bindir}/spacenavd|" init_scr
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
mkdir -p %{buildroot}%{_initrddir} install -D -m0644 contrib/systemd/spacenavd.service %{buildroot}%{_unitdir}/spacenavd.service
install -pm 0755 init_script %{buildroot}%{_initrddir}/spacenavd
mkdir -p %{buildroot}%{_sysconfdir} #mkdir -p %{buildroot}%{_sysconfdir}
install -pm 644 doc/example-spnavrc %{buildroot}%{_sysconfdir}/spnavrc #install -pm 644 doc/example-spnavrc %{buildroot}%{_sysconfdir}/spnavrc
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -48,31 +48,29 @@ install -pm 644 doc/example-spnavrc %{buildroot}%{_sysconfdir}/spnavrc
/usr/sbin/groupadd spacenavd -g 66 2>/dev/null /usr/sbin/groupadd spacenavd -g 66 2>/dev/null
/usr/sbin/useradd -u 66 -c 'Spacenav Daemon' -d /dev/null \ /usr/sbin/useradd -u 66 -c 'Spacenav Daemon' -d /dev/null \
-g spacenavd -s /bin/false spacenavdn 2>/dev/null -g spacenavd -s /bin/false spacenavdn 2>/dev/null
%systemd_pre spacenavd
:
%post %post
if [ $1 -eq 1 ]; then %systemd_post spacenavd
/sbin/chkconfig --add spacenavd :
/sbin/service spacenavd start
fi
exit 0
%preun %preun
if [ $1 -eq 0 ]; then %systemd_postun spacenavd
%{_initrddir}/spacenavd stop 2>/dev/null :
/sbin/chkconfig --del spacenavd
/usr/sbin/userdel spacenavd 2>/dev/null
fi
exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/spnavrc #%config(noreplace) %{_sysconfdir}/spnavrc
%{_initrddir}/spacenavd
%{_bindir}/spacenavd %{_bindir}/spacenavd
%{_bindir}/spnavd_ctl %{_bindir}/spnavd_ctl
%doc AUTHORS COPYING README %{_unitdir}/spacenavd.service
%doc AUTHORS COPYING
%changelog %changelog
* Sun May 23 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8-1mamba
- update to 0.8
* Tue Aug 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5-2mamba * Tue Aug 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5-2mamba
- rebuilt in devel - rebuilt in devel