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