[packages/vrpn] - initial

qboosh qboosh at pld-linux.org
Wed Dec 24 13:06:14 CET 2014


commit 66276c24ffdcc47cd0b281b9dbb5f7ab7ebb1bdf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 24 13:07:08 2014 +0100

    - initial

 vrpn-install.patch | 142 ++++++++++++++++++++++++++++++++++++
 vrpn.spec          | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 350 insertions(+)
---
diff --git a/vrpn.spec b/vrpn.spec
new file mode 100644
index 0000000..f99352c
--- /dev/null
+++ b/vrpn.spec
@@ -0,0 +1,208 @@
+# TODO: modbus, system hidapi, openhaptics, ghost, wiiuse(GPL v3), libnifalcon, intersense, nidaqmx, viewpoint, phasespace, libfreespace
+# NATIONAL_INSTRUMENTS, NIDAQ, USDIGITAL, MICROSCRIBE, MONITONNODE, TRIVISIOCOLIBRI ???
+#
+# Conditional build:
+%bcond_without	apidocs		# do not build and package API docs
+%bcond_without	gpm		# GPM Linux mouse interface support (GPL v2+)
+%bcond_with	mpi		# MPI support
+%bcond_without	java		# Java binding
+#
+%define	with_gpl	0%{?with_gpm:1}
+Summary:	Virtual Reality Peripheral Network
+Summary(pl.UTF-8):	Sieć peryferiów do rzeczywistości wirtualnej (VR)
+Name:		vrpn
+Version:	07.32
+%define	fver	%(echo %{version} | tr . _)
+Release:	1
+License:	Boost v1.0 (VRPN)%{?with_gpl:, depends on GPL libraries}
+Group:		Libraries
+Source0:	http://www.cs.unc.edu/Research/vrpn/downloads/%{name}_%{fver}.zip
+# Source0-md5:	6cb32e51e6420385f2006f1aae58b457
+Patch0:		%{name}-install.patch
+URL:		http://www.cs.unc.edu/Research/vrpn/
+BuildRequires:	cmake >= 2.8.3
+%{?with_apidocs:BuildRequires:	doxygen}
+%{?with_gpm:BuildRequires:	gpm-devel}
+BuildRequires:	jdk
+BuildRequires:	jsoncpp-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	libusb-devel >= 1.0
+%{?with_mpi:BuildRequires:	mpi-devel}
+BuildRequires:	perl-Parse-RecDescent
+BuildRequires:	perl-base
+BuildRequires:	python-devel >= 1:2.7
+BuildRequires:	swig-python
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Virtual-Reality Peripheral Network (VRPN) is a set of classes
+within a library and a set of servers that are designed to implement a
+network-transparent interface between application programs and the set
+of physical devices (tracker, etc.) used in a virtual-reality (VR)
+system. The idea is to have a PC or other host at each VR station that
+controls the peripherals (tracker, button device, haptic device,
+analog inputs, sound, etc). VRPN provides connections between the
+application and all of the devices using the appropriate
+class-of-service for each type of device sharing this link. The
+application remains unaware of the network topology. Note that it is
+possible to use VRPN with devices that are directly connected to the
+machine that the application is running on, either using separate
+control programs or running all as a single program.
+
+%description -l pl.UTF-8
+VRPN (Virtual-Reality Peripheral Network) to biblioteka klas i zestaw
+serwerów zaprojektowanych jako implementacja przezroczystego sieciowo
+interfejsu między aplikacjami a zbiorem urządzeń fizycznych (takich
+jak tracker), używanych w systemie wirtualnej rzeczywistości (VR).
+Idea polega na umieszczeniu komputera PC lub innego na każdej stacji
+kontrolującej urządzenia peryferyjne (tracker, przyciski, urządzenie
+haptyczne, wejścia analogowe, dźwiękowe itp.). VRPN zapewnia
+połączenia między aplikacją a wszystkimi urządzeniami używającymi
+odpowiedniej klasy usług dla każdego typu urządzeń współdzielących to
+połączenie. Dla aplikacji topologia sieci nie ma znaczenia. Należy
+zauważyć, że można używać oprogramowania VRPN z urządzeniami
+podłączonymi bezpośrednio do maszyny, na której działa aplikacja -
+albo przy użyciu osobnych programów sterujących, albo w ramach
+jednego programu.
+
+%package devel
+Summary:	Header files for VRPN library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki VRPN
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for VRPN library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki VRPN.
+
+%package apidocs
+Summary:	VRPN API documentation
+Summary(pl.UTF-8):	Dokumentacja API biblioteki VRPN
+Group:		Documentation
+
+%description apidocs
+API documentation for VRPN library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki VRPN.
+
+%package -n java-vrpn
+Summary:	Java binding to VRPN
+Summary(pl.UTF-8):	Wiązanie Javy do bibliotek VRPN
+Group:		Libraries/Java
+Requires:	%{name} = %{version}-%{release}
+
+%description -n java-vrpn
+Java binding to VRPN.
+
+%description -n java-vrpn -l pl.UTF-8
+Wiązanie Javy do bibliotek VRPN.
+
+%package -n python-vrpn
+Summary:	Python binding to VRPN
+Summary(pl.UTF-8):	Wiązania Pythona do bibliotek VRPN
+Group:		Libraries/Java
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-vrpn
+Python binding to VRPN.
+
+%description -n python-vrpn -l pl.UTF-8
+Wiązania Pythona do bibliotek VRPN.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DSYSCONF_INSTALL_DIR=%{_sysconfdir}/vrpn \
+	%{?with_gpl:-DVRPN_GPL_SERVER=ON} \
+	-DVRPN_USE_GPM_MOUSE=%{?with_gpm:ON}%{!?with_gpm:OFF} \
+	-DVRPN_USE_MPI=%{?with_mpi:ON}%{!?with_mpi:OFF} \
+	-DVRPN_BUILD_PYTHON=ON
+
+%{__make}
+
+%if %{with apidocs}
+%{__make} doc
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/{c_interface_example,checklogfile,client_and_server,clock_drift_estimator,forcedevice_test_client,forward,forwarderClient,last_of_sequence,logfilesenders,logfiletypes,printcereal,printvals,run_auxiliary_logger,sample_analog,sample_server,test*,text,textServer,tracker_to_poser}
+
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/source-docs
+
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog Format README README.Legal
+%attr(755,root,root) %{_bindir}/add_vrpn_cookie
+%attr(755,root,root) %{_bindir}/bdbox_client
+%attr(755,root,root) %{_bindir}/ff_client
+%attr(755,root,root) %{_bindir}/phan_client
+%attr(755,root,root) %{_bindir}/sound_client
+%attr(755,root,root) %{_bindir}/sphere_client
+%attr(755,root,root) %{_bindir}/vrpn_HID_device_watcher
+%attr(755,root,root) %{_bindir}/vrpn_LamportClock
+%attr(755,root,root) %{_bindir}/vrpn_ping
+%attr(755,root,root) %{_bindir}/vrpn_print_devices
+%attr(755,root,root) %{_bindir}/vrpn_print_messages
+%attr(755,root,root) %{_bindir}/vrpn_print_performance
+%attr(755,root,root) %{_bindir}/vrpn_server
+%attr(755,root,root) %{_bindir}/vrpn_streamPrint
+%dir %{_sysconfdir}/vrpn
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vrpn/vrpn.cfg
+%attr(755,root,root) %{_libdir}/libgpsnmea.so
+%attr(755,root,root) %{_libdir}/libquat.so
+%attr(755,root,root) %{_libdir}/libvrpn.so
+%attr(755,root,root) %{_libdir}/libvrpn_atmel.so
+%attr(755,root,root) %{_libdir}/libvrpn_timecode_generator.so
+%attr(755,root,root) %{_libdir}/libvrpnserver.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/latLonCoord.h
+%{_includedir}/nmeaParser.h
+%{_includedir}/quat.h
+%{_includedir}/utmCoord.h
+%{_includedir}/vrpn_*.h
+
+%if %{with java}
+%files -n java-vrpn
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libjava_vrpn.so
+%{_javadir}/vrpn-%{version}.jar
+%endif
+
+%files -n python-vrpn
+%defattr(644,root,root,755)
+# swig bindings
+%attr(755,root,root) %{py_sitedir}/_vrpn_*.so
+%attr(755,root,root) %{py_sitedir}/vrpn_*.py[co]
+# "handwritten" binding
+%attr(755,root,root) %{py_sitedir}/vrpn.so
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc build/doxygen/docs-generated/html/*
+%endif
diff --git a/vrpn-install.patch b/vrpn-install.patch
new file mode 100644
index 0000000..05018d3
--- /dev/null
+++ b/vrpn-install.patch
@@ -0,0 +1,142 @@
+--- vrpn/server_src/timecode_generator_server/CMakeLists.txt.orig	2014-11-15 20:29:37.000000000 +0100
++++ vrpn/server_src/timecode_generator_server/CMakeLists.txt	2014-12-21 13:27:10.462620029 +0100
+@@ -26,7 +26,10 @@
+ 	vrpn_timecode_generator
+ 	ARCHIVE
+ 	DESTINATION
+-	lib
++	lib${LIB_SUFFIX}
++	LIBRARY
++	DESTINATION
++	lib${LIB_SUFFIX}
+ 	COMPONENT
+ 	serversdk
+ 	PUBLIC_HEADER
+--- vrpn/quat/CMakeLists.txt.orig	2014-11-15 20:29:37.000000000 +0100
++++ vrpn/quat/CMakeLists.txt	2014-12-21 13:40:52.389252202 +0100
+@@ -39,7 +39,10 @@
+ 	quat
+ 	ARCHIVE
+ 	DESTINATION
+-	lib
++	lib${LIB_SUFFIX}
++	LIBRARY
++	DESTINATION
++	lib${LIB_SUFFIX}
+ 	COMPONENT
+ 	serversdk
+ 	PUBLIC_HEADER
+@@ -51,7 +54,10 @@
+ 	quat
+ 	ARCHIVE
+ 	DESTINATION
+-	lib
++	lib${LIB_SUFFIX}
++	LIBRARY
++	DESTINATION
++	lib${LIB_SUFFIX}
+ 	COMPONENT
+ 	clientsdk
+ 	PUBLIC_HEADER
+--- vrpn/atmellib/CMakeLists.txt.orig	2014-11-15 20:29:36.000000000 +0100
++++ vrpn/atmellib/CMakeLists.txt	2014-12-21 13:50:20.449228362 +0100
+@@ -26,7 +26,10 @@
+ 	vrpn_atmel
+ 	ARCHIVE
+ 	DESTINATION
+-	lib
++	lib${LIB_SUFFIX}
++	LIBRARY
++	DESTINATION
++	lib${LIB_SUFFIX}
+ 	COMPONENT
+ 	serversdk
+ 	PUBLIC_HEADER
+--- vrpn/gpsnmealib/CMakeLists.txt.orig	2014-11-15 20:29:36.000000000 +0100
++++ vrpn/gpsnmealib/CMakeLists.txt	2014-12-21 13:50:46.005893957 +0100
+@@ -26,7 +26,10 @@
+ 	gpsnmea
+ 	ARCHIVE
+ 	DESTINATION
+-	lib
++	lib${LIB_SUFFIX}
++	LIBRARY
++	DESTINATION
++	lib${LIB_SUFFIX}
+ 	COMPONENT
+ 	serversdk
+ 	PUBLIC_HEADER
+--- vrpn/CMakeLists.txt.orig	2014-11-15 20:29:36.000000000 +0100
++++ vrpn/CMakeLists.txt	2014-12-21 13:51:26.629225586 +0100
+@@ -1196,7 +1196,10 @@
+ 		vrpnserver
+ 		ARCHIVE
+ 		DESTINATION
+-		lib
++		lib${LIB_SUFFIX}
++		LIBRARY
++		DESTINATION
++		lib${LIB_SUFFIX}
+ 		COMPONENT
+ 		serversdk
+ 		PUBLIC_HEADER
+@@ -1242,7 +1245,10 @@
+ 		vrpn
+ 		ARCHIVE
+ 		DESTINATION
+-		lib
++		lib${_LIB_SUFFIX}
++		LIBRARY
++		DESTINATION
++		lib${_LIB_SUFFIX}
+ 		COMPONENT
+ 		clientsdk
+ 		PUBLIC_HEADER
+--- vrpn/server_src/CMakeLists.txt.orig	2014-11-15 20:29:37.000000000 +0100
++++ vrpn/server_src/CMakeLists.txt	2014-12-21 15:22:46.578995609 +0100
+@@ -131,7 +131,7 @@
+ 		COMPONENT mainserver)
+ else()
+ 	install(FILES "${CMAKE_CURRENT_BINARY_DIR}/vrpn.cfg"
+-		DESTINATION etc
++		DESTINATION ${SYSCONF_INSTALL_DIR}
+ 		COMPONENT mainserver)
+ endif()
+ 
+--- vrpn/python_vrpn/CMakeLists.txt.orig	2014-11-15 20:29:37.000000000 +0100
++++ vrpn/python_vrpn/CMakeLists.txt	2014-12-21 21:49:12.664689252 +0100
+@@ -69,19 +69,19 @@
+ 		install(FILES
+ 			"${CMAKE_CURRENT_BINARY_DIR}/${module}.py"
+ 			DESTINATION
+-			lib/${PYTHONVERSIONDIR}dist-packages/
++			lib/${PYTHONVERSIONDIR}site-packages/
+ 			COMPONENT
+ 			python)
+ 		install(TARGETS
+ 			${SWIG_MODULE_${module}_REAL_NAME}
+ 			RUNTIME
+ 			DESTINATION
+-			lib/${PYTHONVERSIONDIR}dist-packages/
++			lib${LIB_SUFFIX}/${PYTHONVERSIONDIR}site-packages/
+ 			COMPONENT
+ 			python
+ 			LIBRARY
+ 			DESTINATION
+-			lib/${PYTHONVERSIONDIR}dist-packages/
++			lib${LIB_SUFFIX}/${PYTHONVERSIONDIR}site-packages/
+ 			COMPONENT
+ 			python)
+ 	endforeach()
+--- vrpn/python/CMakeLists.txt.orig	2014-11-15 20:29:36.000000000 +0100
++++ vrpn/python/CMakeLists.txt	2014-12-22 21:14:09.611151644 +0100
+@@ -56,7 +56,7 @@
+ #			LIBRARY DESTINATION lib/${PYTHONVERSIONDIR}dist-packages/ COMPONENT python)
+ 	else()
+ 		install(TARGETS vrpn-python
+-			RUNTIME DESTINATION lib/${PYTHONVERSIONDIR}dist-packages/ COMPONENT python
+-			LIBRARY DESTINATION lib/${PYTHONVERSIONDIR}dist-packages/ COMPONENT python)
++			RUNTIME DESTINATION lib${LIB_SUFFIX}/${PYTHONVERSIONDIR}site-packages/ COMPONENT python
++			LIBRARY DESTINATION lib${LIB_SUFFIX}/${PYTHONVERSIONDIR}site-packages/ COMPONENT python)
+ 	endif()
+ endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vrpn.git/commitdiff/66276c24ffdcc47cd0b281b9dbb5f7ab7ebb1bdf



More information about the pld-cvs-commit mailing list