package created by autospec [release 0.2.2-1mamba;Wed Feb 02 2011]
This commit is contained in:
parent
e8efa435f8
commit
7cc73760c0
13
README.md
13
README.md
@ -1,2 +1,15 @@
|
||||
# libspnav
|
||||
|
||||
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.
|
||||
|
||||
|
22
libspnav-0.2.2-Makefile_in.patch
Normal file
22
libspnav-0.2.2-Makefile_in.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- Makefile.in 2010-03-28 00:24:27.000000000 +0100
|
||||
+++ Makefile.in-gil 2011-02-02 15:19:36.000000000 +0100
|
||||
@@ -1,3 +1,4 @@
|
||||
+DESTDIR =
|
||||
|
||||
obj = spnav.o $(magellan_obj)
|
||||
hdr = spnav.h spnav_magellan.h spnav_config.h
|
||||
@@ -31,9 +32,11 @@
|
||||
|
||||
.PHONY: install
|
||||
install: $(lib_a) $(lib_so)
|
||||
- cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
|
||||
- cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
|
||||
- for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/$(libdir)
|
||||
+ mkdir -p $(DESTDIR)$(PREFIX)/include
|
||||
+ cp $(lib_a) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_a)
|
||||
+ cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
|
||||
+ for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
73
libspnav.spec
Normal file
73
libspnav.spec
Normal file
@ -0,0 +1,73 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user