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