2020-11-10 08:19:57 +00:00
|
|
|
%global pkgname OpenXR-SDK-Source
|
|
|
|
%global libmajor 1
|
|
|
|
|
|
|
|
Name: openxr
|
2021-06-09 04:31:41 +00:00
|
|
|
Version: 1.0.17
|
2021-07-22 17:23:49 +00:00
|
|
|
Release: 2%{?dist}
|
2020-11-10 08:19:57 +00:00
|
|
|
Summary: An API for writing VR and AR software
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/KhronosGroup/%{pkgname}
|
2021-04-19 09:16:44 +00:00
|
|
|
Source: https://github.com/KhronosGroup/%{pkgname}/archive/refs/tags/release-%{version}.tar.gz
|
2020-11-10 08:19:57 +00:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: glslang
|
|
|
|
BuildRequires: glslang-devel
|
|
|
|
BuildRequires: pkgconfig(egl)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(jsoncpp)
|
2021-01-31 00:24:52 +00:00
|
|
|
BuildRequires: pkgconfig(vulkan)
|
|
|
|
BuildRequires: pkgconfig(wayland-client)
|
2020-11-10 08:19:57 +00:00
|
|
|
BuildRequires: pkgconfig(xxf86vm)
|
|
|
|
BuildRequires: pkgconfig(xcb-icccm)
|
|
|
|
BuildRequires: pkgconfig(xcb-keysyms)
|
|
|
|
BuildRequires: pkgconfig(xcb)
|
|
|
|
BuildRequires: pkgconfig(xcb-glx)
|
|
|
|
BuildRequires: pkgconfig(xcb-randr)
|
|
|
|
BuildRequires: pkgconfig(xcb-dri2)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: python3dist(jinja2)
|
|
|
|
|
|
|
|
%description
|
|
|
|
OpenXR is an API specification for writing portable, cross-platform,
|
|
|
|
virtual reality (VR) and augmented reality (AR) software.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries for writing VR and AR software
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
This package contains the library needed to run programs dynamically
|
|
|
|
linked with OpenXR.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers and development files of the OpenXR library
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2021-01-31 00:24:52 +00:00
|
|
|
Development files for the OpenXR library. Install this package if you
|
2020-11-10 08:19:57 +00:00
|
|
|
want to compile applications using the OpenXR library.
|
|
|
|
|
|
|
|
%prep
|
2021-01-31 00:24:52 +00:00
|
|
|
%autosetup -n %{pkgname}-release-%{version}
|
2020-11-10 08:19:57 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DBUILD_ALL_EXTENSIONS=ON \
|
|
|
|
-DBUILD_LOADER=ON \
|
|
|
|
-DBUILD_TESTS=ON \
|
2021-04-19 09:16:44 +00:00
|
|
|
-DBUILD_WITH_STD_FILESYSTEM=OFF \
|
2020-11-10 08:19:57 +00:00
|
|
|
-DBUILD_WITH_WAYLAND_HEADERS=ON \
|
2021-01-31 00:24:52 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-11-10 08:19:57 +00:00
|
|
|
-DCMAKE_C_FLAGS="%{optflags} -Wl,--as-needed" \
|
|
|
|
-DCMAKE_CXX_FLAGS="%{optflags} -Wl,--as-needed" \
|
2021-04-19 09:16:44 +00:00
|
|
|
-DCMAKE_CXX_STANDARD=17 \
|
|
|
|
-DDYNAMIC_LOADER=ON
|
2020-11-10 08:19:57 +00:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2021-04-19 09:16:44 +00:00
|
|
|
# We do not want static file .a
|
|
|
|
rm -fr %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
2020-11-10 08:19:57 +00:00
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
# Include license in doc otherwise build complains
|
2021-01-31 02:32:28 +00:00
|
|
|
%doc CHANGELOG.SDK.md LICENSE README.md
|
2020-11-10 08:19:57 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%{_libdir}/*.so.%{libmajor}{,.*}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/cmake/%{name}
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|
2021-07-22 17:23:49 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-09 04:31:41 +00:00
|
|
|
* Wed Jun 09 2021 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.17-1
|
|
|
|
- Update to 1.0.17 (#1969698)
|
|
|
|
- Resolves rhbz#1969698
|
|
|
|
|
2021-05-12 07:41:05 +00:00
|
|
|
* Wed May 12 2021 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 1.0.16-1
|
|
|
|
- Update to 1.0.16 (#1921848)
|
|
|
|
- Fixes rhbz#1921848
|
|
|
|
|
2021-04-19 09:16:44 +00:00
|
|
|
* Thu Jan 28 2021 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.15-1
|
|
|
|
- Update to 1.0.15
|
|
|
|
- Fix tarball url
|
|
|
|
- Disable experimental DBUILD_WITH_STD_FILESYSTEM due to failure
|
|
|
|
- Resolves: #1921848
|
|
|
|
|
2021-01-31 00:24:52 +00:00
|
|
|
* Thu Jan 28 2021 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.14-1
|
|
|
|
- Update to 1.0.14
|
|
|
|
- Use pkgconfig for vulkan-loader-devel as build requirement
|
|
|
|
- Drop .so versioning patch as suggested by upstream
|
|
|
|
|
2021-01-26 22:39:17 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-26 09:40:50 +00:00
|
|
|
* Wed Nov 25 2020 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.13-1
|
|
|
|
- Update to 1.0.13
|
|
|
|
|
2020-11-10 08:19:57 +00:00
|
|
|
* Sat Nov 7 2020 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.12-3
|
|
|
|
- Add patch for .so versioning
|
|
|
|
- Remove tab spacing
|
|
|
|
- Drop Group tag
|
|
|
|
|
|
|
|
* Sat Nov 7 2020 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.12-2
|
|
|
|
- Fix source url
|
|
|
|
- Set arch info (isa) for libs requirement
|
|
|
|
- Remove OPENGL_glx_LIBRARY=GL parameter
|
|
|
|
- Specify _includedir
|
|
|
|
|
|
|
|
* Mon Oct 26 2020 Luya Tshimbalanga <luya@fedoraproject.org> 1.0.12-1
|
|
|
|
- Port spec file from Mageia to Fedora
|
|
|
|
|
|
|
|
* Sat Sep 19 2020 ghibo <ghibo> 1.0.11-1.mga8
|
|
|
|
- initial release.
|