diff --git a/crash.spec b/crash.spec index 52e8b12584407d369f1c3c33e90a94d12fe09bcf..6053ab4f7b13fe3546b4cf1fa94edea7730b5140 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: 5%{?dist} +Release: 5%{anolis_release}%{?dist} License: GPLv3 Group: Development/Debuggers Source0: https://github.com/crash-utility/crash/archive/crash-%{version}.tar.gz @@ -15,7 +16,9 @@ ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x %{arm} aarch64 ppc64le Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n) BuildRequires: ncurses-devel zlib-devel lzo-devel bison snappy-devel libzstd-devel 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 @@ -50,6 +53,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 @@ -91,13 +102,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 Jul 15 2022 Weisson - 7.3.1-5.0.1 +- Add doc sub package + * Tue Feb 08 2022 Lianbo Jiang - 7.3.1-5 - Rebuild for osci badfuncs issue