3 %define commit b371439d6fbc6b7b7cd5b4ef7046faa6cdf0e9e2
4 %define _ver %(echo %{version} | tr _ -)
7 Version: v2016.6.s%{snap}
11 Source0: https://github.com/KhronosGroup/SPIRV-Tools/archive/%{commit}/%{name}-s%{snap}.tar.gz
12 # Source0-md5: 7312ed45ce0e279aa5829c867ce227e1
13 Patch0: cmake-lib64.patch
14 Patch1: no-git-describe.patch
15 URL: https://github.com/KhronosGroup/SPIRV-Tools
17 BuildRequires: spirv-headers
18 Requires: %{name}-libs = %{version}-%{release}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The SPIR-V Tools project provides an API and commands for processing
25 The project includes an assembler, binary module parser, disassembler,
26 and validator for SPIR-V, all based on a common static library. The
27 library contains all of the implementation details, and is used in the
28 standalone tools whilst also enabling integration into other code
31 The interfaces are still under development, and are expected to
34 SPIR-V is defined by the Khronos Group Inc.
37 Summary: SPIR-V Tools library
41 The SPIR-V Tools project provides an API for processing SPIR-V
45 Summary: Header files for %{name} library
46 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
47 Group: Development/Libraries
48 Requires: spirv-headers
49 Requires: %{name}-libs = %{version}-%{release}
52 Header files for %{name} library.
54 %description devel -l pl.UTF-8
55 Pliki nagłówkowe biblioteki %{name}.
58 %setup -q -n SPIRV-Tools-%{commit}
64 install -d build external/spirv-headers/include
65 ln -s /usr/include/spirv external/spirv-headers/include/spirv
71 # we know better than utils/update_build_version.py
72 echo '"spirv-tools %{commit}\\n"' > build-version.inc
77 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
85 rm -rf $RPM_BUILD_ROOT
87 %post libs -p /sbin/ldconfig
88 %postun libs -p /sbin/ldconfig
91 %defattr(644,root,root,755)
92 %doc LICENSE README.md syntax.md
93 %attr(755,root,root) %{_bindir}/spirv-*
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libSPIRV-Tools.so
98 %attr(755,root,root) %{_libdir}/libSPIRV-Tools-opt.so
101 %defattr(644,root,root,755)
102 %{_includedir}/spirv-tools