]> git.pld-linux.org Git - packages/Vulkan-Headers.git/blob - Vulkan-Headers.spec
df73c9b17eff3eba660b8e062be21692bbc1415c
[packages/Vulkan-Headers.git] / Vulkan-Headers.spec
1
2 %define api_version     1.2.133
3
4 Summary:        Vulkan API headers and registry
5 Summary(pl.UTF-8):      Pliki nagłówkowe i rejestr API Vulkan
6 Name:           Vulkan-Headers
7 Version:        %{api_version}
8 Release:        1
9 License:        Apache v2.0, parts MIT-like
10 Group:          Development
11 Source0:        https://github.com/KhronosGroup/Vulkan-Headers/archive/v%{version}/Vulkan-Headers-%{version}.tar.gz
12 # Source0-md5:  2eb65eb649843e1ddf83575785c5785c
13 URL:            https://github.com/KhronosGroup/Vulkan-Headers/
14 BuildRequires:  cmake >= 3.10.2
15 Conflicts:      vulkan-devel < 1.1.107
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Header files and registry for Vulkan API.
20
21 %description -l pl.UTF-8
22 Pliki nagłówkowe i rejestr API Vulkan.
23
24 %prep
25 %setup -qn Vulkan-Headers-%{version}
26
27 %build
28 install -d build
29 cd build
30
31 # .pc file creation expect CMAKE_INSTALL_LIBDIR to be relative (to CMAKE_INSTALL_PREFIX)
32 %cmake .. \
33         -DCMAKE_INSTALL_LIBDIR=%{_lib}
34
35 %{__make}
36
37 cd ..
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_includedir}/vulkan
42
43 %{__make} -C build install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc README.md
52 %{_includedir}/vulkan
53 %{_datadir}/vulkan/registry
This page took 0.024548 seconds and 2 git commands to generate.