Changeset View
Changeset View
Standalone View
Standalone View
package.yml
- This file was added.
| name : shaderc | |||||
| version : '2021.0' | |||||
| release : 1 | |||||
| source : | |||||
| - https://github.com/google/shaderc/archive/refs/tags/v2021.0.tar.gz : 99762c51b0ceddea4be9b8de3240a7dbf1de9131179eed94b568ce52a5496a8f | |||||
| license : Apache-2.0 | |||||
| component : programming.tools | |||||
| summary : A collection of tools, libraries, and tests for Vulkan shader compilation | |||||
| description: | | |||||
| A collection of tools, libraries and tests for shader compilation. At the moment it includes both glslc, a command line compiler for GLSL/HLSL to SPIR-V, and libshaderc, a library API for accessing glslc functionality. | |||||
| builddeps : | |||||
| - pkgconfig(SPIRV-Tools) | |||||
| - asciidoctor | |||||
| - glslang-devel | |||||
| setup : | | |||||
| %patch -p1 < $pkgfiles/0001-Drop-third-party-code-in-CMakeLists.txt.patch | |||||
| %patch -p1 < $pkgfiles/library-version-soversion.patch | |||||
aleksvor: Are you sure that these are needed as rundeps? Doesn't shaderc use only static libs from -devel… | |||||
| %patch -p1 < $pkgfiles/missing-libs-glslc.patch | |||||
| echo \"shaderc $(head -n3 CHANGES | tail -n1)\" > glslc/src/build-version.inc | |||||
JoshStroblUnsubmitted Done Inline ActionsWhat is the intention of this? If it's just to get the build version, why don't you interpolate $version into the necessary string like v${version} and echo that? JoshStrobl: What is the intention of this? If it's just to get the build version, why don't you interpolate… | |||||
| echo \" - spirv-tools $(spirv-link --version | perl -ne 'print $1 if /(v\d+\.\d)/;')\" >> glslc/src/build-version.inc | |||||
| echo \" - glslang v$(glslangValidator --version | head -n1 | perl -ne 'print $1 if /:(\d.*\d)/;')\" >> glslc/src/build-version.inc | |||||
| sed -i "s|\"SPIRV/GlslangToSpv.h\"|<glslang/SPIRV/GlslangToSpv.h>|" libshaderc_util/src/compiler.cc | |||||
JoshStroblUnsubmitted Done Inline ActionsI'd prefer this be a patch. JoshStrobl: I'd prefer this be a patch. | |||||
| sed -i "s|@VERSION@|%version%|" libshaderc/CMakeLists.txt | |||||
| rm -rf third_party | |||||
| %cmake_ninja -DSHADERC_SKIP_TESTS=ON -DCMAKE_SKIP_RPATH=ON -DPYTHON_EXE=python3 | |||||
| build : | | |||||
| %ninja_build | |||||
| asciidoctor -b manpage glslc/README.asciidoc -o glslc.1 | |||||
| install : | | |||||
| %ninja_install | |||||
| install -Dm00644 glslc.1 $installdir/usr/share/man/man1/glslc.1 | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.
Are you sure that these are needed as rundeps? Doesn't shaderc use only static libs from -devel subpackages?