85 lines
2.1 KiB
RPMSpec
85 lines
2.1 KiB
RPMSpec
Name: openvr
|
|
Version: 2.5.1
|
|
Release: 1mamba
|
|
Summary: Open VR hardware access library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://www.steamvr.com/en/
|
|
Source: https://github.com/ValveSoftware/openvr.git/v%{version}/openvr-%{version}.tar.bz2
|
|
Patch0: openvr-2.5.1-pr-use-system-jsoncpp.patch
|
|
Patch1: openvr-2.5.1-pr-use_correct_definition_of_vsprintf_s.patch
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
Open VR hardware access library.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: Open VR hardware access library
|
|
|
|
%description -n lib%{name}
|
|
Open Virtual Reality library.
|
|
This package contains shared libraries for %{name}.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch 0 -p1 -b .pr-use-system-jsoncpp
|
|
%patch 1 -p1 -b .pr-use_correct_definition_of_vsprintf_s
|
|
|
|
sed -i "s|DESTINATION lib)|DESTINATION %{_lib})|" src/CMakeLists.txt
|
|
|
|
%build
|
|
%cmake \
|
|
-DBUILD_SHARED=1
|
|
|
|
# FIXME:
|
|
# -DUSE_SYSTEM_JSONCPP=True
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%cmake_install
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libopenvr_api.so
|
|
%doc LICENSE
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/openvr
|
|
%{_includedir}/openvr/*
|
|
%{_datadir}/pkgconfig/openvr.pc
|
|
%doc README.md
|
|
|
|
|
|
%changelog
|
|
* Mon May 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-1mamba
|
|
- package created using the webbuild interface
|