Update to 1.4.304.0 SDK

This commit is contained in:
José Expósito 2025-01-21 13:12:07 +01:00
parent fefcbb6c99
commit 6abc7e555e
3 changed files with 19 additions and 15 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@
/shaderc-45b735d.tar.gz /shaderc-45b735d.tar.gz
/shaderc-2023.7.tar.gz /shaderc-2023.7.tar.gz
/shaderc-2024.0.tar.gz /shaderc-2024.0.tar.gz
/caa54d9779d5605aca4e1a0c0c962a3d8f4aeb31.tar.gz

View File

@ -1,19 +1,19 @@
# Glslang revision from packaged version # Glslang revision from packaged version
%global glslang_version 436237a4ab2be3225acedc66016ea2aa82946b37 %global glslang_version caa54d9779d5605aca4e1a0c0c962a3d8f4aeb31
Name: shaderc Name: shaderc
Version: 2024.0 Version: 2024.4
Release: 1%{?dist} Release: 1%{?dist}
Summary: A collection of tools, libraries, and tests for Vulkan shader compilation Summary: A collection of tools, libraries, and tests for Vulkan shader compilation
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/google/shaderc URL: https://github.com/google/shaderc
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source: %{url}/archive/%{glslang_version}.tar.gz
# Patch to unbundle 3rd party code # Patch to unbundle 3rd party code
Patch1: 0001-Drop-third-party-code-in-CMakeLists.txt.patch Patch1: 0001-Drop-third-party-code-in-CMakeLists.txt.patch
Patch2: glslang_linker_flags.patch Patch2: glslang_linker_flags.patch
BuildRequires: cmake3 BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: ninja-build BuildRequires: ninja-build
BuildRequires: sed BuildRequires: sed
@ -65,9 +65,9 @@ A library for compiling shader strings into SPIR-V.
Static libraries for libshaderc. Static libraries for libshaderc.
%prep %prep
%autosetup -p1 %autosetup -p1 -n %{name}-%{glslang_version}
rm -rf third_party rm -r third_party
# Stolen from Gentoo # Stolen from Gentoo
# Create build-version.inc since we want to use our packaged # Create build-version.inc since we want to use our packaged
@ -85,18 +85,18 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
%build %build
# We disable the tests because they don't work with our unbundling of 3rd party. # We disable the tests because they don't work with our unbundling of 3rd party.
# See https://github.com/google/shaderc/issues/470 # See https://github.com/google/shaderc/issues/470
%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH=True \ -DCMAKE_SKIP_RPATH=True \
-DSHADERC_SKIP_TESTS=True \ -DSHADERC_SKIP_TESTS=True \
-DPYTHON_EXECUTABLE=%{python3} \ -DPYTHON_EXECUTABLE=%{python3} \
-GNinja -GNinja
%cmake3_build %cmake_build
%install %install
%cmake3_install %cmake_install
%check %check
%ctest3 %ctest
%files -n glslc %files -n glslc
%doc glslc/README.asciidoc %doc glslc/README.asciidoc
@ -121,6 +121,9 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
%{_libdir}/pkgconfig/shaderc_combined.pc %{_libdir}/pkgconfig/shaderc_combined.pc
%changelog %changelog
* Mon Jan 20 2025 José Expósito <jexposit@redhat.com> - 2024.4-1
- Update to 1.4.304.0 SDK
* Fri Jul 05 2024 José Expósito <jexposit@redhat.com> - 2024.0-1 * Fri Jul 05 2024 José Expósito <jexposit@redhat.com> - 2024.0-1
- Update to 1.3.280.0 SDK - Update to 1.3.280.0 SDK

View File

@ -1 +1 @@
SHA512 (shaderc-2024.0.tar.gz) = ca80b22a80bf1a222e6deecbe63f99c6eed980c6c31b4f7981b6c8dc5637b7271c861543566e01aaf945df40da095b63a69f2e22f061a41faad2ecca5dc187ae SHA512 (caa54d9779d5605aca4e1a0c0c962a3d8f4aeb31.tar.gz) = f7871571c708175e1f381fb8e9e108b498f9ce5de8273be91e7ebb123707335b02b26fd16960e90d6e8636b36c0c215b68ae55b88d6b7ad418f4c2a9a3a57ef6