2020-10-15 16:33:08 +00:00
|
|
|
# Glslang revision from packaged version
|
2024-01-18 12:00:07 +00:00
|
|
|
%global glslang_version 066853941a3f097b6196f452dde42c0cbf7f98f4
|
2020-10-15 16:33:08 +00:00
|
|
|
|
|
|
|
Name: shaderc
|
2024-01-18 12:00:07 +00:00
|
|
|
Version: 2023.7
|
2023-07-07 03:32:55 +00:00
|
|
|
Release: 1%{?dist}
|
2020-10-15 16:33:08 +00:00
|
|
|
Summary: A collection of tools, libraries, and tests for Vulkan shader compilation
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/google/shaderc
|
2024-01-18 12:00:07 +00:00
|
|
|
Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-10-15 16:33:08 +00:00
|
|
|
# Patch to unbundle 3rd party code
|
|
|
|
Patch1: 0001-Drop-third-party-code-in-CMakeLists.txt.patch
|
|
|
|
Patch2: glslang_linker_flags.patch
|
|
|
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ninja-build
|
2024-01-18 12:00:07 +00:00
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: spirv-tools
|
|
|
|
|
2020-10-15 16:33:08 +00:00
|
|
|
BuildRequires: glslang-devel
|
2024-01-18 12:00:07 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-10-15 16:33:08 +00:00
|
|
|
BuildRequires: spirv-headers-devel
|
|
|
|
BuildRequires: spirv-tools-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
A collection of tools, libraries and tests for shader compilation.
|
|
|
|
|
|
|
|
Shaderc aims to to provide:
|
|
|
|
- a command line compiler with GCC- and Clang-like usage, for better
|
|
|
|
integration with build systems
|
|
|
|
- an API where functionality can be added without breaking existing clients
|
|
|
|
- an API supporting standard concurrency patterns across multiple
|
|
|
|
operating systems
|
|
|
|
- increased functionality such as file #include support
|
|
|
|
|
|
|
|
%package -n glslc
|
|
|
|
Summary: A command line compiler for GLSL/HLSL to SPIR-V
|
|
|
|
|
|
|
|
%description -n glslc
|
|
|
|
A command line compiler for GLSL/HLSL to SPIR-V.
|
|
|
|
|
|
|
|
%package -n libshaderc
|
|
|
|
Summary: A library for compiling shader strings into SPIR-V
|
|
|
|
|
|
|
|
%description -n libshaderc
|
|
|
|
A library for compiling shader strings into SPIR-V.
|
|
|
|
|
|
|
|
%package -n libshaderc-devel
|
|
|
|
Summary: Development files for libshaderc
|
|
|
|
Requires: libshaderc%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libshaderc-devel
|
|
|
|
A library for compiling shader strings into SPIR-V.
|
|
|
|
|
|
|
|
Development files for libshaderc.
|
|
|
|
|
|
|
|
%package -n libshaderc-static
|
|
|
|
Summary: A library for compiling shader strings into SPIR-V (static libraries)
|
|
|
|
|
|
|
|
%description -n libshaderc-static
|
|
|
|
A library for compiling shader strings into SPIR-V.
|
|
|
|
|
|
|
|
Static libraries for libshaderc.
|
|
|
|
|
|
|
|
%prep
|
2024-01-18 12:00:07 +00:00
|
|
|
%autosetup -p1
|
2020-10-15 16:33:08 +00:00
|
|
|
|
|
|
|
rm -rf third_party
|
|
|
|
|
|
|
|
# Stolen from Gentoo
|
|
|
|
# Create build-version.inc since we want to use our packaged
|
|
|
|
# SPIRV-Tools and glslang
|
2023-02-16 01:44:19 +00:00
|
|
|
sed -i -e '/build-version/d' glslc/CMakeLists.txt
|
2020-10-15 16:33:08 +00:00
|
|
|
echo \"shaderc $(grep -m1 -o '^v[[:digit:]]\{4\}\.[[:digit:]]\(-dev\)\? [[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}$' CHANGES)\" \
|
|
|
|
> glslc/src/build-version.inc
|
|
|
|
echo \"spirv-tools $(grep -m1 -o '^v[[:digit:]]\{4\}\.[[:digit:]]\(-dev\)\? [[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}$' /usr/share/doc/spirv-tools/CHANGES)\" \
|
|
|
|
>> glslc/src/build-version.inc
|
|
|
|
echo \"glslang %{glslang_version}\" >> glslc/src/build-version.inc
|
|
|
|
|
|
|
|
# Point to correct include
|
|
|
|
sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/src/compiler.cc
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake3_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest3
|
|
|
|
|
|
|
|
%files -n glslc
|
|
|
|
%doc glslc/README.asciidoc
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/glslc
|
|
|
|
|
|
|
|
%files -n libshaderc
|
|
|
|
%doc AUTHORS CHANGES CONTRIBUTORS README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libshaderc_shared.so.1*
|
|
|
|
|
|
|
|
%files -n libshaderc-devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/libshaderc_shared.so
|
|
|
|
%{_libdir}/pkgconfig/shaderc.pc
|
|
|
|
|
|
|
|
%files -n libshaderc-static
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/libshaderc.a
|
|
|
|
%{_libdir}/libshaderc_combined.a
|
|
|
|
%{_libdir}/pkgconfig/shaderc_static.pc
|
|
|
|
%{_libdir}/pkgconfig/shaderc_combined.pc
|
|
|
|
|
|
|
|
%changelog
|
2024-01-18 12:00:07 +00:00
|
|
|
* Wed Jan 17 2024 José Expósito <jexposit@redhat.com> - 2023.7-1
|
|
|
|
- Update to 1.3.268.0 SDK
|
|
|
|
|
2023-07-07 03:32:55 +00:00
|
|
|
* Fri Jul 07 2023 Dave Airlie <airlied@redhat.com> - 2023.4-1
|
|
|
|
- Update for 1.3.250.1 sdk release
|
|
|
|
|
2023-02-16 01:44:19 +00:00
|
|
|
* Thu Feb 16 2023 Dave Airlie <airlied@redhat.com> - 2023.1-2
|
|
|
|
- Update for 1.3.239.0 sdk release
|
|
|
|
|
2022-08-26 04:52:47 +00:00
|
|
|
* Fri Aug 26 2022 Dave Airlie <airlied@redhat.com> - 2022.2-2
|
|
|
|
- Update for 1.3.224.0 sdk release
|
|
|
|
|
2022-06-24 05:14:07 +00:00
|
|
|
* Fri Jun 24 2022 Dave Airlie <airlied@redhat.com> - 2022.2-1
|
|
|
|
- Update for 1.3.216.0 sdk release
|
|
|
|
|
2022-02-28 03:02:33 +00:00
|
|
|
* Mon Feb 28 2022 Dave Airlie <airlied@redhat.com> - 2022.1-1
|
|
|
|
- Update for 1.3.204.0 sdk release
|
|
|
|
|
2021-08-10 00:51:21 +00:00
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2020.5-4
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-07-29 20:55:25 +00:00
|
|
|
* Fri Jul 30 2021 Dave Airlie <airlied@redhat.com> - 2020.5-3
|
|
|
|
- Update for 1.2.182.0 sdk release
|
|
|
|
|
2021-04-16 05:37:25 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2020.5-2
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-03-11 20:04:38 +00:00
|
|
|
* Fri Mar 5 13:43:44 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 2020.5-1
|
|
|
|
- Update to 2020.5
|
|
|
|
- Close: rhbz#1931006
|
|
|
|
|
2021-02-03 05:03:53 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-26 14:53:08 +00:00
|
|
|
* Sat Dec 26 15:21:39 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2020.4-1
|
|
|
|
- Update to 2020.4
|
|
|
|
- Close: rhbz#1906260
|
|
|
|
|
2020-12-05 13:34:41 +00:00
|
|
|
* Sat Dec 05 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2020.3-1
|
|
|
|
- Update to 2020.3
|
|
|
|
- Close: rhbz#1875183
|
|
|
|
|
2020-10-15 16:33:08 +00:00
|
|
|
* Sat Aug 08 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2020.2-1
|
|
|
|
- Update to 2020.2
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1-3
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jun 17 20:15:27 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2020.1-1
|
|
|
|
- Update to 2020.1
|
|
|
|
|
|
|
|
* Sun Feb 02 20:53:01 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 2019.1-1
|
|
|
|
- Update to 2019.1
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jun 10 00:18:18 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.0-1
|
|
|
|
- Release 2019.0
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Oct 03 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2018.0-1
|
|
|
|
- Release 2018.0
|
|
|
|
|
|
|
|
* Mon Sep 24 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2017.2-1
|
|
|
|
- Initial build
|
|
|
|
|