spirv-llvm-translator-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. ## START: Set by rpmautospec
  2. ## (rpmautospec version 0.7.3)
  3. ## RPMAUTOSPEC: autorelease, autochangelog
  4. %define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
  5. release_number = 1;
  6. base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
  7. print(release_number + base_release_number - 1);
  8. }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
  9. ## END: Set by rpmautospec
  10. %global commit 90a976491d3847657396456e0e94d7dc48d35996
  11. %global shortcommit %(c=%{commit}; echo ${c:0:7})
  12. Name: spirv-llvm-translator
  13. Version: 19.1.1
  14. Release: 2%{?_dist_release}
  15. Summary: LLVM to SPIRV Translator
  16. Group: system
  17. Distribution: Vine Linux
  18. Vendor: Project Vine
  19. License: NCSA
  20. URL: https://github.com/KhronosGroup/SPIRV-LLVM-Translator
  21. Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
  22. BuildRequires: gcc
  23. BuildRequires: gcc-c++
  24. BuildRequires: cmake
  25. BuildRequires: ninja
  26. BuildRequires: llvm-devel
  27. BuildRequires: llvm-static
  28. BuildRequires: spirv-headers-devel
  29. BuildRequires: spirv-tools-devel
  30. BuildRequires: pkgconfig(zlib)
  31. %description
  32. Khronos LLVM to SPIRV Translator. This is a library
  33. to be used by Mesa for OpenCL support. It translate
  34. LLVM IR to Khronos SPIR-V. It also includes a
  35. standalone tool used for building libclc.
  36. %package devel
  37. Summary: Development files for LLVM to SPIRV Translator
  38. Group: programming
  39. Requires: %{name}%{?_isa} = %{version}-%{release}
  40. %description devel
  41. This package contains libraries and header files for
  42. developing against %{name}
  43. %package tools
  44. Summary: Standalone llvm to spirv translator tool
  45. Group: programming
  46. Requires: %{name}%{?_isa} = %{version}-%{release}
  47. %description tools
  48. This package contains the standalone llvm to spirv tool.
  49. %debug_package
  50. %prep
  51. %autosetup -n SPIRV-LLVM-Translator-%{commit} -p1
  52. %build
  53. %cmake -GNinja \
  54. -DLLVM_BUILD_TOOLS=ON \
  55. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  56. -DCMAKE_INSTALL_RPATH:BOOL=";" \
  57. -DLLVM_DIR="%{_libdir}/cmake/llvm/" \
  58. %if 0%{?__isa_bits} == 64
  59. -DLLVM_LIBDIR_SUFFIX=64 \
  60. %else
  61. -DLLVM_LIBDIR_SUFFIX= \
  62. %endif
  63. -DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \
  64. -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="/usr/include/spirv/"
  65. %cmake_build
  66. %install
  67. %cmake_install
  68. %files
  69. %doc README.md
  70. %{_libdir}/libLLVMSPIRVLib.so.*
  71. %files tools
  72. %{_bindir}/llvm-spirv
  73. %files devel
  74. %dir %{_includedir}/LLVMSPIRVLib/
  75. %{_includedir}/LLVMSPIRVLib/
  76. %{_libdir}/libLLVMSPIRVLib.so
  77. %{_libdir}/pkgconfig/LLVMSPIRVLib.pc
  78. %changelog
  79. * Fri Nov 15 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 19.1.1-2
  80. - initial build for Vine Linux.
  81. ## START: Generated by rpmautospec
  82. * Tue Nov 05 2024 František Zatloukal <fzatlouk@redhat.com> - 19.1.1-1
  83. - Update to LLVM 19.1.1 (Fixes RHBZ#2302472)
  84. * Fri Sep 20 2024 František Zatloukal <fzatlouk@redhat.com> - 19.0.0-2
  85. - Update to LLVM 19.0.0 Final
  86. * Fri Sep 06 2024 František Zatloukal <fzatlouk@redhat.com> - 19.0.0-1
  87. - Update to LLVM 19.0.0
  88. * Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.2-2
  89. - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
  90. * Wed Jul 17 2024 František Zatloukal <fzatlouk@redhat.com> - 18.1.2-1
  91. - Resync to a later commit (RHBZ#2290701)
  92. * Sat Apr 20 2024 František Zatloukal <fzatlouk@redhat.com> - 18.1.0-1
  93. - Refresh of Update LLVM 18.1.0 (Fixes RHBZ#2268376)
  94. * Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.0-2
  95. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  96. * Mon Aug 07 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0-1
  97. - Update to LLVM 17.0.0
  98. * Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.0-4
  99. - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
  100. * Mon Jul 03 2023 Dave Airlie <airlied@redhat.com> - 16.0.0-3
  101. - Bump to newer release branch
  102. * Wed Apr 19 2023 Frantisek Zatloukal <fzatlouk@redhat.com> - 16.0.0-2
  103. - Rebase downstream patch Fix-standalone-builds-with-LLVM_LINK_LLVM_DYLIB-ON to the version that got merged upstream
  104. - Rebase to a later commit while at it
  105. * Mon Feb 20 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0-1
  106. - Update to LLVM 16.0.0
  107. * Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.0.0-3
  108. - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
  109. * Wed Dec 14 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 15.0.0-2
  110. - Bump to a later llvm 15 branch commit including backported fixes
  111. - Add spirv-tools dep
  112. * Fri Sep 16 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 15.0.0-1
  113. - update to llvm 15
  114. * Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.0.0-2
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
  116. * Fri Apr 22 2022 Dave Airlie <airlied@redhat.com> - 14.0.0-1
  117. - Update to llvm 14
  118. * Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.0-3
  119. - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
  120. * Thu Nov 11 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-2
  121. - Rebuild for LLVM 13.0.0-final
  122. * Tue Oct 26 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 13.0.0-1
  123. - update to llvm 13
  124. * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.0-2
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
  126. * Tue May 04 2021 Dave Airlie <airlied@redhat.com> - 12.0.0-1
  127. - update for llvm 12
  128. * Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 11.1.0-2
  129. - Rebuilt for removed libstdc++ symbol (#1937698)
  130. * Mon Feb 15 2021 Dave Airlie <airlied@redhat.com> - 11.1.0-1
  131. - Update to llvm 11.1.0
  132. * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 11.0.0-0.2
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
  134. * Wed Aug 19 2020 Dave Airlie <airlied@redhat.com> - 11.0.0-0.1
  135. - Initial package of git snapshot for 11.0.0
  136. ## END: Generated by rpmautospec