|
@@ -3,16 +3,25 @@
|
|
|
#
|
|
|
Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
|
|
|
Name: crash
|
|
|
-Version: 6.1.0
|
|
|
+Version: 7.0.9
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPLv3
|
|
|
Group: Development/Debuggers
|
|
|
-Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz
|
|
|
URL: http://people.redhat.com/anderson
|
|
|
+
|
|
|
+Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz
|
|
|
+Patch0: lzo_snappy.patch
|
|
|
+
|
|
|
ExclusiveOS: Linux
|
|
|
ExclusiveArch: %{ix86} ia64 x86_64 ppc64 s390 s390x %{arm}
|
|
|
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
|
|
|
-BuildRequires: ncurses-devel zlib-devel
|
|
|
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
+BuildRequires: bison
|
|
|
+BuildRequires: lzo-devel
|
|
|
+BuildRequires: ncurses-devel
|
|
|
+BuildRequires: readline-devel
|
|
|
+BuildRequires: snappy-devel
|
|
|
+BuildRequires: zlib-devel
|
|
|
+
|
|
|
Requires: binutils
|
|
|
|
|
|
%description
|
|
@@ -22,9 +31,11 @@ netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
|
|
|
offered by Mission Critical Linux, or the LKCD kernel patch.
|
|
|
|
|
|
%package devel
|
|
|
-Requires: %{name} = %{version}, zlib-devel
|
|
|
-Summary: kernel crash analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
|
|
|
-Group: Development/Debuggers
|
|
|
+Summary: Development files for %{name}
|
|
|
+Summary(ja): %{name} の開発用ファイル
|
|
|
+Group: Development/System
|
|
|
+Requires: %{name} = %{version}
|
|
|
+Requires: zlib-devel
|
|
|
|
|
|
%description devel
|
|
|
The core analysis suite is a self-contained tool that can be used to
|
|
@@ -32,8 +43,13 @@ 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.
|
|
|
|
|
|
+The %{name}-devel package contains static library and header files for
|
|
|
+developing applications that use %{name}.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
-%setup -n %{name}-%{version} -q
|
|
|
+%setup -q -n %{name}-%{version}
|
|
|
+%patch0 -p1 -b lzo_snappy.patch
|
|
|
|
|
|
%build
|
|
|
make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}"
|
|
@@ -47,26 +63,32 @@ cp -p crash.8 %{buildroot}%{_mandir}/man8/crash.8
|
|
|
mkdir -p %{buildroot}%{_includedir}/crash
|
|
|
chmod 0644 defs.h
|
|
|
cp -p defs.h %{buildroot}%{_includedir}/crash
|
|
|
+mkdir -p %{buildroot}%{_libdir}
|
|
|
+cp -p crashlib.a %{buildroot}%{_libdir}
|
|
|
+
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
+%doc README COPYING3
|
|
|
%{_bindir}/crash
|
|
|
%{_mandir}/man8/crash.8*
|
|
|
-%doc README COPYING3
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
%{_includedir}/*
|
|
|
+%{_libdir}/*.a
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Nov 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 7.0.9-1
|
|
|
+- updated to 7.0.9
|
|
|
+- moved devel subpackage to Development/System Group
|
|
|
+
|
|
|
* Sun Nov 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.1.0-1
|
|
|
- initial build for Vine Linux
|
|
|
|
|
|
-
|
|
|
-
|
|
|
* Tue Aug 21 2012 Dave Anderson <anderson@redhat.com> - 6.0.9-1
|
|
|
- Update to latest upstream release
|
|
|
|