3 %bcond_without static_libs # static library
5 Summary: OpenVR SDK - API and runtime that allows access to VR hardware
6 Summary(pl.UTF-8): OpenVR SDK - API i biblioteka uruchomieniowa pozwalająca na dostęp do sprzętu VR
12 #Source0Download: https://github.com/ValveSoftware/openvr/tags
13 Source0: https://github.com/ValveSoftware/openvr/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 2dd6945040b63c9a2d1ce4ece00bda7e
15 Patch0: %{name}-pc.patch
16 Patch1: %{name}-libdir.patch
17 URL: https://github.com/ValveSoftware/openvr
18 BuildRequires: cmake >= 2.8
19 BuildRequires: libstdc++-devel >= 6:4.7
20 BuildRequires: rpmbuild(macros) >= 1.605
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 OpenVR is an API and runtime that allows access to VR hardware from
25 multiple vendors without requiring that applications have specific
26 knowledge of the hardware they are targeting. This is an SDK that
27 contains the API and samples. The runtime is under SteamVR in Tools on
30 %description -l pl.UTF-8
31 OpenVR to API i biblioteka uruchomieniowa, poozwalająca na dostęp do
32 sprzętu VR różnych producentów bez wymagania od aplikacji wiedzy o
33 sprzęcie, z jakim ma być używana. Ten pakiet zawiera API i przykłady.
34 Biblioteka uruchomieniowa jest umieszczona w StreamVR w Tools on
38 Summary: Header files for OpenVR SDK library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenVR SDK
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libstdc++-devel >= 6:4.7
45 Header files for OpenVR SDK library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki OpenVR SDK.
51 Summary: Static OpenVR SDK library
52 Summary(pl.UTF-8): Statyczna biblioteka OpenVR SDK
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static OpenVR SDK library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka OpenVR SDK.
71 %if %{with static_libs}
72 install -d build-static
75 -DINSTALL_PKGCONFIG_DIR=%{_pkgconfigdir}
81 install -d build-shared
85 -DINSTALL_PKGCONFIG_DIR=%{_pkgconfigdir}
90 rm -rf $RPM_BUILD_ROOT
92 %if %{with static_libs}
93 %{__make} -C build-static install \
94 DESTDIR=$RPM_BUILD_ROOT
97 %{__make} -C build-shared install \
98 DESTDIR=$RPM_BUILD_ROOT
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc LICENSE README.md
109 %attr(755,root,root) %{_libdir}/libopenvr_api.so
112 %defattr(644,root,root,755)
113 %doc src/README docs/Driver_API_Documentation.md
114 %{_includedir}/openvr
115 %{_pkgconfigdir}/openvr.pc
117 %if %{with static_libs}
119 %defattr(644,root,root,755)
120 %{_libdir}/libopenvr_api.a