From 03ac5bf6916e819c1f0bc810da3bac82df151265 Mon Sep 17 00:00:00 2001 From: tigro Date: Tue, 16 Jan 2024 14:29:35 +0300 Subject: [PATCH] import mingw-spirv-tools-2022.2-7.el9 --- .gitignore | 1 + .mingw-spirv-tools.metadata | 1 + SOURCES/spirv-tool_cmake-install.patch | 12 ++ SPECS/mingw-spirv-tools.spec | 254 +++++++++++++++++++++++++ 4 files changed, 268 insertions(+) create mode 100644 .gitignore create mode 100644 .mingw-spirv-tools.metadata create mode 100644 SOURCES/spirv-tool_cmake-install.patch create mode 100644 SPECS/mingw-spirv-tools.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c10140 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/SPIRV-Tools-sdk-1.3.231.1.tar.gz diff --git a/.mingw-spirv-tools.metadata b/.mingw-spirv-tools.metadata new file mode 100644 index 0000000..056197a --- /dev/null +++ b/.mingw-spirv-tools.metadata @@ -0,0 +1 @@ +0cc31beb47a61bcbd18c8cd249cc6cabb41dacde SOURCES/SPIRV-Tools-sdk-1.3.231.1.tar.gz diff --git a/SOURCES/spirv-tool_cmake-install.patch b/SOURCES/spirv-tool_cmake-install.patch new file mode 100644 index 0000000..cc75833 --- /dev/null +++ b/SOURCES/spirv-tool_cmake-install.patch @@ -0,0 +1,12 @@ +diff -rupN --no-dereference SPIRV-Tools-sdk-1.3.231.1/CMakeLists.txt SPIRV-Tools-sdk-1.3.231.1-new/CMakeLists.txt +--- SPIRV-Tools-sdk-1.3.231.1/CMakeLists.txt 2022-10-12 18:15:28.000000000 +0200 ++++ SPIRV-Tools-sdk-1.3.231.1-new/CMakeLists.txt 2022-11-12 23:22:28.528242413 +0100 +@@ -271,7 +271,7 @@ endif() + if(ENABLE_SPIRV_TOOLS_INSTALL) + if(WIN32) + macro(spvtools_config_package_dir TARGET PATH) +- set(${PATH} ${TARGET}/cmake) ++ set(${PATH} ${CMAKE_INSTALL_LIBDIR}/cmake/${TARGET}) + endmacro() + else() + macro(spvtools_config_package_dir TARGET PATH) diff --git a/SPECS/mingw-spirv-tools.spec b/SPECS/mingw-spirv-tools.spec new file mode 100644 index 0000000..3761c79 --- /dev/null +++ b/SPECS/mingw-spirv-tools.spec @@ -0,0 +1,254 @@ +%{?mingw_package_header} + +%global pkgname spirv-tools +%global srcname SPIRV-Tools + +%global sdkver 1.3.231.1 + +Name: mingw-%{pkgname} +Version: 2022.2 +Release: 7%{?dist} +Summary: MinGW Windows %{pkgname} + +License: Apache-2.0 +BuildArch: noarch +URL: https://github.com/KhronosGroup/%{srcname} +Source0: %url/archive/sdk-%{sdkver}.tar.gz#/%{srcname}-sdk-%{sdkver}.tar.gz + +# Fix installation dir for cmake modules +Patch0: spirv-tool_cmake-install.patch + +BuildRequires: make +BuildRequires: cmake + +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-spirv-headers +BuildRequires: mingw32-winpthreads +BuildRequires: mingw32-winpthreads-static + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-gcc-c++ +BuildRequires: mingw64-spirv-headers +BuildRequires: mingw64-winpthreads +BuildRequires: mingw64-winpthreads-static + + +%description +MinGW Windows %{pkgname}. + + +%package -n mingw32-%{pkgname} +Summary: MinGW Windows %{pkgname} + +%description -n mingw32-%{pkgname} +MinGW Windows %{pkgname}. + + +%package -n mingw64-%{pkgname} +Summary: MinGW Windows %{pkgname} + +%description -n mingw64-%{pkgname} +MinGW Windows %{pkgname}. + + +%{?mingw_debug_package} + + +%prep +%autosetup -p1 -n %{srcname}-sdk-%{sdkver} + + +%build +MINGW32_CMAKE_ARGS="-DSPIRV-Headers_SOURCE_DIR=%{mingw32_prefix}" \ +MINGW64_CMAKE_ARGS="-DSPIRV-Headers_SOURCE_DIR=%{mingw64_prefix}" \ +%mingw_cmake -DSPIRV_TOOLS_BUILD_STATIC=OFF -DSPIRV_WERROR=OFF +%mingw_make_build + + +%install +%mingw_make_install + + +%files -n mingw32-%{pkgname} +%{mingw32_bindir}/libSPIRV-Tools-diff.dll +%{mingw32_bindir}/libSPIRV-Tools-link.dll +%{mingw32_bindir}/libSPIRV-Tools-lint.dll +%{mingw32_bindir}/libSPIRV-Tools-opt.dll +%{mingw32_bindir}/libSPIRV-Tools-reduce.dll +%{mingw32_bindir}/libSPIRV-Tools-shared.dll +%{mingw32_bindir}/libSPIRV-Tools.dll +%{mingw32_bindir}/spirv-as.exe +%{mingw32_bindir}/spirv-cfg.exe +%{mingw32_bindir}/spirv-dis.exe +%{mingw32_bindir}/spirv-lesspipe.sh +%{mingw32_bindir}/spirv-link.exe +%{mingw32_bindir}/spirv-lint.exe +%{mingw32_bindir}/spirv-opt.exe +%{mingw32_bindir}/spirv-reduce.exe +%{mingw32_bindir}/spirv-val.exe +%{mingw32_includedir}/spirv-tools/ +%{mingw32_libdir}/libSPIRV-Tools-diff.dll.a +%{mingw32_libdir}/libSPIRV-Tools-link.dll.a +%{mingw32_libdir}/libSPIRV-Tools-lint.dll.a +%{mingw32_libdir}/libSPIRV-Tools-opt.dll.a +%{mingw32_libdir}/libSPIRV-Tools-reduce.dll.a +%{mingw32_libdir}/libSPIRV-Tools-shared.dll.a +%{mingw32_libdir}/libSPIRV-Tools.dll.a +%{mingw32_libdir}/pkgconfig/SPIRV-Tools-shared.pc +%{mingw32_libdir}/pkgconfig/SPIRV-Tools.pc +%{mingw32_libdir}/cmake/* + +%files -n mingw64-%{pkgname} +%{mingw64_bindir}/libSPIRV-Tools-diff.dll +%{mingw64_bindir}/libSPIRV-Tools-link.dll +%{mingw64_bindir}/libSPIRV-Tools-lint.dll +%{mingw64_bindir}/libSPIRV-Tools-opt.dll +%{mingw64_bindir}/libSPIRV-Tools-reduce.dll +%{mingw64_bindir}/libSPIRV-Tools-shared.dll +%{mingw64_bindir}/libSPIRV-Tools.dll +%{mingw64_bindir}/spirv-as.exe +%{mingw64_bindir}/spirv-cfg.exe +%{mingw64_bindir}/spirv-dis.exe +%{mingw64_bindir}/spirv-lesspipe.sh +%{mingw64_bindir}/spirv-link.exe +%{mingw64_bindir}/spirv-lint.exe +%{mingw64_bindir}/spirv-opt.exe +%{mingw64_bindir}/spirv-reduce.exe +%{mingw64_bindir}/spirv-val.exe +%{mingw64_includedir}/spirv-tools/ +%{mingw64_libdir}/libSPIRV-Tools-diff.dll.a +%{mingw64_libdir}/libSPIRV-Tools-link.dll.a +%{mingw64_libdir}/libSPIRV-Tools-lint.dll.a +%{mingw64_libdir}/libSPIRV-Tools-opt.dll.a +%{mingw64_libdir}/libSPIRV-Tools-reduce.dll.a +%{mingw64_libdir}/libSPIRV-Tools-shared.dll.a +%{mingw64_libdir}/libSPIRV-Tools.dll.a +%{mingw64_libdir}/pkgconfig/SPIRV-Tools-shared.pc +%{mingw64_libdir}/pkgconfig/SPIRV-Tools.pc +%{mingw64_libdir}/cmake/* + + +%changelog +* Tue Jan 16 2024 Arkady L. Shane - 2022.2-7 +- Rebuilt for MSVSphere 9.3 + +* Thu Jan 19 2023 Fedora Release Engineering - 2022.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Nov 12 2022 Sandro Mani - 2022.2-6 +- Update for 1.3.231.1 sdk + +* Wed Oct 19 2022 Sandro Mani - 2022.2-5 +- Rebuild (python-3.11) + +* Thu Sep 15 2022 Sandro Mani - 2022.2-4 +- Rebase to vulkan SDK 1.3.224.1 + +* Thu Jul 21 2022 Fedora Release Engineering - 2022.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 28 2022 Sandro Mani - 2022.2-2 +- Update to spirv headers for 1.3.216 sdk + +* Wed Apr 27 2022 Sandro Mani - 2022.2-1.git7826e19 +- Update to git 7826e19 + +* Fri Mar 25 2022 Sandro Mani - 2022.1-2.git45dd184 +- Rebuild with mingw-gcc-12 + +* Fri Feb 18 2022 Sandro Mani - 2022.1-1.git45dd184 +- Update to git 45dd184 + +* Thu Jan 20 2022 Fedora Release Engineering - 2021.4-2.git21e3f68 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 23 2021 Sandro Mani - 2201.4-1.git21e3f68 +- Update to git 21e3f68 + +* Tue Sep 07 2021 Sandro Mani - 2021.3-1.git1fbed83 +- Update to git 1fbed83 + +* Thu Jul 22 2021 Fedora Release Engineering - 2021.2-2.git5dd2f76 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jul 08 2021 Sandro Mani - 2021.2-1.git5dd2f76 +- Update to git 5dd2f76 + +* Fri Jun 11 2021 Sandro Mani - 2021.1-2.gitdc72924 +- Rebuild (python-3.10) + +* Wed May 19 2021 Sandro Mani - 2021.1-1.gitdc72924 +- Update to git dc72924 + +* Thu Feb 04 2021 Sandro Mani - 2020.5-4.gitb27b1af +- Update to git b27b1af + +* Tue Jan 26 2021 Fedora Release Engineering - 2020.5-3.gitf7da527 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Nov 03 2020 Sandro Mani - 2020.5-2.gitf7da527 +- Update to git f7da527 + +* Mon Aug 10 2020 Sandro Mani - 2020.5-1.git92a7165 +- Update to git 92a7165 + +* Tue Jul 28 2020 Fedora Release Engineering - 2019.5-5.git67f4838 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 30 2020 Sandro Mani - 2019.5-4.git67f4838 +- Rebuild (python-3.9) + +* Wed Apr 22 2020 Sandro Mani - 2019.5-3.git67f4838 +- Update to git 67f4838 + +* Sun Feb 02 2020 Sandro Mani - 2019.5-2.git97f1d48 +- Update to git 97f1d48 + +* Sun Feb 02 2020 Sandro Mani - 2019.5-1 +- Update to 2019.5 + +* Wed Jan 29 2020 Fedora Release Engineering - 2019.4-4.git3e4abc9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Nov 13 2019 Sandro Mani - 2019.4-3.git3e4abc9 +- Update to git 3e4abc9 + +* Fri Sep 27 2019 Sandro Mani - 2019.4-2 +- Rebuild (python 3.8) + +* Sun Aug 11 2019 Sandro Mani - 2019.4-1 +- Update to 2019.4 + +* Mon Aug 05 2019 Sandro Mani - 2019.3-4.git3726b50 +- Drop unnecessary BR: python2 + +* Wed Jul 31 2019 Sandro Mani - 2019.3-3.git3726b50 +- Update to git 3726b50 + +* Thu Jul 25 2019 Fedora Release Engineering - 2019.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 2019 Sandro Mani - 2019.3-1 +- Update to 2019.3 + +* Wed May 01 2019 Sandro Mani - 2019.2-2 +- Switch to python3 + +* Tue Apr 02 2019 Sandro Mani - 2019.2-1 +- Update to 2019.2 + +* Mon Feb 11 2019 Sandro Mani - 2019.1-1 +- Update to 2019.1 + +* Fri Feb 01 2019 Fedora Release Engineering - 2018.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jul 30 2018 Sandro Mani - 2018.4-1 +- Update to 2018.4 + +* Fri Jul 13 2018 Fedora Release Engineering - 2018.3.0-0.2.git26a698c +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 08 2018 Sandro Mani - 2018.3.0-0.1.git26a698c +- Initial package