Summary: Core Analysis Suite
Summary(pl.UTF-8): Zestaw narzędzi do analizy zrzutów pamięci
Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version: 7.1.3
+Version: 8.0.4
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
License: GPL v2+
Group: Libraries
-Source0: http://people.redhat.com/anderson/%{pname}-%{version}.tar.gz
-# Source0-md5: f87b3c8a516fe13a71bfce7873e2cd44
-# git clone https://code.google.com/p/eppic
+Source0: https://github.com/crash-utility/crash/archive/%{version}/%{pname}-%{version}.tar.gz
+# Source0-md5: 5d8513ded5c9517e713a75e712d72e3a
+# git clone -b v5.0 https://github.com/lucchouina/eppic
Source1: eppic.tar.xz
-# Source1-md5: a9f80ad71de9d6f5b77534a7ebdbed8e
-Patch0: %{name}-x32.patch
-URL: http://people.redhat.com/anderson/
+# Source1-md5: a04143f6eb0d72c33cd53329dc1b4803
+Source2: https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz
+# Source2-md5: c044b7146903ec51c9d2337a29aee93b
+Patch0: %{pname}-x32.patch
+Patch1: only-patch-gdb.patch
+URL: https://github.com/crash-utility/crash
BuildRequires: rpmbuild(macros) >= 1.701
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
%if %{with userspace}
%{?with_kernel:%{expand:%create_kernel_packages}}
%prep
-%setup -q -a1 -n %{pname}-%{version}
+%setup -q -a1 -a2 -n %{pname}-%{version}
%patch0 -p1
+%patch1 -p1
%{__mv} eppic extensions
%if %{with userspace}
export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses"
-%{__make} -j1 all extensions \
+%{__make} \
+ ARCH="%{_target_cpu}" \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
+
+%{__make} -j1 extensions \
ARCH="%{_target_cpu}" \
CC="%{__cc}" \
CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
%attr(755,root,root) %{_libdir}/crash/extensions/echo.so
%attr(755,root,root) %{_libdir}/crash/extensions/eppic.so
%attr(755,root,root) %{_libdir}/crash/extensions/snap.so
-%attr(755,root,root) %{_libdir}/crash/extensions/trace.so
%{_mandir}/man8/crash.8*
%files devel