2020-10-15 16:55:44 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
2024-05-28 15:15:58 +00:00
|
|
|
%global sdkver 1.3.283.0
|
2020-10-15 16:55:44 +00:00
|
|
|
|
|
|
|
Name: spirv-tools
|
2024-05-28 15:15:58 +00:00
|
|
|
Version: 2024.2
|
2024-01-17 16:31:44 +00:00
|
|
|
Release: 1%{?gitrel}%{?dist}
|
2020-10-15 16:55:44 +00:00
|
|
|
Summary: API and commands for processing SPIR-V modules
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: https://github.com/KhronosGroup/SPIRV-Tools
|
2024-01-17 16:31:44 +00:00
|
|
|
Source0: %url/archive/vulkan-sdk-%{sdkver}.tar.gz#/SPIRV-Tools-sdk-%{sdkver}.tar.gz
|
2020-10-15 16:55:44 +00:00
|
|
|
|
2024-05-28 15:15:58 +00:00
|
|
|
Patch0: fix-gcc12-build.patch
|
|
|
|
|
2020-10-15 16:55:44 +00:00
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
BuildRequires: python36-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: python3-rpm-macros
|
|
|
|
BuildRequires: spirv-headers-devel
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The package includes an assembler, binary module parser,
|
|
|
|
disassembler, and validator for SPIR-V..
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Library files for %{name}
|
|
|
|
Provides: %{name}-libs%{?_isa} = %{version}
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
library files for %{name}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for %{name}
|
|
|
|
|
|
|
|
%prep
|
2024-01-17 16:31:44 +00:00
|
|
|
%autosetup -p1 -n SPIRV-Tools-vulkan-sdk-%{sdkver}
|
2020-10-15 16:55:44 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake3 -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
|
|
|
-DSPIRV-Headers_SOURCE_DIR=%{_prefix} \
|
|
|
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
2020-11-03 03:56:07 +00:00
|
|
|
-DSPIRV_TOOLS_BUILD_STATIC=OFF \
|
2020-10-15 16:55:44 +00:00
|
|
|
-GNinja
|
|
|
|
%cmake3_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake3_install
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CHANGES
|
|
|
|
%{_bindir}/spirv-as
|
|
|
|
%{_bindir}/spirv-cfg
|
|
|
|
%{_bindir}/spirv-dis
|
|
|
|
%{_bindir}/spirv-lesspipe.sh
|
|
|
|
%{_bindir}/spirv-link
|
2022-02-25 05:57:46 +00:00
|
|
|
%{_bindir}/spirv-lint
|
2023-07-06 07:50:11 +00:00
|
|
|
%{_bindir}/spirv-objdump
|
2020-10-15 16:55:44 +00:00
|
|
|
%{_bindir}/spirv-opt
|
|
|
|
%{_bindir}/spirv-reduce
|
|
|
|
%{_bindir}/spirv-val
|
|
|
|
|
|
|
|
%files libs
|
2022-06-22 00:14:08 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-diff.so
|
2020-10-15 16:55:44 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-link.so
|
2022-02-25 05:57:46 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-lint.so
|
2020-10-15 16:55:44 +00:00
|
|
|
%{_libdir}/libSPIRV-Tools-opt.so
|
|
|
|
%{_libdir}/libSPIRV-Tools.so
|
|
|
|
%{_libdir}/libSPIRV-Tools-reduce.so
|
|
|
|
%{_libdir}/libSPIRV-Tools-shared.so
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/spirv-tools/
|
|
|
|
%{_libdir}/cmake/*
|
|
|
|
%{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
|
|
|
|
%{_libdir}/pkgconfig/SPIRV-Tools.pc
|
|
|
|
|
|
|
|
%changelog
|
2024-05-28 15:15:58 +00:00
|
|
|
* Tue May 28 2024 José Expósito <jexposit@redhat.com> - 2024.2-1
|
|
|
|
- Update to 1.3.283.0 SDK
|
|
|
|
|
2024-01-17 16:31:44 +00:00
|
|
|
* Wed Jan 17 2024 José Expósito <jexposit@redhat.com> - 2023.3-1
|
|
|
|
- Update to 1.3.268.0 SDK
|
|
|
|
|
2023-07-06 07:50:11 +00:00
|
|
|
* Thu Jul 06 2023 Dave Airlie <airlied@redhat.com> - 2023.1-3
|
|
|
|
- Update to 1.3.250.1 SDK release
|
|
|
|
|
2023-02-15 07:32:00 +00:00
|
|
|
* Wed Feb 15 2023 Dave Airlie <airlied@redhat.com> - 2023.1-2
|
|
|
|
- Restore spirv-tools ABI
|
|
|
|
|
2023-02-15 04:53:26 +00:00
|
|
|
* Wed Feb 15 2023 Dave Airlie <airlied@redhat.com> - 2023.1-1
|
|
|
|
- Update to 1.3.239.0 SDK release
|
|
|
|
|
2022-08-26 00:11:41 +00:00
|
|
|
* Fri Aug 26 2022 Dave Airlie <airlied@redhat.com> - 2022.2-3
|
|
|
|
- Update to 1.3.224.0 SDK release.
|
|
|
|
|
2022-06-22 00:14:08 +00:00
|
|
|
* Wed Jun 22 2022 Dave Airlie <airlied@redhat.com> - 2022.2-2
|
|
|
|
- Update to 1.3.216.0 SDK release.
|
|
|
|
|
2022-02-25 05:57:46 +00:00
|
|
|
* Sat Feb 26 2022 Dave Airlie <airlied@redhat.com> - 2022.1-2.20220202.git45dd184
|
|
|
|
- workaround build problem bump
|
|
|
|
|
2022-02-25 05:57:46 +00:00
|
|
|
* Fri Feb 25 2022 Dave Airlie <airlied@redhat.com> - 2022.1-1.20220202.git45dd184
|
|
|
|
- Update to 1.3.204.0 SDK Version
|
|
|
|
|
2021-08-10 00:57:19 +00:00
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2021.2-2.20210619.git5dd2f76
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-07-29 19:37:37 +00:00
|
|
|
* Wed Jul 30 2021 Dave Airlie <airlied@redhat.com> - 2021.2-1
|
|
|
|
- Update to 1.2.182.0 SDK Version
|
|
|
|
|
2021-04-16 05:43:40 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2020.5-6.20201208.gitb27b1af
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-01-28 06:36:41 +00:00
|
|
|
* Thu Jan 28 2021 Dave Airlie <airlied@redhat.com> - 2020.5-5
|
|
|
|
- Update to 1.2.162.0 SDK version
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020.5-4.20201031.gitf7da527
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-05 05:19:23 +00:00
|
|
|
* Fri Dec 04 2020 Jeff Law <law@redhat.com> - 2020.5-3.20201031.gitf7da5277
|
|
|
|
- Fix undesirable strncpy call to instead use memcpy to avoid
|
|
|
|
gcc-11 diagnostic
|
|
|
|
|
2020-11-03 03:56:07 +00:00
|
|
|
* Mon Nov 02 2020 Dave Airlie <airlied@redhat.com> - 2020.5-2.20201031.gitf7da5277
|
|
|
|
- update to latest spirv-tools
|
|
|
|
|
2020-10-15 16:55:44 +00:00
|
|
|
* Tue Aug 04 2020 Dave Airlie <airlied@redhat.com> - 2029.5-1.20200803.git92a71657
|
|
|
|
- update to latest spirv-tools
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.5-3.20200421.git67f4838
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Apr 22 2020 Dave Airlie <airlied@redhat.cvom> - 2019.5-2
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Dave Airlie <airlied@redhat.com> - 2019.5-1
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
|
|
|
* Tue Nov 12 2019 Dave Airlie <airlied@redhat.com> - 2019.4-1
|
|
|
|
- git snapshot for newer glslang/validation layers
|
|
|
|
|
|
|
|
* Thu Aug 01 2019 Dave Airlie <airlied@redhat.com> - 2019.4-0.1
|
|
|
|
- git snapshot to let newer vulkan validation layers build
|
|
|
|
- stats removed upstream
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jun 10 13:46:33 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.3-1
|
|
|
|
- Release 2019.3
|
|
|
|
|
|
|
|
* Thu Mar 07 2019 Dave Airlie <airlied@redhat.com> - 2019.1-2
|
|
|
|
- Add patch to let vulkan-validation-layers build
|
|
|
|
|
|
|
|
* Mon Feb 04 2019 Dave Airlie <airlied@redhat.com> - 2019.1-1
|
|
|
|
- Update to 2019.1 release
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jul 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.4-1
|
|
|
|
- Update to 2018.4 release
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.3.0-0.3.20180407.git26a698c
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Jun 25 2018 Dave Airlie <airlied@redhat.com> - 2018.3.0-0.2.20180407.git26a698c
|
|
|
|
- Move to python3 and drop the simplejson buildreq.
|
|
|
|
|
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.3.0-0.1.20180407.git26a698c
|
|
|
|
- Bump version to 2018.3.0 to match .pc files
|
|
|
|
|
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.4.20180407.git26a698c
|
|
|
|
- Bump provides to 2018.3.0
|
|
|
|
|
|
|
|
* Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.3.20180407.git26a698c
|
|
|
|
- Update for vulkan 1.1.73.0
|
|
|
|
|
|
|
|
* Wed Feb 14 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.2.20180205.git9e19fc0
|
|
|
|
- Add isa to the provides
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.1.20180205.git9e19fc0
|
|
|
|
- Fix version
|
|
|
|
- Fix pkgconfig file
|
|
|
|
- Add version provides to -libs package
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.5.20180205.git9e19fc0
|
|
|
|
- Update for vulkan 1.0.68.0
|
|
|
|
- Try building as shared object
|
|
|
|
- Split libs into -libs subpackage
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.4.20171023.git5834719
|
|
|
|
- Use ninja to build
|
|
|
|
|
|
|
|
* Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719
|
|
|
|
- Add python prefix to fix the stupid Bodhi tests
|
|
|
|
|
|
|
|
* Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.2.20171023.git5834719
|
|
|
|
- Split binaries into main package
|
|
|
|
|
|
|
|
* Thu Jul 13 2017 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.1.20171023.git5834719
|
|
|
|
- First build
|
|
|
|
|