1 # (commit 814e728b30ddd0f4509233099a3ad96fd4318c07)
2 %define gitref sdk-1.2.198.0
4 Summary: SPIR-V headers
5 Summary(pl.UTF-8): Pliki nagłówkowe SPIR-V
7 # see CMakeLists.txt /VERSION or include/spirv/unified1/spirv.h /SPV_VERSION + /SPV_REVISION (whichever is greater)
12 #Source0Download: https://github.com/KhronosGroup/SPIRV-Headers/tags
13 Source0: https://github.com/KhronosGroup/SPIRV-Headers/archive/%{gitref}/SPIRV-Headers-%{gitref}.tar.gz
14 # Source0-md5: 298b70404ee9b6482397125c920d3c6b
15 URL: https://github.com/KhronosGroup/SPIRV-Headers
16 BuildRequires: cmake >= 3.0
17 BuildRequires: rpmbuild(macros) >= 1.605
18 Conflicts: spirv-tools-devel < v2016.6
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This package contains machine-readable files from the SPIR-V Registry.
25 - header files for various languages,
26 - JSON files describing the grammar for the SPIR-V core instruction
27 set, and for the GLSL.std.450 extended instruction set.
29 %description -l pl.UTF-8
30 Ten pakiet zawiera czytelne dla maszyny pliki z rejestru SPIR-V.
32 - pliki nagłówkowe dla różnych języków,
33 - pliki JSON opisujące gramatykę podstawowego zestawu instrukcji
34 SPIR-V oraz rozszerzonego zestawu instrukcji GLSL.std.450.
37 %setup -qn SPIRV-Headers-%{gitref}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} -C build install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc LICENSE README.md
59 %{_datadir}/cmake/SPIRV-Headers
60 %{_npkgconfigdir}/SPIRV-Headers.pc