1 # (commit b2a156e1c0434bc8c99aaebba1c7be98be7ac580)
2 %define gitref sdk-1.3.224.1
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: 295b55773166d3ccfade522b9b80805f
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}
42 # relative CMAKE_INSTALL_INCLUDEDIR for .pc file
44 -DCMAKE_INSTALL_INCLUDEDIR=include
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} -C build install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc LICENSE README.md
61 %{_datadir}/cmake/SPIRV-Headers
62 %{_npkgconfigdir}/SPIRV-Headers.pc