3 %define commit 476989e7b715529aa8063016dc44e31bbf3e08bc
4 %define _ver %(echo %{version} | tr _ -)
7 Version: 1.0_rev3.s%{snap}
11 Source0: https://github.com/KhronosGroup/SPIRV-Tools/archive/%{commit}/%{name}-s%{snap}.tar.gz
12 # Source0-md5: c86bbabd5b1efea51c49a46099499f7d
13 Patch0: cmake-lib64.patch
14 Patch1: no-git-describe.patch
15 URL: https://github.com/KhronosGroup/SPIRV-Tools
17 Requires: %{name}-libs = %{version}-%{release}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The SPIR-V Tools project provides an API and commands for processing
24 The project includes an assembler, binary module parser, disassembler,
25 and validator for SPIR-V, all based on a common static library. The
26 library contains all of the implementation details, and is used in the
27 standalone tools whilst also enabling integration into other code
30 The interfaces are still under development, and are expected to
33 SPIR-V is defined by the Khronos Group Inc.
36 Summary: SPIR-V Tools library
40 The SPIR-V Tools project provides an API for processing SPIR-V
44 Summary: Header files for %{name} library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
46 Group: Development/Libraries
47 Requires: %{name}-libs = %{version}-%{release}
50 Header files for %{name} library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki %{name}.
56 %setup -q -n SPIRV-Tools-%{commit}
66 # we know better than utils/update_build_version.py
67 echo '"spirv-tools %{commit}\\n"' > build-version.inc
72 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
81 %post libs -p /sbin/ldconfig
82 %postun libs -p /sbin/ldconfig
85 %defattr(644,root,root,755)
86 %doc LICENSE README.md syntax.md
87 %attr(755,root,root) %{_bindir}/spirv-*
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libSPIRV-Tools.so
94 %defattr(644,root,root,755)
96 %{_includedir}/spirv-tools