vulkan-loader-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. %bcond_with bootstrap
  2. Name: vulkan-loader
  3. Version: 1.2.135.0
  4. Release: 2%{?_dist_release}
  5. Summary: Vulkan ICD desktop loader
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: ASL 2.0
  9. URL: https://github.com/KhronosGroup/Vulkan-Loader
  10. Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-Loader-sdk-%{version}.tar.gz
  11. BuildRequires: gcc
  12. BuildRequires: gcc-c++
  13. BuildRequires: cmake
  14. BuildRequires: ninja
  15. BuildRequires: python3-devel
  16. BuildRequires: vulkan-headers = %{version}
  17. #BuildRequires: pkgconfig(wayland-client)
  18. #BuildRequires: pkgconfig(wayland-cursor)
  19. #BuildRequires: pkgconfig(wayland-server)
  20. #BuildRequires: pkgconfig(wayland-egl)
  21. BuildRequires: pkgconfig(x11)
  22. BuildRequires: pkgconfig(xrandr)
  23. Provides: vulkan%{?_isa} = %{version}-%{release}
  24. Provides: vulkan = %{version}-%{release}
  25. Obsoletes: vulkan < %{version}-%{release}
  26. Provides: vulkan-filesystem = %{version}-%{release}
  27. Obsoletes: vulkan-filesystem < %{version}-%{release}
  28. %if !%{with bootstrap}
  29. Requires: mesa-vulkan-drivers%{?_isa}
  30. %endif
  31. %description
  32. This project provides the Khronos official Vulkan ICD desktop
  33. loader for Windows, Linux, and MacOS.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Requires: %{name}%{?_isa} = %{version}-%{release}
  37. Requires: vulkan-headers
  38. Provides: vulkan-devel%{?_isa} = %{version}-%{release}
  39. Provides: vulkan-devel = %{version}-%{release}
  40. Obsoletes: vulkan-devel < %{version}-%{release}
  41. %description devel
  42. The %{name}-devel package contains libraries and header files for
  43. developing applications that use %{name}.
  44. %prep
  45. %autosetup -n Vulkan-Loader-sdk-%{version}
  46. %build
  47. %cmake \
  48. -GNinja \
  49. -DCMAKE_BUILD_TYPE=Release \
  50. -DBUILD_WSI_WAYLAND_SUPPORT=off \
  51. .
  52. %ninja_build
  53. %install
  54. %ninja_install
  55. # create the filesystem
  56. mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \
  57. %{buildroot}%{_datadir}/vulkan/{explicit,implicit}_layer.d/ \
  58. %{buildroot}{%{_sysconfdir},%{_datadir}}/vulkan/icd.d
  59. %post -p /sbin/ldconfig
  60. %postun -p /sbin/ldconfig
  61. %files
  62. %license LICENSE.txt
  63. %doc README.md CONTRIBUTING.md
  64. %dir %{_sysconfdir}/vulkan/
  65. %dir %{_sysconfdir}/vulkan/explicit_layer.d/
  66. %dir %{_sysconfdir}/vulkan/icd.d/
  67. %dir %{_sysconfdir}/vulkan/implicit_layer.d/
  68. %dir %{_datadir}/vulkan/
  69. %dir %{_datadir}/vulkan/explicit_layer.d/
  70. %dir %{_datadir}/vulkan/icd.d/
  71. %dir %{_datadir}/vulkan/implicit_layer.d/
  72. %{_libdir}/*.so.*
  73. %files devel
  74. %{_libdir}/pkgconfig/vulkan.pc
  75. %{_libdir}/*.so
  76. %changelog
  77. * Wed Jul 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.2.135.0-2
  78. - initial build for Vine Linux.
  79. * Wed Apr 22 2020 Dave Airlie <airlied@redhat.com> - 1.2.135.0-1
  80. - Update to 1.2.135.0
  81. * Wed Jan 29 2020 Dave Airlie <airlied@redhat.com> - 1.2.131.1-1
  82. - Update to 1.2.131.1
  83. * Tue Nov 12 2019 Dave Airlie <airlied@redhat.com> - 1.1.126.0-1
  84. - Update to 1.1.126.0
  85. * Wed Jul 31 2019 Dave Airlie <airlied@redhat.com> - 1.1.114.0-1
  86. - Update to 1.1.114.0
  87. * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.108.0-1
  88. - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
  89. * Tue Jun 25 2019 Dave Airlie <airlied@redhat.com> - 1.1.108.0-0
  90. - Update to 1.1.108.0
  91. * Wed Mar 06 2019 Dave Airlie <airlied@redhat.com> - 1.1.101.0-0
  92. - Update to 1.1.101.0
  93. * Wed Feb 13 2019 Dave Airlie <airlied@redhat.com> - 1.1.97.0-0
  94. - Update to 1.1.97.0
  95. * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.92.0-2
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  97. * Mon Dec 03 2018 Dave Airlie <airlied@redhat.com> - 1.1.92.0-1
  98. - Update to 1.1.92.0
  99. * Mon Nov 19 2018 Dave Airlie <airlied@redhat.com> - 1.1.85.0-1
  100. - Update to 1.1.85.0
  101. * Tue Aug 07 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.82.0-1
  102. - Update to 1.1.82.0
  103. * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.77.0-5
  104. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  105. * Wed Jun 27 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-4
  106. - Fix update path
  107. * Tue Jun 26 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-3
  108. - Add conditional for mesa-vulkan-drivers requires
  109. * Tue Jun 26 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-2
  110. - Improve description and summary
  111. - Set release
  112. * Sat Jun 23 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-1
  113. - Initial package