]> git.pld-linux.org Git - packages/spirv-headers.git/blame - spirv-headers.spec
- fixed includedir in .pc file; release 2
[packages/spirv-headers.git] / spirv-headers.spec
CommitLineData
448c75f6
JB
1# (commit 814e728b30ddd0f4509233099a3ad96fd4318c07)
2%define gitref sdk-1.2.198.0
7db8102b 3
4487a47c 4Summary: SPIR-V headers
b3def81c 5Summary(pl.UTF-8): Pliki nagłówkowe SPIR-V
4487a47c 6Name: spirv-headers
448c75f6
JB
7# see CMakeLists.txt /VERSION or include/spirv/unified1/spirv.h /SPV_VERSION + /SPV_REVISION (whichever is greater)
8Version: 1.5.5
04ab95c4 9Release: 2
7e0add61 10License: MIT
4487a47c 11Group: Libraries
448c75f6
JB
12#Source0Download: https://github.com/KhronosGroup/SPIRV-Headers/tags
13Source0: https://github.com/KhronosGroup/SPIRV-Headers/archive/%{gitref}/SPIRV-Headers-%{gitref}.tar.gz
14# Source0-md5: 298b70404ee9b6482397125c920d3c6b
4487a47c 15URL: https://github.com/KhronosGroup/SPIRV-Headers
448c75f6
JB
16BuildRequires: cmake >= 3.0
17BuildRequires: rpmbuild(macros) >= 1.605
9c47c1c8 18Conflicts: spirv-tools-devel < v2016.6
bd427824 19BuildArch: noarch
4487a47c
JK
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23This package contains machine-readable files from the SPIR-V Registry.
24This includes:
b3def81c 25- header files for various languages,
4487a47c
JK
26- JSON files describing the grammar for the SPIR-V core instruction
27 set, and for the GLSL.std.450 extended instruction set.
28
b3def81c
JB
29%description -l pl.UTF-8
30Ten pakiet zawiera czytelne dla maszyny pliki z rejestru SPIR-V.
31Obejmują 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
4487a47c 36%prep
448c75f6
JB
37%setup -qn SPIRV-Headers-%{gitref}
38
39%build
40install -d build
41cd build
04ab95c4
JB
42# relative CMAKE_INSTALL_INCLUDEDIR for .pc file
43%cmake .. \
44 -DCMAKE_INSTALL_INCLUDEDIR=include
448c75f6
JB
45
46%{__make}
4487a47c 47
4487a47c
JK
48%install
49rm -rf $RPM_BUILD_ROOT
50
448c75f6
JB
51%{__make} -C build install \
52 DESTDIR=$RPM_BUILD_ROOT
4487a47c
JK
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc LICENSE README.md
60%{_includedir}/spirv
448c75f6
JB
61%{_datadir}/cmake/SPIRV-Headers
62%{_npkgconfigdir}/SPIRV-Headers.pc
This page took 0.072215 seconds and 4 git commands to generate.