|
|
|
@ -1,33 +1,37 @@
|
|
|
|
|
# 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
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 2;
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
# Glslang revision from packaged version
|
|
|
|
|
%global glslang_version sdk-1.3.239.0
|
|
|
|
|
%global glslang_version 436237a4ab2be3225acedc66016ea2aa82946b37
|
|
|
|
|
|
|
|
|
|
Name: shaderc
|
|
|
|
|
Version: 2023.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A collection of tools, libraries, and tests for Vulkan shader compilation
|
|
|
|
|
Version: 2024.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Collection of tools, libraries, and tests for Vulkan shader compilation
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
License: Apache-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
|
|
|
|
|
Patch: 0001-Drop-third-party-code-in-CMakeLists.txt.patch
|
|
|
|
|
Patch: glslang_linker_flags.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
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,9 +75,9 @@ 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
|
|
|
|
|
rm -r third_party
|
|
|
|
|
|
|
|
|
|
# Stolen from Gentoo
|
|
|
|
|
# Create build-version.inc since we want to use our packaged
|
|
|
|
@ -91,18 +95,18 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
|
|
|
|
|
%build
|
|
|
|
|
# We disable the tests because they don't work with our unbundling of 3rd party.
|
|
|
|
|
# See https://github.com/google/shaderc/issues/470
|
|
|
|
|
%cmake3 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
|
|
|
-DSHADERC_SKIP_TESTS=True \
|
|
|
|
|
-DPYTHON_EXE=%{__python3} \
|
|
|
|
|
-GNinja
|
|
|
|
|
%cmake3_build
|
|
|
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH=True \
|
|
|
|
|
-DSHADERC_SKIP_TESTS=True \
|
|
|
|
|
-DPYTHON_EXECUTABLE=%{python3} \
|
|
|
|
|
-GNinja
|
|
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake3_install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ctest3
|
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
%files -n glslc
|
|
|
|
|
%doc glslc/README.asciidoc
|
|
|
|
@ -127,30 +131,83 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
|
|
|
|
|
%{_libdir}/pkgconfig/shaderc_combined.pc
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jul 07 2023 Dave Airlie <airlied@redhat.com> - 2023.4-1
|
|
|
|
|
- Update for 1.3.250.1 sdk release
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2024.0-2
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2024.0-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Jul 05 2024 José Expósito <jexposit@redhat.com> - 2024.0-1
|
|
|
|
|
- Update to 1.3.280.0 SDK
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2023.7-4
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Apr 30 2024 Tomas Pelka <tpelka@redhat.com> - 2023.7-3
|
|
|
|
|
- Add gating.yaml via API
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2023.7-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Nov 02 2023 José Expósito <jexposit@redhat.com> - 2023.7-1
|
|
|
|
|
- update to 1.3.268.0 SDK
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2023.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jun 22 2023 Davide Cavalca <dcavalca@fedoraproject.org> - 2023.3-1
|
|
|
|
|
- Update to 2023.3 and tidy up the spec; Fixes: RHBZ#1997985
|
|
|
|
|
|
|
|
|
|
* Thu Feb 16 2023 Dave Airlie <airlied@redhat.com> - 2023.1-3
|
|
|
|
|
- fix build-version attempt
|
|
|
|
|
|
|
|
|
|
* Thu Feb 16 2023 Dave Airlie <airlied@redhat.com> - 2023.1-2
|
|
|
|
|
- Update for 1.3.239.0 sdk release
|
|
|
|
|
- upload sources
|
|
|
|
|
|
|
|
|
|
* Thu Feb 16 2023 Dave Airlie <airlied@redhat.com> - 2023.1-1
|
|
|
|
|
- update to 2023.1 for sdk 1.3.239.0 release
|
|
|
|
|
|
|
|
|
|
* Tue Jan 31 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2022.2-5
|
|
|
|
|
- Backport upstream patch to support current spirv-tools
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2022.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Aug 26 2022 Dave Airlie <airlied@redhat.com> - 2022.2-2
|
|
|
|
|
- Update for 1.3.224.0 sdk release
|
|
|
|
|
* Sun Oct 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 2022.2-3
|
|
|
|
|
- Update to 2022.2
|
|
|
|
|
|
|
|
|
|
* Fri Jun 24 2022 Dave Airlie <airlied@redhat.com> - 2022.2-1
|
|
|
|
|
- Update for 1.3.216.0 sdk release
|
|
|
|
|
* Sun Oct 23 2022 Robert-André Mauchin <zebob.m@gmail.com>
|
|
|
|
|
- Update to 2022.2
|
|
|
|
|
|
|
|
|
|
* Mon Feb 28 2022 Dave Airlie <airlied@redhat.com> - 2022.1-1
|
|
|
|
|
- Update for 1.3.204.0 sdk release
|
|
|
|
|
* Fri Aug 26 2022 Dave Airlie <airlied@redhat.com> - 2022.2-1
|
|
|
|
|
- update shaderc to sdk 1.3.224 release version
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2020.5-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2021.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 30 2021 Dave Airlie <airlied@redhat.com> - 2020.5-3
|
|
|
|
|
- Update for 1.2.182.0 sdk release
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2021.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2020.5-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Mon Dec 06 2021 Dave Airlie <airlied@redhat.com> - 2021.3-3
|
|
|
|
|
- force a bump for spirv-tools abi change
|
|
|
|
|
|
|
|
|
|
* Thu Dec 02 2021 Dave Airlie <airlied@redhat.com> - 2021.3-2
|
|
|
|
|
- add updates sources
|
|
|
|
|
|
|
|
|
|
* Thu Dec 02 2021 Dave Airlie <airlied@redhat.com> - 2021.3-1
|
|
|
|
|
- Update to v2021.3
|
|
|
|
|
|
|
|
|
|
* Sun Jul 25 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2021.0-5
|
|
|
|
|
- Update to 2021.1 Close: rhbz#1974600
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2021.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun May 30 11:26:42 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2021.0-2
|
|
|
|
|
- Update to 2021.0
|
|
|
|
|
- Fix changelog
|
|
|
|
|
- Close: rhbz#1952332
|
|
|
|
|
|
|
|
|
|
* Fri Mar 5 13:43:44 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2020.5-1
|
|
|
|
|
- Update to 2020.5
|
|
|
|
@ -201,3 +258,5 @@ sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/sr
|
|
|
|
|
* Mon Sep 24 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2-1
|
|
|
|
|
- Initial build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|