libclc-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. # this stop us generating an empty debuginfo
  2. %global debug_package %{nil}
  3. %global shortname clc
  4. %global libclc_version 19.1.3
  5. #global rc_ver 4
  6. %global libclc_srcdir libclc-%{libclc_version}%{?rc_ver:-rc%{rc_ver}}.src
  7. Name: libclc
  8. Version: %{libclc_version}%{?rc_ver:~rc%{rc_ver}}
  9. Release: 1%{?_dist_release}
  10. Summary: An open source implementation of the OpenCL 1.1 library requirements
  11. Group: system
  12. Distribution: Vine Linux
  13. Vendor: Project Vine
  14. License: Apache-2.0 WITH LLVM-exception OR BSD OR MIT
  15. URL: https://libclc.llvm.org
  16. Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libclc_version}%{?rc_ver:-rc%{rc_ver}}/%{libclc_srcdir}.tar.xz
  17. Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libclc_version}%{?rc_ver:-rc%{rc_ver}}/%{libclc_srcdir}.tar.xz.sig
  18. Source2: release-keys.asc
  19. BuildRequires: clang-devel >= %{version}
  20. BuildRequires: libedit-devel
  21. BuildRequires: llvm-devel >= %{version}
  22. BuildRequires: llvm-static >= %{version}
  23. #BuildRequires: python-unversioned-command
  24. BuildRequires: pkgconfig(zlib)
  25. BuildRequires: cmake
  26. BuildRequires: spirv-llvm-translator-tools
  27. %description
  28. libclc is an open source, BSD licensed implementation of the library
  29. requirements of the OpenCL C programming language, as specified by the
  30. OpenCL 1.1 Specification. The following sections of the specification
  31. impose library requirements:
  32. * 6.1: Supported Data Types
  33. * 6.2.3: Explicit Conversions
  34. * 6.2.4.2: Reinterpreting Types Using as_type() and as_typen()
  35. * 6.9: Preprocessor Directives and Macros
  36. * 6.11: Built-in Functionsj
  37. * 9.3: Double Precision Floating-Point
  38. * 9.4: 64-bit Atomics
  39. * 9.5: Writing to 3D image memory objects
  40. * 9.6: Half Precision Floating-Point
  41. libclc is intended to be used with the Clang compiler's OpenCL frontend.
  42. libclc is designed to be portable and extensible. To this end, it provides
  43. generic implementations of most library requirements, allowing the target
  44. to override the generic implementation at the granularity of individual
  45. functions.
  46. libclc currently only supports the PTX target, but support for more
  47. targets is welcome.
  48. %package devel
  49. Summary: Development files for %{name}
  50. Group: programming
  51. Requires: %{name}%{?_isa} = %{version}-%{release}
  52. %description devel
  53. The %{name}-devel package contains libraries and header files for
  54. developing applications that use %{name}.
  55. %debug_package
  56. %prep
  57. %autosetup -n %{libclc_srcdir} -p2
  58. %build
  59. export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
  60. %set_build_flags
  61. %cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_lib}
  62. %cmake_build
  63. %install
  64. %cmake_install
  65. %check
  66. # external-calls-clspv--.bc test fails
  67. %cmake_build --target test || true
  68. %files
  69. %license LICENSE.TXT
  70. %doc README.TXT CREDITS.TXT
  71. %dir %{_libdir}/%{shortname}
  72. %{_libdir}/%{shortname}/*.bc
  73. %{_libdir}/%{shortname}/spirv-mesa3d-.spv
  74. %{_libdir}/%{shortname}/spirv64-mesa3d-.spv
  75. %files devel
  76. %{_libdir}/pkgconfig/%{name}.pc
  77. %{_includedir}/%{shortname}
  78. %changelog
  79. * Fri Nov 15 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 19.1.3-1
  80. - initial build for Vine Linux.
  81. - new upstream release.
  82. * Thu Sep 19 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0-1
  83. - Update to 19.1.0
  84. * Fri Sep 13 2024 Timm Bäder <tbaeder@redhat.com> - 19.1.0~rc4-1
  85. - Update to 19.1.0-rc4
  86. * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.8-2
  87. - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
  88. * Fri Jul 12 2024 Jesus Checa Hidalgo <jchecahi@redhat.com> - 18.1.8-1
  89. - 18.1.8 Release
  90. * Thu Jun 13 2024 Tom Stellard <tstellar@redhat.com> - 18.1.7-1
  91. - 18.1.7 Release
  92. * Tue May 21 2024 Tom Stellard <tstellar@redhat.com> - 18.1.6-1
  93. - 18.1.6 Release
  94. * Fri May 03 2024 Tom Stellard <tstellar@redhat.com> - 18.1.4-1
  95. - 18.1.4 Release
  96. * Wed Apr 17 2024 Tom Stellard <tstellar@redhat.com> - 18.1.3-1
  97. - 18.1.3 Release
  98. * Fri Mar 22 2024 Tom Stellard <tstellar@redhat.com> - 18.1.2-1
  99. - 18.1.2 Release
  100. * Wed Mar 13 2024 Tom Stellard <tstellar@redhat.com> - 18.1.1-1
  101. - 18.1.1 Release
  102. * Thu Feb 29 2024 Tom Stellard <tstellar@redhat.com> - 18.1.0~rc4-1
  103. - 18.1.0-rc4 Release
  104. * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-3
  105. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  106. * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 17.0.6-2
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
  108. * Wed Nov 29 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.6-1
  109. - Update to LLVM 17.0.6
  110. * Wed Nov 01 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.4-1
  111. - Update to LLVM 17.0.4
  112. * Wed Oct 18 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.3-1
  113. - Update to LLVM 17.0.3
  114. * Thu Oct 05 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.2-1
  115. - Update to LLVM 17.0.2
  116. * Mon Sep 25 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.1-1
  117. - Update to LLVM 17.0.1
  118. * Mon Sep 11 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc4-1
  119. - Update to LLVM 17.0.0 RC4
  120. * Fri Aug 25 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc3-1
  121. - Update to LLVM 17.0.0 RC3
  122. * Mon Aug 07 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 17.0.0~rc1-1
  123. - Update to LLVM 17.0.0 RC1
  124. * Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.0.6-2
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
  126. * Mon Jul 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.6-1
  127. - Update to LLVM 16.0.6
  128. * Tue Jun 06 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.5-1
  129. - Update to LLVM 16.0.5
  130. * Fri May 19 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.4-1
  131. - Update to LLVM 16.0.4
  132. * Wed May 10 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.3-1
  133. - Update to LLVM 16.0.3
  134. * Thu Apr 27 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.2-1
  135. - Update to LLVM 16.0.2
  136. * Thu Apr 13 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.1-1
  137. - Update to LLVM 16.0.1
  138. * Tue Mar 21 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0-1
  139. - Update to LLVM 16.0.0
  140. * Wed Mar 15 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0~rc4-1
  141. - Update to LLVM 16.0.0 RC4
  142. * Wed Mar 1 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.0~rc3-1
  143. - Update to LLVM 16.0.0 RC3
  144. * Thu Jan 19 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 15.0.7-3
  145. - Update license to SPDX identifiers.
  146. - Include the Apache license adopted in 2019.
  147. * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 15.0.7-2
  148. - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
  149. * Fri Jan 13 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-1
  150. - Update to LLVM 15.0.7
  151. * Tue Dec 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.6-1
  152. - Update to LLVM 15.0.6
  153. * Mon Nov 07 2022 Nikita Popov <npopov@redhat.com> - 15.0.4-1
  154. - Update to LLVM 15.0.4
  155. * Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
  156. - Update to LLVM 15.0.0
  157. * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.0.5-2
  158. - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
  159. * Mon Jun 20 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.5-1
  160. - Update to 14.0.5
  161. * Wed Mar 30 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
  162. - Update to 14.0.0
  163. * Thu Feb 03 2022 Nikita Popov <npopov@redhat.com> - 13.0.1-1
  164. - Update to LLVM 13.0.1 final
  165. * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 13.0.1~rc2-2
  166. - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
  167. * Fri Jan 14 2022 Nikita Popov <npopov@redhat.com> - 13.0.1~rc1-1
  168. - Update to LLVM 13.0.1rc2
  169. * Fri Oct 01 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
  170. - 13.0.0 Release
  171. * Wed Sep 22 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc3-1
  172. - 13.0.0-rc3 Release
  173. * Wed Sep 15 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 13.0.0~rc1-2
  174. - Fix library paths (rhbz 1960955)
  175. * Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
  176. - 13.0.0-rc1 Release
  177. * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 12.0.1-2
  178. - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
  179. * Wed Jul 14 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1-1
  180. - 12.0.1 Release
  181. * Wed Jun 30 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc3-1
  182. - 12.0.1-rc3 Release
  183. * Thu Jun 03 2021 Tom Stellard <tstellar@redhat.com> - 12.0.1~rc1-1
  184. - 12.0.1-rc1 Release
  185. * Mon May 17 2021 Dave Airlie <airlied@redhat.com> - 12.0.0-2
  186. - build the spirv
  187. * Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
  188. - 12.0.0 Release
  189. * Fri Feb 12 2021 Stephen Gallagher <sgallagh@redhat.com> - 11.0.0-1
  190. - Latest upstream release that matches llvm 11.0.0
  191. * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-19.git9f6204e
  192. - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
  193. * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-18.git9f6204e
  194. - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
  195. * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-17.git9f6204e
  196. - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
  197. * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-16.git9f6204e
  198. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  199. * Wed Apr 03 2019 Dave Airlie <airlied@redhat.com> - 0.2.0-15.git9f6204e
  200. - Update to latest upstream snapshot (prior to moving to cmake)
  201. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-14.git1ecb16d
  202. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  203. * Tue Dec 04 2018 Dave Airlie <airlied@redhat.com> - 0.2.0-13.git1ecb16d
  204. - Update to latest libclc snapshot
  205. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-12.gitc45b9df
  206. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  207. * Mon Jul 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.0-11.gitc45b9df
  208. - Update to latest git snapshot
  209. * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-10.git1cb3fbf
  210. - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
  211. * Wed Aug 02 2017 Dan Horák <dan[at]danny.cz> - 0.2.0-9.git1cb3fbf
  212. - Drop build workarounds
  213. * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-8.git1cb3fbf
  214. - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
  215. * Mon Jul 24 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.0-7.git1cb3fbf
  216. - Update to latest git snapshot
  217. * Sat Mar 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.2.0-6.git520743b
  218. - Update to latest snapshot which supports LLVM 3.9
  219. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-5.20160207gitdc330a3
  220. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  221. * Wed Aug 10 2016 Dan Horák <dan[at]danny.cz> - 0.2.0-4.20160207gitdc330a3
  222. - Build on s390x
  223. * Sun Apr 10 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.2.0-3.20160207gitdc330a3
  224. - Build on ARMv7
  225. * Tue Apr 05 2016 Than Ngo <than@redhat.com> - 0.2.0-2.20160207gitdc330a3
  226. - temporary disable stack-protector on powe64 as workaround due to the bug in llvm
  227. which causes the build failure on power64
  228. * Sun Feb 07 2016 Fabian Deutsch <fabiand@fedoraproject.org> - 0.2.0-1.20160207gitdc330a3
  229. - Update to latest upstream
  230. - Dorp llvm-static BR
  231. * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-14.20150918git4346c30
  232. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  233. * Thu Jan 21 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.0.1-13.20150918git4346c30
  234. - Spell aarch64 correctly
  235. * Thu Jan 21 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.0.1-12.20150918git4346c30
  236. - Now supported on aarch64/Power64
  237. * Fri Sep 18 2015 Dave Airlie <airlied@redhat.com> 0.0.1-11.20150918git4346c30
  238. - latest snapshot - set build req to llvm 3.7
  239. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-10.20140901gite822ae3
  240. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  241. * Thu Jan 08 2015 Adel Gadllah <adel.gadllah@gmail.com> - 0.0.1-9.20140901gite822ae3
  242. - Rebuilt with newer llvm
  243. * Tue Oct 28 2014 Peter Robinson <pbrobinson@fedoraproject.org> - 0.0.1-8.20140901gite822ae3
  244. - Update to a newer snapshot
  245. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-7.20140705git61127c5
  246. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  247. * Fri Jul 25 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.0.1-6
  248. - Rebuild now llvm bits are fixed for gcc-4.9
  249. - Minor cleanups
  250. * Sat Jul 05 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.0.1-5
  251. - Update to latest snapshot to support AMD Kaveri APUs
  252. - Move bitcode files to an arch dependent dir, as they are arch dependent
  253. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4.20140429git4341094
  254. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  255. * Tue Apr 29 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.0.1-2.20140429git4341094
  256. - Update to latest snapshot
  257. - Support for AMD Kabini
  258. * Mon Jan 13 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.0.1-2.20140108gitc002f62
  259. - Move headers to main package, needed by clover at runtime
  260. * Wed Jan 08 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 0.0.1-1.20140108gitc002f62
  261. - Could not use latest master because it doesn't build
  262. - Update to a fresher snapshot
  263. - Limit to x86
  264. * Sun Jul 14 2013 Fabian Deutsch <fabiand@fedoraproject.org> - 0.0.1-0.20130714git5217211
  265. - Initial package