]> git.pld-linux.org Git - packages/crash.git/blob - crash.spec
- package extensions
[packages/crash.git] / crash.spec
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,%{_libdir}/crash/extensions,%{_includedir}/crash}
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 # omitted by make install
67 install extensions/*.so $RPM_BUILD_ROOT%{_libdir}/crash/extensions
68 cp -p crash.8 $RPM_BUILD_ROOT%{_mandir}/man8
69 cp -p defs.h $RPM_BUILD_ROOT%{_includedir}/crash
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc README
77 %attr(755,root,root) %{_bindir}/crash
78 %dir %{_libdir}/crash
79 %dir %{_libdir}/crash/extensions
80 %attr(755,root,root) %{_libdir}/crash/extensions/dminfo.so
81 %attr(755,root,root) %{_libdir}/crash/extensions/echo.so
82 #%attr(755,root,root) %{_libdir}/crash/extensions/eppic.so
83 %attr(755,root,root) %{_libdir}/crash/extensions/snap.so
84 %attr(755,root,root) %{_libdir}/crash/extensions/trace.so
85 %{_mandir}/man8/crash.8*
86
87 %files devel
88 %defattr(644,root,root,755)
89 %{_includedir}/crash
This page took 0.035665 seconds and 4 git commands to generate.