]>
Commit | Line | Data |
---|---|---|
dc0fdaa7 JK |
1 | %define _ver %(echo %{version} | tr _ -) |
2 | Summary: SPIR-V Tools | |
3 | Name: spirv-tools | |
4 | Version: 1.0_rev3 | |
5 | Release: 0.1 | |
6 | License: MIT-like | |
7 | Group: Applications | |
8 | Source0: https://github.com/KhronosGroup/SPIRV-Tools/archive/spirv-%{_ver}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 81a72c33f7d50d010de760d55a96683f | |
10 | Patch0: cmake-lib64.patch | |
11 | URL: https://github.com/KhronosGroup/SPIRV-Tools | |
12 | BuildRequires: cmake | |
13 | Requires: %{name}-libs = %{version}-%{release} | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | The SPIR-V Tools project provides an API and commands for processing | |
18 | SPIR-V modules. | |
19 | ||
20 | The project includes an assembler, binary module parser, disassembler, | |
21 | and validator for SPIR-V, all based on a common static library. The | |
22 | library contains all of the implementation details, and is used in the | |
23 | standalone tools whilst also enabling integration into other code | |
24 | bases directly. | |
25 | ||
26 | The interfaces are still under development, and are expected to | |
27 | change. | |
28 | ||
29 | SPIR-V is defined by the Khronos Group Inc. | |
30 | ||
31 | %package libs | |
32 | Summary: SPIR-V Tools library | |
33 | Group: Libraries | |
34 | ||
35 | %description libs | |
36 | The SPIR-V Tools project provides an API for processing SPIR-V | |
37 | modules. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for %{name} library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
42 | Group: Development/Libraries | |
43 | Requires: %{name}-libs = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for %{name} library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki %{name}. | |
50 | ||
51 | %prep | |
52 | %setup -q -n SPIRV-Tools-spirv-%{_ver} | |
53 | %patch0 -p1 | |
54 | ||
55 | %build | |
56 | install -d build | |
57 | cd build | |
58 | %cmake \ | |
59 | ../ | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | cd build | |
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post libs -p /sbin/ldconfig | |
74 | %postun libs -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc LICENSE README.md syntax.md | |
79 | %attr(755,root,root) %{_bindir}/spirv-* | |
80 | ||
81 | %files libs | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_libdir}/libSPIRV-Tools.so | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %{_includedir}/spirv | |
88 | %{_includedir}/spirv-tools |