]>
Commit | Line | Data |
---|---|---|
61472ea8 JB |
1 | # TODO: |
2 | # - memory_driver kernel module | |
3 | # - eppic extension (wants to git pull from code.google.com) | |
4 | # | |
5 | Summary: Core Analysis Suite | |
6 | Summary(pl.UTF-8): Zestaw narzędzi do analizy zrzutów pamięci | |
7 | Name: crash | |
8 | Version: 7.0.1 | |
9 | Release: 1 | |
10 | License: GPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://people.redhat.com/anderson/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: b59076aebaced87e9073328cb0a4f50a | |
14 | URL: http://people.redhat.com/anderson/ | |
15 | BuildRequires: ncurses-devel | |
16 | BuildRequires: readline-devel | |
17 | BuildRequires: xz-devel | |
18 | BuildRequires: zlib-devel | |
19 | ExclusiveArch: %{ix86} %{x8664} alpha arm ia64 ppc64 s390 s390x | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The core analysis suite is a self-contained tool that can be used to | |
24 | investigate either live systems, kernel core dumps created from the | |
25 | netdump and diskdump packages offered by Red Hat, the LKCD kernel | |
26 | patch or the mcore kernel patch available from Mission Critical Linux. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Narzędzie do analizy zrzutów pamięci to samodzielny program służący do | |
30 | badania systemów działających, zrzutów pamięci jądra utworzonych przez | |
31 | pakiety Red Hata netdump lub diskdump, łatę jądra LKCD lub łatę jądra | |
32 | mcore dostępną w Mission Critical Linuksie. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for core analysis suite | |
36 | Summary(pl.UTF-8): Plik nagłówkowy narzędzia do analizy zrzutów pamięci | |
37 | Group: Development/Libraries | |
38 | # doesn't require base | |
39 | ||
40 | %description devel | |
41 | Header files for core analysis suite. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Plik nagłówkowy narzędzia do analizy zrzutów pamięci. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | # TODO: download sources, disable git pull in eppic.mk | |
50 | %{__mv} extensions/eppic.c{,.skip} | |
51 | ||
52 | %build | |
53 | export CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" | |
54 | %{__make} -j1 all extensions \ | |
55 | ARCH="%{_target_cpu}" \ | |
56 | CC="%{__cc}" \ | |
57 | CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8,%{_includedir}/crash} | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | # omitted by make install | |
67 | cp -p crash.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
68 | cp -p defs.h $RPM_BUILD_ROOT%{_includedir}/crash | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc README | |
76 | %attr(755,root,root) %{_bindir}/crash | |
77 | %{_mandir}/man8/crash.8* | |
78 | ||
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %{_includedir}/crash |