From 2331458da2eec35eb4ba456ed8ed084e734cad0f Mon Sep 17 00:00:00 2001 From: Weisson Date: Sat, 16 Jul 2022 16:59:22 +0800 Subject: [PATCH] add doc sub package --- crash.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/crash.spec b/crash.spec index 21fa7f2..9b9e501 100644 --- a/crash.spec +++ b/crash.spec @@ -1,10 +1,11 @@ # # crash core analysis suite # +%define anolis_release .0.1 Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles Name: crash Version: 7.3.1 -Release: 6%{?dist} +Release: 6%{anolis_release}%{?dist} License: GPLv3 Group: Development/Debuggers Source0: https://github.com/crash-utility/crash/archive/crash-%{version}.tar.gz @@ -19,7 +20,9 @@ ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x %{arm} aarch64 ppc64le l Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n) BuildRequires: ncurses-devel zlib-devel lzo-devel bison snappy-devel libzstd-devel texinfo flex Requires: binutils +Requires: glibc Provides: bundled(gdb) = 7.6 +Provides: /usr/bin/crash Patch0: lzo_snappy_zstd.patch Patch1: rhel8_build.patch Patch2: rhel8_freepointer.patch @@ -55,6 +58,14 @@ investigate either live systems, kernel core dumps created from the netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch offered by Mission Critical Linux, or the LKCD kernel patch. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -n %{name}-%{version} -q %patch0 -p1 -b lzo_snappy_zstd.patch @@ -99,13 +110,18 @@ rm -rf %{buildroot} %defattr(-,root,root,-) %{_bindir}/crash %{_mandir}/man8/crash.8* -%doc README COPYING3 %files devel %defattr(-,root,root,-) %{_includedir}/* +%files doc +%doc README COPYING3 + %changelog +* Fri Sep 23 2022 Weisson - 7.3.1-6.0.1 +- Add doc sub package + * Tue Jul 12 2022 Youling Tang - 7.3.1-6 - Add LoongArch support -- Gitee