Build with wayland support (rhbz 1383115)

This commit is contained in:
leigh123linux 2016-10-10 04:42:40 +01:00
commit eba641d00e

View file

@ -19,9 +19,9 @@
Name: vulkan
Version: 1.0.26.0
%if 0%{?use_git}
Release: 0.6.git%{shortcommit}%{?dist}
Release: 0.7.git%{shortcommit}%{?dist}
%else
Release: 3%{?dist}
Release: 4%{?dist}
%endif
Summary: Vulkan loader and validation layers
@ -54,12 +54,16 @@ BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: bison
BuildRequires: cmake
BuildRequires: libX11-devel
BuildRequires: libxcb-devel
BuildRequires: libpciaccess-devel
BuildRequires: python3
BuildRequires: systemd-devel
BuildRequires: /usr/bin/chrpath
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcb)
Requires: vulkan-filesystem
@ -127,11 +131,12 @@ popd
pushd build/
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=yes -DCMAKE_SKIP_RPATH:BOOL=yes \
-DBUILD_VKJSON=OFF \
-DBUILD_VKJSON=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \
%if 0%{?use_layers}
..
%else
-DGLSLANG_SPIRV_INCLUDE_DIR=./ -DBUILD_TESTS=OFF -DBUILD_LAYERS=OFF ..
-DGLSLANG_SPIRV_INCLUDE_DIR=./ -DBUILD_TESTS=OFF -DBUILD_LAYERS=OFF \
-DBUILD_WSI_WAYLAND_SUPPORT=ON -DBUILD_VKJSON=OFF ..
%endif
%make_build
popd
@ -193,6 +198,9 @@ mkdir -p %{buildroot}%{_sysconfdir}/vulkan/icd.d
%endif
%changelog
* Mon Oct 10 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.26.0-4
- Build with wayland support (rhbz 1383115)
* Tue Sep 27 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.0.26.0-3
- Move unversioned libraries
- Disable vkjson build