libspnav/libspnav.spec

87 lines
2.9 KiB
RPMSpec

Name: libspnav
Version: 1.0
Release: 1mamba
Summary: library to access 3D-input-devices
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://spacenav.sourceforge.net/
Source: http://downloads.sourceforge.net/project/spacenav/spacenav%20library%20%28SDK%29/libspnav%20%{version}/libspnav-%{version}.tar.gz
Patch0: libspnav-0.2.2-Makefile_in.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
## AUTOBUILDREQ-END
%description
The libspnav library is provided as a replacement of the magellan library. It provides a cleaner, and more orthogonal interface. libspnav supports both the original X11 protocol for communicating with the driver, and the new alternative non-X protocol. Programs that choose to use the X11 protocol, are automatically compatible with either the free spacenavd driver or the official 3dxserv, as if they were using the magellan SDK.
Also, libspnav provides a magellan API wrapper on top of the new API. So, any applications that were using the magellan library, can switch to libspnav without any changes. And programmers that are familliar with the magellan API can continue using it with a free library without the restrictions of the official SDK.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libspnav - library to access 3D-input-devices.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q
#%patch0 -p0
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall libdir=%{_lib}
chmod 755 %{buildroot}%{_libdir}/*.so.*
chmod 644 %{buildroot}%{_libdir}/*.*a
chmod 644 %{buildroot}%{_includedir}/*.h
# Workaround for broken link
[ -e %{buildroot}%{_libdir}/libspnav.so.0.1 ] && \
ln -sf libspnav.so.0.1 %{buildroot}%{_libdir}/libspnav.so.0
[ -e %{buildroot}%{_libdir}/libspnav.so.0 ] && \
ln -sf libspnav.so.0 %{buildroot}%{_libdir}/libspnav.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libspnav.so.*
%doc LICENSE
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libspnav.a
%{_libdir}/libspnav.so
%{_datadir}/pkgconfig/spnav.pc
%doc README.md
%changelog
* Sat Apr 02 2022 Automatic Build System <autodist@mambasoft.it> 1.0-1mamba
- automatic version update by autodist
* Fri Feb 11 2022 Automatic Build System <autodist@mambasoft.it> 0.3-1mamba
- automatic version update by autodist
* Sat Jan 24 2015 Automatic Build System <autodist@mambasoft.it> 0.2.3-1mamba
- automatic version update by autodist
* Wed Feb 02 2011 gil <puntogil@libero.it> 0.2.2-1mamba
- package created by autospec