From e0ed4662132fe0da3823aa51817562c59c23d54b Mon Sep 17 00:00:00 2001 From: HATAYAMA Daisuke Date: Thu, 18 Feb 2021 19:17:20 +0900 Subject: [PATCH] Initial import (#1919347). --- .gitignore | 1 + crash-gcore-command.spec | 38 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 crash-gcore-command.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d48a0db --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/crash-gcore-command-1.6.2.tar.gz diff --git a/crash-gcore-command.spec b/crash-gcore-command.spec new file mode 100644 index 0000000..0285ef9 --- /dev/null +++ b/crash-gcore-command.spec @@ -0,0 +1,38 @@ +%global reponame crash-gcore + +Summary: Gcore extension module for the crash utility +Name: crash-gcore-command +Version: 1.6.2 +Release: 1%{?dist} +License: GPLv2 +Source0: https://github.com/fujitsu/crash-gcore/archive/v%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/fujitsu/crash-gcore +ExclusiveOS: Linux +ExclusiveArch: aarch64 ppc64le x86_64 +BuildRequires: crash-devel >= 5.1.5 +BuildRequires: gcc +Requires: crash >= 5.1.5 + +%description +Command for creating a core dump file of a user-space task that was +running in a kernel dump file. + +%prep +%autosetup -n %{reponame}-%{version} + +%build +%make_build -C src -f gcore.mk + +%install +install -m 0755 -d %{buildroot}%{_libdir}/crash/extensions +install -m 0755 -t %{buildroot}%{_libdir}/crash/extensions %{_builddir}/%{reponame}-%{version}/src/gcore.so + +%files +%dir %{_libdir}/crash +%dir %{_libdir}/crash/extensions +%{_libdir}/crash/extensions/gcore.so +%license COPYING + +%changelog +* Fri Jan 22 2021 HATAYAMA Daisuke - 1.6.2-1 +- Initial crash-gcore-command package diff --git a/sources b/sources new file mode 100644 index 0000000..b2c4cfc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (crash-gcore-command-1.6.2.tar.gz) = 298262f8c28e22697c8878dd3c4a4af05842a62bd93cc143c5fa8e84add671dab66c859c1de1180f2582162816c437af1ecfb5dc38d321099d8d4fa1e87be149