blob: badcd920d3b31b7209b27b2d41b8c3b511f51047 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
Name: vulkan-tools
Version: 1.1.92
Release: 0
Summary: Vulkan tools
Group: Graphics & UI Framework/GL
License: Apache-2.0
Source: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: libtool
BuildRequires: python3
BuildRequires: glslang
BuildRequires: vulkan-loader-devel
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-cursor)
BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(wayland-egl)
%define BUILD_TYPE Debug
%description
This project provides the Khronos Vulkan Tools.
%prep
%setup -q
%build
cp %{SOURCE1001} .
export CFLAGS="$CFLAGS -w"
cmake -DCMAKE_BUILD_TYPE=%{BUILD_TYPE} -DGLSLANG_INSTALL_DIR=%{_bindir} \
-DBUILD_WSI_XLIB_SUPPORT=OFF -DBUILD_WSI_XCB_SUPPORT=OFF -DBUILD_WSI_WAYLAND_SUPPORT=ON \
-DCUBE_WSI_SELECTION=WAYLAND \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
-DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_BINDIR=%{_bindir}
make
%install
rm -rf %{buildroot}
%make_install
%remove_docs
%files
%manifest %{name}.manifest
%license LICENSE.txt
%defattr(-,root,root,-)
%{_bindir}/*
|