diff --git a/vulkan-loader.spec b/vulkan-loader.spec index ae6bc9015f3988d6c86fe1eb398d34b4ed2df8bb..74b3c56e678d1c5874df11e9e432ee82e6c1c0eb 100644 --- a/vulkan-loader.spec +++ b/vulkan-loader.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: vulkan-loader Version: 1.3.216.0 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Vulkan ICD desktop loader License: ASL 2.0 @@ -23,6 +24,8 @@ BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xrandr) +Requires: glibc + Provides: vulkan%{?_isa} = %{version}-%{release} Provides: vulkan = %{version}-%{release} Obsoletes: vulkan < %{version}-%{release} @@ -53,11 +56,17 @@ Obsoletes: vulkan-devel < %{version}-%{release} The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name} %prep %autosetup -n Vulkan-Loader-sdk-%{version} -p1 - %build %cmake -GNinja -DCMAKE_BUILD_TYPE=Release . %ninja_build @@ -77,7 +86,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ %files %license LICENSE.txt -%doc README.md CONTRIBUTING.md %dir %{_sysconfdir}/vulkan/ %dir %{_sysconfdir}/vulkan/explicit_layer.d/ %dir %{_sysconfdir}/vulkan/icd.d/ @@ -92,8 +100,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ %{_libdir}/pkgconfig/vulkan.pc %{_libdir}/*.so +%files doc +%doc README.md CONTRIBUTING.md %changelog +* Tue Nov 1 2022 Chang Gao - 1.3.216.0-1.0.1 +- Add doc sub package + * Mon Jun 20 2022 Dave Airlie - 1.3.216.0-1 - Update to 1.3.216.0