3 %define commit 9413fbbf587b23541c4339943325a474641cd605
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: d11ec2de7a44a68535b0dbd62f0cc5b6
13 Patch0: cmake-lib64.patch
14 URL: https://github.com/KhronosGroup/SPIRV-Tools
16 Requires: %{name}-libs = %{version}-%{release}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The SPIR-V Tools project provides an API and commands for processing
23 The project includes an assembler, binary module parser, disassembler,
24 and validator for SPIR-V, all based on a common static library. The
25 library contains all of the implementation details, and is used in the
26 standalone tools whilst also enabling integration into other code
29 The interfaces are still under development, and are expected to
32 SPIR-V is defined by the Khronos Group Inc.
35 Summary: SPIR-V Tools library
39 The SPIR-V Tools project provides an API for processing SPIR-V
43 Summary: Header files for %{name} library
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
45 Group: Development/Libraries
46 Requires: %{name}-libs = %{version}-%{release}
49 Header files for %{name} library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki %{name}.
55 %setup -q -n SPIRV-Tools-%{commit}
67 rm -rf $RPM_BUILD_ROOT
71 DESTDIR=$RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
76 %post libs -p /sbin/ldconfig
77 %postun libs -p /sbin/ldconfig
80 %defattr(644,root,root,755)
81 %doc LICENSE README.md syntax.md
82 %attr(755,root,root) %{_bindir}/spirv-*
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_libdir}/libSPIRV-Tools.so
89 %defattr(644,root,root,755)
91 %{_includedir}/spirv-tools