]> git.pld-linux.org Git - packages/spirv-headers.git/blob - spirv-headers.spec
- updated to 1.5.5 from sdk-1.2.198.0 tag
[packages/spirv-headers.git] / spirv-headers.spec
1 # (commit 814e728b30ddd0f4509233099a3ad96fd4318c07)
2 %define         gitref  sdk-1.2.198.0
3
4 Summary:        SPIR-V headers
5 Summary(pl.UTF-8):      Pliki nagłówkowe SPIR-V
6 Name:           spirv-headers
7 # see CMakeLists.txt /VERSION or include/spirv/unified1/spirv.h /SPV_VERSION + /SPV_REVISION (whichever is greater)
8 Version:        1.5.5
9 Release:        1
10 License:        MIT
11 Group:          Libraries
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
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This package contains machine-readable files from the SPIR-V Registry.
24 This includes:
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.
28
29 %description -l pl.UTF-8
30 Ten pakiet zawiera czytelne dla maszyny pliki z rejestru SPIR-V.
31 Obejmują one:
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.
35
36 %prep
37 %setup -qn SPIRV-Headers-%{gitref}
38
39 %build
40 install -d build
41 cd build
42 %cmake ..
43
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} -C build install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc LICENSE README.md
58 %{_includedir}/spirv
59 %{_datadir}/cmake/SPIRV-Headers
60 %{_npkgconfigdir}/SPIRV-Headers.pc
This page took 0.080929 seconds and 3 git commands to generate.