diff --git a/vulkan-loader.spec b/vulkan-loader.spec index cb6e3deedd88245e8359821f3dba8d6ffabb7fa6..f3933089d0e68521d653ec7d1da0a49e62d42931 100644 --- a/vulkan-loader.spec +++ b/vulkan-loader.spec @@ -1,17 +1,15 @@ -%define anolis_release 1 +%define anolis_release 2 + +Summary: Vulkan ICD desktop loader Name: vulkan-loader Version: 1.3.234 Release: %{anolis_release}%{?dist} -Summary: Vulkan ICD desktop loader License: ASL 2.0 URL: https://github.com/KhronosGroup/Vulkan-Loader Source0: https://github.com/KhronosGroup/Vulkan-Loader/archive/refs/tags/v%{version}.tar.gz -BuildRequires: gcc -BuildRequires: gcc-c++ -BuildRequires: cmake -BuildRequires: ninja-build +BuildRequires: gcc gcc-c++ cmake ninja-build BuildRequires: python3-devel BuildRequires: vulkan-headers = %{version} BuildRequires: pkgconfig(wayland-client) @@ -29,17 +27,20 @@ Obsoletes: vulkan-filesystem < %{version}-%{release} Recommends: mesa-vulkan-drivers %description -This project provides the Khronos official Vulkan ICD desktop +Vulkan is an explicit API, enabling direct control over how +GPUs actually work. As such, Vulkan supports systems that have +multiple GPUs, each running with a different driver, or ICD +(Installable Client Driver). Vulkan also supports multiple global +contexts (instances, in Vulkan terminology). The ICD loader is a +library that is placed between a Vulkan application and any number +of Vulkan drivers, in order to support multiple drivers and the +instance-level functionality that works across these drivers. +Additionally, the loader manages inserting Vulkan layer libraries, +such as validation layers, between an application and the drivers. + +This package provides the Khronos official Vulkan ICD desktop loader for Windows, Linux, and MacOS. -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%description doc -The %{name}-doc package contains documentation files for %{name}. - %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} @@ -51,6 +52,13 @@ Obsoletes: vulkan-devel < %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Doc files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep %autosetup -p1 -n Vulkan-Loader-%{version} @@ -60,14 +68,15 @@ developing applications that use %{name}. %cmake -GNinja -DCMAKE_BUILD_TYPE=Release . %cmake_build - %install %cmake_install -# create the filesystem -mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ -%{buildroot}%{_datadir}/vulkan/{explicit,implicit}_layer.d/ \ -%{buildroot}{%{_sysconfdir},%{_datadir}}/vulkan/icd.d +mkdir -p %{buildroot}%{_sysconfdir}/vulkan/explicit_layer.d/ +mkdir -p %{buildroot}%{_sysconfdir}/vulkan/implicit_layer.d/ +mkdir -p %{buildroot}%{_datadir}/vulkan/explicit_layer.d/ +mkdir -p %{buildroot}%{_datadir}/vulkan/implicit_layer.d/ +mkdir -p %{buildroot}%{_sysconfdir}/vulkan/icd.d +mkdir -p %{buildroot}%{_datadir}/vulkan/icd.d %generate_compatibility_deps @@ -85,15 +94,18 @@ mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ %{_libdir}/*.so.* %{abidir}/*.dump -%files doc -%doc README.md CONTRIBUTING.md - %files devel %{_libdir}/pkgconfig/vulkan.pc %{_libdir}/*.so +%files doc +%doc README.md CONTRIBUTING.md + %changelog +* Wed Apr 12 2023 Kun(llfl) - 1.3.234-2 +- optimize spec file + * Sat Nov 12 2022 Funda Wang - 1.3.234-1 - New version 1.3.234