74 lines
2.2 KiB
RPMSpec
74 lines
2.2 KiB
RPMSpec
Name: libspnav
|
|
Version: 0.2.2
|
|
Release: 1mamba
|
|
Summary: library to access 3D-input-devices
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: gil <puntogil@libero.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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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 need for development.
|
|
|
|
%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
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libspnav.so.*
|
|
%doc README
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libspnav.a
|
|
|
|
%changelog
|
|
* Wed Feb 02 2011 gil <puntogil@libero.it> 0.2.2-1mamba
|
|
- package created by autospec
|