|
|
|
@ -1,22 +1,14 @@
|
|
|
|
|
# Force out of source build
|
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
|
|
|
|
|
# Release 2023.1
|
|
|
|
|
%global commit 45b735dfddefe26a99b77e5a74e30d860713ac64
|
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
%global snapshotdate 20230524
|
|
|
|
|
|
|
|
|
|
# Glslang revision from packaged version
|
|
|
|
|
%global glslang_version sdk-1.3.239.0
|
|
|
|
|
%global glslang_version 436237a4ab2be3225acedc66016ea2aa82946b37
|
|
|
|
|
|
|
|
|
|
Name: shaderc
|
|
|
|
|
Version: 2023.4
|
|
|
|
|
Version: 2024.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A collection of tools, libraries, and tests for Vulkan shader compilation
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/google/shaderc
|
|
|
|
|
Source0: %url/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
|
|
|
|
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
# Patch to unbundle 3rd party code
|
|
|
|
|
Patch1: 0001-Drop-third-party-code-in-CMakeLists.txt.patch
|
|
|
|
|
Patch2: glslang_linker_flags.patch
|
|
|
|
@ -24,10 +16,12 @@ Patch2: glslang_linker_flags.patch
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
BuildRequires: spirv-tools
|
|
|
|
|
|
|
|
|
|
BuildRequires: glslang-devel
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: spirv-headers-devel
|
|
|
|
|
BuildRequires: spirv-tools
|
|
|
|
|
BuildRequires: spirv-tools-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -71,7 +65,7 @@ A library for compiling shader strings into SPIR-V.
|
|
|
|
|
Static libraries for libshaderc.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n %{name}-%{commit}
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
rm -rf third_party
|
|
|
|
|
|
|
|
|
@ -94,7 +88,7 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
|
|
|
|
|
%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
|
|
|
-DSHADERC_SKIP_TESTS=True \
|
|
|
|
|
-DPYTHON_EXE=%{__python3} \
|
|
|
|
|
-DPYTHON_EXECUTABLE=%{python3} \
|
|
|
|
|
-GNinja
|
|
|
|
|
%cmake3_build
|
|
|
|
|
|
|
|
|
@ -127,9 +121,18 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
|
|
|
|
|
%{_libdir}/pkgconfig/shaderc_combined.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 05 2024 José Expósito <jexposit@redhat.com> - 2024.0-1
|
|
|
|
|
- Update to 1.3.280.0 SDK
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2024 José Expósito <jexposit@redhat.com> - 2023.7-1
|
|
|
|
|
- Update to 1.3.268.0 SDK
|
|
|
|
|
|
|
|
|
|
* Fri Jul 07 2023 Dave Airlie <airlied@redhat.com> - 2023.4-1
|
|
|
|
|
- Update for 1.3.250.1 sdk release
|
|
|
|
|
|
|
|
|
|
* Fri Apr 14 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2023.1-2
|
|
|
|
|
- Rebuilt for MSVSphere 9.2 beta
|
|
|
|
|
|
|
|
|
|
* Thu Feb 16 2023 Dave Airlie <airlied@redhat.com> - 2023.1-2
|
|
|
|
|
- Update for 1.3.239.0 sdk release
|
|
|
|
|
|
|
|
|
|