spirv-tools-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. #global commit 67f4838659f475d618c120e13d1a196d7e00ba4b
  2. #global shortcommit %(c=%{commit}; echo ${c:0:7})
  3. #global commit_date 20200421
  4. #global gitrel .%{commit_date}.git%{shortcommit}
  5. Name: spirv-tools
  6. Summary: API and commands for processing SPIR-V modules
  7. Version: 2020.3
  8. Release: 1%{?gitrel}%{?_dist_release}
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. License: ASL 2.0
  12. URL: https://github.com/KhronosGroup/SPIRV-Tools
  13. %if 0%{?commit_date}
  14. Source0: %url/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
  15. %else
  16. Source0: %url/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
  17. %endif
  18. BuildRequires: cmake
  19. BuildRequires: gcc-c++
  20. BuildRequires: ninja
  21. BuildRequires: python3-devel
  22. BuildRequires: python3-rpm-macros
  23. BuildRequires: spirv-headers-devel
  24. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  25. %description
  26. The package includes an assembler, binary module parser,
  27. disassembler, and validator for SPIR-V..
  28. %package libs
  29. Summary: Library files for %{name}
  30. Provides: %{name}-libs%{?_isa} = %{version}
  31. %description libs
  32. library files for %{name}
  33. %package devel
  34. Summary: Development files for %{name}
  35. Requires: %{name}-libs%{?_isa} = %{version}-%{release}
  36. %description devel
  37. Development files for %{name}
  38. %prep
  39. %if 0%{?commit_date}
  40. %autosetup -p1 -n SPIRV-Tools-%{commit}
  41. %else
  42. %autosetup -p1 -n SPIRV-Tools-%{version}
  43. %endif
  44. %build
  45. %__mkdir_p %_target_platform
  46. pushd %_target_platform
  47. %cmake3 -DCMAKE_BUILD_TYPE=Release \
  48. -DCMAKE_INSTALL_LIBDIR=%{_lib} \
  49. -DSPIRV-Headers_SOURCE_DIR=%{_prefix} \
  50. -DPYTHON_EXECUTABLE=%{__python3} \
  51. -GNinja ..
  52. %ninja_build
  53. popd
  54. %install
  55. %ninja_install -C %_target_platform
  56. %post libs -p /sbin/ldconfig
  57. %postun libs -p /sbin/ldconfig
  58. %files
  59. %license LICENSE
  60. %doc README.md CHANGES
  61. %{_bindir}/spirv-as
  62. %{_bindir}/spirv-cfg
  63. %{_bindir}/spirv-dis
  64. %{_bindir}/spirv-lesspipe.sh
  65. %{_bindir}/spirv-link
  66. %{_bindir}/spirv-opt
  67. %{_bindir}/spirv-reduce
  68. %{_bindir}/spirv-val
  69. %files libs
  70. %{_libdir}/libSPIRV-Tools-link.so
  71. %{_libdir}/libSPIRV-Tools-opt.so
  72. %{_libdir}/libSPIRV-Tools-shared.so
  73. %{_libdir}/libSPIRV-Tools-reduce.so
  74. %{_libdir}/libSPIRV-Tools.so
  75. %files devel
  76. %{_includedir}/spirv-tools/
  77. %{_libdir}/cmake/*
  78. %{_libdir}/pkgconfig/SPIRV-Tools-shared.pc
  79. %{_libdir}/pkgconfig/SPIRV-Tools.pc
  80. %changelog
  81. * Wed Jul 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2020.3-1
  82. - initial build for Vine Linux.
  83. - new upstream release.
  84. * Wed Apr 22 2020 Dave Airlie <airlied@redhat.cvom> - 2019.5-2
  85. - git snapshot for newer glslang/validation layers
  86. * Wed Jan 29 2020 Dave Airlie <airlied@redhat.com> - 2019.5-1
  87. - git snapshot for newer glslang/validation layers
  88. * Tue Nov 12 2019 Dave Airlie <airlied@redhat.com> - 2019.4-1
  89. - git snapshot for newer glslang/validation layers
  90. * Thu Aug 01 2019 Dave Airlie <airlied@redhat.com> - 2019.4-0.1
  91. - git snapshot to let newer vulkan validation layers build
  92. - stats removed upstream
  93. * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2019.3-2
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  95. * Mon Jun 10 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2019.3-1
  96. - Release 2019.3
  97. * Thu Mar 07 2019 Dave Airlie <airlied@redhat.com> - 2019.1-2
  98. - Add patch to let vulkan-validation-layers build
  99. * Mon Feb 04 2019 Dave Airlie <airlied@redhat.com> - 2019.1-1
  100. - Update to 2019.1 release
  101. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.4-2
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  103. * Mon Jul 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.4-1
  104. - Update to 2018.4 release
  105. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.3.0-0.3.20180407.git26a698c
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  107. * Mon Jun 25 2018 Dave Airlie <airlied@redhat.com> - 2018.3.0-0.2.20180407.git26a698c
  108. - Move to python3 and drop the simplejson buildreq.
  109. * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.3.0-0.1.20180407.git26a698c
  110. - Bump version to 2018.3.0 to match .pc files
  111. * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.4.20180407.git26a698c
  112. - Bump provides to 2018.3.0
  113. * Tue Apr 24 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.3.20180407.git26a698c
  114. - Update for vulkan 1.1.73.0
  115. * Wed Feb 14 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.2.20180205.git9e19fc0
  116. - Add isa to the provides
  117. * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2018.1-0.1.20180205.git9e19fc0
  118. - Fix version
  119. - Fix pkgconfig file
  120. - Add version provides to -libs package
  121. * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.5.20180205.git9e19fc0
  122. - Update for vulkan 1.0.68.0
  123. - Try building as shared object
  124. - Split libs into -libs subpackage
  125. * Fri Feb 09 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.4.20171023.git5834719
  126. - Use ninja to build
  127. * Mon Jan 22 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.3.20171023.git5834719
  128. - Add python prefix to fix the stupid Bodhi tests
  129. * Wed Jan 03 2018 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.2.20171023.git5834719
  130. - Split binaries into main package
  131. * Thu Jul 13 2017 Leigh Scott <leigh123linux@googlemail.com> - 2016.7-0.1.20171023.git5834719
  132. - First build