From 7cc73760c04350c1f6c8252913ee1d1cac97b086 Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 05:50:19 +0100 Subject: [PATCH] package created by autospec [release 0.2.2-1mamba;Wed Feb 02 2011] --- README.md | 13 ++++++ libspnav-0.2.2-Makefile_in.patch | 22 ++++++++++ libspnav.spec | 73 ++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+) create mode 100644 libspnav-0.2.2-Makefile_in.patch create mode 100644 libspnav.spec diff --git a/README.md b/README.md index 56d96c7..de6935c 100644 --- a/README.md +++ b/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. + diff --git a/libspnav-0.2.2-Makefile_in.patch b/libspnav-0.2.2-Makefile_in.patch new file mode 100644 index 0000000..8f428bf --- /dev/null +++ b/libspnav-0.2.2-Makefile_in.patch @@ -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: diff --git a/libspnav.spec b/libspnav.spec new file mode 100644 index 0000000..74bca6a --- /dev/null +++ b/libspnav.spec @@ -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 +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 0.2.2-1mamba +- package created by autospec