Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Arnavion
libsurvive
libsurvive.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libsurvive.spec of Package libsurvive
# # spec file for package libsurvive # # Copyright (c) 2022 Sasi Olin <hellcp@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _sover 0 Name: libsurvive Version: 1.0 Release: 0 Summary: Open Source Lighthouse Tracking System License: MIT Url: https://github.com/cntools/libsurvive Source: %{name}-v%{version}-4-source.zip BuildRequires: unzip BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: cblas-devel BuildRequires: lapacke-devel BuildRequires: openblas-devel(default) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(glut) BuildRequires: pkgconfig(atlascpp-0.6) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(eigen3) BuildRequires: pkgconfig(libpcap) %description Libsurvive is a set of tools and libraries that enable 6 dof tracking on lighthouse and vive based systems that is completely open source and can run on any device. It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices and should support any tracked object commercially available. %package -n %{name}%{_sover} Summary: Open Source Lighthouse Tracking System %description -n %{name}%{_sover} Libsurvive is a set of tools and libraries that enable 6 dof tracking on lighthouse and vive based systems that is completely open source and can run on any device. It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices and should support any tracked object commercially available. %package tools Summary: Tools for libsurvive %description tools Tools for the libsurvive library %package devel Summary: Development files for libsurvive Requires: %{name}%{_sover} = %{version} %description devel Development files for the libsurvive library %prep %setup -qn %{name} %build cmake -B build \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DLIB_INSTALL_DIR:PATH=%{_libdir} \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_C_FLAGS="${CFLAGS:-%optflags}" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS:-%optflags}" \ -DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_COLOR_MAKEFILE:BOOL=OFF %cmake_build %install %cmake_install mv %{buildroot}%{_libdir}%{name} %{buildroot}%{_libdir}/%{name} rm -r %{buildroot}%{_prefix}/lib/*.a %post -n %{name}%{_sover} -p /sbin/ldconfig %postun -n %{name}%{_sover} -p /sbin/ldconfig %post devel -p /sbin/ldconfig %postun devel -p /sbin/ldconfig %files -n %{name}%{_sover} %dir %{_libdir}/%{name} %{_libdir}/%{name}.so.0* %dir %{_libdir}/%{name}/plugins %{_libdir}/%{name}/plugins/* %files tools %{_bindir}/api_example %{_bindir}/sensors-readout %{_bindir}/survive-{buttons,cli,solver,websocketd} %files devel %dir %{_includedir}/{cnkalman,cnmatrix,%{name}} %{_includedir}/{cnkalman,cnmatrix,%{name}}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/{cnkalman,cnmatrix,survive}.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor