# topdir: ros-humble-libspnav-devel-1.2 Name: ros-humble-libspnav-devel Version: 1.2 Release: 1%{?dist} Summary: C library for 6dof input devices (spacemice) License: BSD-3-Clause URL: https://github.com/FreeSpacenav/libspnav Source0: https://github.com/FreeSpacenav/libspnav/archive/refs/tags/libspnav-%{version}.tar.gz#/%{name}-%{version}.tar.gz Group: Development/Libraries Packager: openEuler Builder BuildRequires: gcc BuildRequires: make BuildRequires: libX11-devel %description Libspnav is a C library for receiving input from 6 degrees-of-freedom (6dof) input devices, also known as spacemice, spaceballs, etc. 6dof input is very useful for fluidly manipulating objects or viewpoints in 3D space, and fundamentally comprises of relative movement (translation) across 3 axes (TX/TY/TZ), and rotation about 3 axes (RX/RY/RZ). This package provides the development files (headers, static and shared libraries, and pkg-config file) for libspnav. %prep %autosetup -n %{name}-%{version} %build # Custom configure script (not autotools) ./configure --prefix=%{_prefix} # Fix libdir for 64-bit: configure hardcodes 'lib', use system lib dir sed -i "s|^libdir = lib$|libdir = %{_lib}|" Makefile sed -i 's|\${PREFIX}/lib |\${PREFIX}/%{_lib} |' spnav.pc # configure can't detect version without git / matching dir name; force a # clean Version in spnav.pc so rpmbuild's pkgconfig Provides don't choke # on the illegal '<' from the "" fallback. sed -i "s/^Version:.*/Version: %{version}/" spnav.pc %make_build %install make install DESTDIR=%{buildroot} %files %license LICENSE %doc README.md %{_libdir}/libspnav.a %{_libdir}/libspnav.so* %{_includedir}/spnav.h %{_includedir}/spnav_magellan.h %{_includedir}/spnav_config.h %{_datadir}/pkgconfig/spnav.pc %changelog * Thu Oct 22 2026 openEuler Builder - 1.2-1 - Initial package