From b64990a8caa262ffc3ff4cd93392cabd2836f9b1 Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sat, 16 Jul 2022 13:58:41 +0800 Subject: [PATCH] spec: add doc sub package --- vulkan-loader.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/vulkan-loader.spec b/vulkan-loader.spec index 9e7a460..45ab0f4 100644 --- a/vulkan-loader.spec +++ b/vulkan-loader.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: vulkan-loader Version: 1.3.204.0 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: Vulkan ICD desktop loader License: ASL 2.0 @@ -25,6 +26,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} @@ -55,6 +58,14 @@ 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 @@ -79,7 +90,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/ @@ -94,8 +104,13 @@ mkdir -p %{buildroot}%{_sysconfdir}/vulkan/{explicit,implicit}_layer.d/ \ %{_libdir}/pkgconfig/vulkan.pc %{_libdir}/*.so +%files doc +%doc README.md CONTRIBUTING.md %changelog +* Fri Jul 15 2022 Chang Gao - 1.3.204.0-2.0.1 +- Add doc sub package + * Thu Feb 24 2022 Dave Airlie - 1.3.204.0-2 - Fix aarch64 TEXTREL -- Gitee