blob: 020af85418450c05a1c06dc8e2bdabe22cf52b2a (
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
51
52
53
54
55
56
57
58
59
60
61
|
Name: spirv-headers
Version: 1.5.5
Release: 0
Summary: Khronos SPIRV Headers
Group: Graphics & UI Framework/GL
License: MIT
Source: %{name}-%{version}.tar.gz
Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: libtool
%define BUILD_TYPE Debug
%description
Khronos SPIRV Headers
%package devel
Summary: Khronos SPIRV Headers
Group: System/Libraries
%description devel
Khronos SPIRV Headers
%prep
%setup -q
%build
cp %{SOURCE1001} .
# build SPIRV headers
mkdir build
cd build
cmake ..
cmake --build .
cd ..
%install
rm -rf %{buildroot}
# release pkg
mkdir -p %{buildroot}%{_includedir}/
mkdir -p %{buildroot}%{_datadir}/cmake/SPIRV-Headers/
cp -Rf include/spirv %{buildroot}%{_includedir}/
cp -rf build/generated/* %{buildroot}%{_datadir}/cmake/SPIRV-Headers
#cp -rf build/CMakeFiles/Export/share/cmake/SPIRV-Headers/* %{buildroot}%{_datadir}/cmake/SPIRV-Headers
find build/CMakeFiles/Export/ -name 'SPIRV-HeadersTargets.cmake' -exec cp {} %{buildroot}%{_datadir}/cmake/SPIRV-Headers \;
# devel pkg
cp -rf include/* %{buildroot}%{_includedir}/
%files
%manifest %{name}.manifest
%license LICENSE
%defattr(-,root,root,-)
%{_includedir}/spirv/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/spirv/*
%{_datadir}/cmake/*
|