File libopenhmd0.spec of Package openhmd

#
# spec file for package monado
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#

Name:           libopenhmd0
Version:        1564953319.e8a9abd
Release:        0
Summary:        OpenHMD
License:        GPL-3.0-or-later
Group:          System/X11/Utilities
Url:            http://www.openhmd.net
Source:         %{name}-%{version}.tar.bz2

BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  glibc
BuildRequires:  glibc-devel

BuildRequires:  spirv-headers
BuildRequires:  spirv-tools
BuildRequires:  spirv-tools-devel
BuildRequires:  glslang-devel
BuildRequires:  eigen3-devel
BuildRequires:  vulkan-devel
BuildRequires:  vulkan-headers
BuildRequires:  wayland-devel
BuildRequires:  Mesa-libGL-devel
BuildRequires:  libusb-1_0-devel
BuildRequires:  opencv-devel
BuildRequires:  ffmpeg-4-libavcodec-devel
BuildRequires:  libudev-devel
BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  libhidapi-devel
BuildRequires:  gsl-devel

%description
This project aims to provide a Free and Open Source API and drivers for immersive technology, such as head mounted displays with built in head tracking.

%package devel
Summary:        OpenHMD development files
License:        GPL-3.0-or-later
Group:          Development/Libraries/C and C++
#Requires:       %{name}-%{version}

%description devel
Those are the development files OpenHMD

%prep
%setup -q

%build

export CFLAGS="-lm -lc"
export CXXFLAGS="-lm -lc"
export SUSE_ASNEEDED=0

%cmake

%install

export CFLAGS="-lm -lc"
export CXXFLAGS="-lm -lc"
export SUSE_ASNEEDED=0

%cmake_install
mv %{buildroot}/usr/lib %{buildroot}%{_libdir}.tmp
mv %{buildroot}%{_libdir}.tmp %{buildroot}%{_libdir}


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig

%files devel
%{_includedir}/openhmd.h
%{_libdir}/libopenhmd.so
%{_libdir}/pkgconfig/openhmd.pc

%files
%{_libdir}/libopenhmd.so.0
%{_libdir}/libopenhmd.so.0.1.0

%changelog
* Thu Aug 8 2019 David Lanzendoerfer <leviathan@libresilicon.com> - libopenhmd
- Initial build.

openSUSE Build Service is sponsored by