e485fb
#
e485fb
# crash core analysis suite
e485fb
#
e485fb
Summary: Trace extension module for the crash utility
e485fb
Name: crash-trace-command
e485fb
Version: 2.0
e485fb
Release: 9%{?dist}
e485fb
License: GPLv2
e485fb
Group: Development/Debuggers
e485fb
Source: %{name}-%{version}.tar.gz
e485fb
URL: http://people.redhat.com/anderson/extensions/%{name}-%{version}.tar.gz
e485fb
# Vendor: Fujitsu Limited
e485fb
# Packager: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
e485fb
ExclusiveOS: Linux
e485fb
ExclusiveArch: x86_64 %{ix86} ppc64 ia64 s390 s390x aarch64 ppc64le
e485fb
Buildroot: %{_tmppath}/%{name}-root
e485fb
BuildRequires: crash-devel zlib-devel lzo-devel snappy-devel
e485fb
Requires: trace-cmd
e485fb
Patch0: trace_compiler_warnings.patch
e485fb
Patch1: replace_obsolete_init_and_fini.patch
e485fb
Patch2: sigsegv_on_calloc_failure.patch
e485fb
Patch3: initialize_trace_dat.patch
e485fb
Patch4: ARM64.patch
e485fb
Patch5: linux_3.10_support.patch
e485fb
Patch6: ppc64le.patch
e485fb
e485fb
%description
e485fb
Command for reading ftrace data from a dumpfile.
e485fb
e485fb
%prep
e485fb
%setup -q -n %{name}-%{version}
e485fb
%patch0 -p1 -b trace_compiler_warnings.patch
e485fb
%patch1 -p1 -b replace_obsolete_init_and_fini.patch
e485fb
%patch2 -p1 -b sigsegv_on_calloc_failure.patch
e485fb
%patch3 -p1 -b initialize_trace_dat.patch
e485fb
%patch4 -p1 -b ARM64.patch
e485fb
%patch5 -p1 -b linux_3.10_support.patch
e485fb
%patch6 -p1 -b ppc64le.patch
e485fb
e485fb
%build
e485fb
make
e485fb
e485fb
%install
e485fb
mkdir -p %{buildroot}%{_libdir}/crash/extensions/
e485fb
cp %{_builddir}/%{name}-%{version}/trace.so %{buildroot}%{_libdir}/crash/extensions/
e485fb
e485fb
%clean
e485fb
rm -rf %{buildroot}
e485fb
e485fb
%files
e485fb
%defattr(-,root,root)
e485fb
%{_libdir}/crash/extensions/trace.so
e485fb
%doc COPYING
e485fb
e485fb
%changelog
e485fb
* Tue Sep 02 2014 Dave Anderson <anderson@redhat.com> - 2.0-9
e485fb
- Add ppc64le support.
e485fb
  Resolves: rhbz#1123995
e485fb
e485fb
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0-8
e485fb
- Mass rebuild 2014-01-24
e485fb
e485fb
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0-7
e485fb
- Mass rebuild 2013-12-27
e485fb
e485fb
* Thu Dec  5 2013 Dave Anderson <anderson@redhat.com> - 2.0-6
e485fb
- Add Linux 3.10 support.
e485fb
  Resolves: rhbz#863833
e485fb
e485fb
* Tue Nov 12 2013 Dave Anderson <anderson@redhat.com> - 2.0-5
e485fb
- Add ARM64 support.
e485fb
  Resolves: rhbz#1028580
e485fb
e485fb
* Tue Aug 20 2013 Dave Anderson <anderson@redhat.com> - 2.0-4
e485fb
- crash utility has added LZO and snappy compression in addition to zlib
e485fb
e485fb
* Wed May 29 2013 Dave Anderson <anderson@redhat.com> - 2.0-3
e485fb
- Replace obsolete _init() and _fini() functions.
e485fb
- Fix possible segmentation violation on calloc() failure.
e485fb
- Initialize trace_dat to avoid compiler warning.
e485fb
e485fb
* Mon Nov 26 2012 Dave Anderson <anderson@redhat.com> - 2.0-2
e485fb
- trace-cmd package required
e485fb
- rpmlint cleanups to this file 
e485fb
- fix compiler warnings for trace.c
e485fb
e485fb
* Wed Nov  21 2012 Qiao Nuohan <qiaonuohan@cn.fujitsu.com> - 2.0-1
e485fb
- update code
e485fb
  Resolves: rhbz#863833
e485fb
e485fb
* Wed Feb  8 2012 Dave Anderson <anderson@redhat.com> - 1.0-4
e485fb
- Build with RPM_OPT_FLAGS.
e485fb
  Resolves: rhbz#729018
e485fb
e485fb
* Wed Jun  9 2010 Dave Anderson <anderson@redhat.com> - 1.0-3
e485fb
- Remove trace_dump.patch, which requires a kernel later than
e485fb
  the RHEL6 base of 2.6.32.
e485fb
  Resolves: rbhz#601536
e485fb
e485fb
* Mon May 24 2010 Dave Anderson <anderson@redhat.com> - 1.0-2
e485fb
- Fix for segmentation violation with "trace show -c cpu" command,
e485fb
  and add "trace dump -t" command.
e485fb
  Resolves: rbhz#592887
e485fb
e485fb
* Wed Dec 09 2009 Dave Anderson <anderson@redhat.com> - 1.0-1.2
e485fb
- fix Makefile to account for s390 build
e485fb
- change exclusive arch entry from i386 to {ix86}
e485fb
- Resolves: rbhz#545564
e485fb
e485fb
* Tue Dec 08 2009 Dennis Gregorovic <dgregor@redhat.com> - 1.0-1.1
e485fb
- Rebuilt for RHEL 6
e485fb
e485fb
* Fri Sep 25 2009  Dave Anderson <anderson@redhat.com>
e485fb
- Initial crash-trace-command package
e485fb