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