]> git.pld-linux.org Git - packages/spirv-tools.git/commitdiff
- updated to 2020.3 auto/th/spirv-tools-2020.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Jul 2020 19:15:47 +0000 (21:15 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 5 Jul 2020 19:15:47 +0000 (21:15 +0200)
- fix .pc file

spirv-tools.spec

index 2d52347d7c74b92e97a0169bee93428197b74f93..51ec75c357a6d11a9da4f4a45d69154d1bba435d 100644 (file)
@@ -1,14 +1,14 @@
 Summary:       Khronos SPIR-V Tools
 Summary(pl.UTF-8):     Narzędzia SPIR-V z projektu Khronos
 Name:          spirv-tools
-Version:       2020.1
+Version:       2020.3
 Release:       1
 Epoch:         1
 License:       Apache v2.0
 Group:         Development/Tools
 #Source0Download: https://github.com/KhronosGroup/SPIRV-Tools/releases
 Source0:       https://github.com/KhronosGroup/SPIRV-Tools/archive/v%{version}/SPIRV-Tools-%{version}.tar.gz
-# Source0-md5: d7c8167ed79cc80234faca8eed243502
+# Source0-md5: 1b7d45e6a060d3a2e3dad73531cb0768
 Patch0:                no-git-describe.patch
 URL:           https://github.com/KhronosGroup/SPIRV-Tools
 BuildRequires: cmake >= 2.8.12
@@ -79,11 +79,14 @@ Pliki nagłówkowe biblioteki SPIR-V Tools.
 %{__sed} -i -e '1s,/usr/bin/env sh,/bin/sh,' tools/lesspipe/spirv-lesspipe.sh
 
 %build
-install -d build external/spirv-headers/include
-ln -s /usr/include/spirv external/spirv-headers/include/spirv
+install -d build
 
 cd build
-%cmake ..
+# .pc file generation expects relative CMAKE_INSTALL_*DIR
+%cmake .. \
+       -DCMAKE_INSTALL_INCLUDEDIR:PATH=include \
+       -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
+       -DSPIRV-Headers_SOURCE_DIR=/usr
 
 # we know better than utils/update_build_version.py
 echo '"spirv-tools %{version}\\n"' > build-version.inc
This page took 0.124626 seconds and 4 git commands to generate.