libspnav-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Summary: 3Dconnexion device driver and SDK
  2. Name: libspnav
  3. Version: 0.2.3
  4. Release: 1%{?_dist_release}
  5. License: BSD
  6. Group: System Environment/Libraries
  7. URL: http://spacenav.sourceforge.net/
  8. Source0: %{name}-%{version}.tar.gz
  9. Patch0: libspnav-0.2.3-lib_links.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libX11-devel
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: Takemikaduchi
  15. %description
  16. The libspnav library is provided as a replacement of the magellan library.
  17. It provides a cleaner, and more orthogonal interface. libspnav supports
  18. both the original X11 protocol for communicating with the driver, and the
  19. new alternative non-X protocol. Programs that choose to use the X11
  20. protocol, are automatically compatible with either the free spacenavd
  21. driver or the official dxserv, as if they were using the magellan SDK.
  22. Also, libspnav provides a magellan API wrapper on top of the new API.
  23. So, any applications that were using the magellan library, can switch to
  24. libspnav without any changes. And programmers that are familliar with the
  25. magellan API can continue using it with a free library without the
  26. restrictions of the official SDK.
  27. %package devel
  28. Summary: Development files for %{name}
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. %description devel
  32. This package contains development files for %{name}.
  33. %prep
  34. %setup -q
  35. %patch0 -p1 -b .link
  36. %build
  37. %ifarch x86_64
  38. sed -i "s|libdir=lib|libdir=lib64|" configure
  39. %endif
  40. %configure
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. make install DESTDIR=$RPM_BUILD_ROOT
  45. find $RPM_BUILD_ROOT -type f -name "*.a" -delete
  46. find $RPM_BUILD_ROOT -type f -name "*.la" -delete
  47. %clean
  48. rm -rf $RPM_BUILD_ROOT
  49. %post -p /sbin/ldconfig
  50. %postun -p /sbin/ldconfig
  51. %files
  52. %defattr(-,root,root,-)
  53. %doc README
  54. %{_libdir}/libspnav.so.*
  55. %files devel
  56. %defattr(-,root,root,-)
  57. %{_libdir}/libspnav.so
  58. %{_includedir}/spnav.h
  59. %{_includedir}/spnav_config.h
  60. %{_includedir}/spnav_magellan.h
  61. %changelog
  62. * Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.3-1
  63. - initial build