]> git.pld-linux.org Git - SPECS.git/blob - lkcdutils.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / lkcdutils.spec
1 # TODO
2 # - build Qt GUI for Linux Crash (spec/lkcdutils-qlcrash.spec)
3 # - make it build
4 # - cflags
5 # - has patched bfd, see if it still needed
6 Summary:        Linux Kernel Crash Dump (LKCD) Utilities
7 Name:           lkcdutils
8 Version:        6.2.0
9 Release:        0.1
10 License:        - (enter GPL/GPL v2/GPL v3/LGPL/BSD/BSD-like/other license name here)
11 Group:          Applications
12 Source0:        http://dl.sourceforge.net/lkcd/%{name}-%{version}.tar.gz
13 # Source0-md5:  8cd68ff9115d210d4f1c6458929559a3
14 URL:            http://lkcd.sourceforge.net/
15 BuildRequires:  byacc
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This software package contains system crash dump analyzer tools. It
20 includes Linux Crash (lcrash) and all appropriate user level scripts
21 required for saving and configuring system crash dumps. This package
22 should be installed after the lkcd kernel patches are installed on the
23 system.
24
25 %prep
26 %setup -q -n %{name}
27
28 %build
29 # not autotools generated configure
30 ./configure \
31         --prefix=%{_prefix} \
32         --mandir=%{_mandir} \
33
34 #       --cflags=%{rpmcflags} \
35 #       --lflags=%{rpmldflags}
36
37 %{__make}
38 %ifnarch s390 s390x
39 %{__make} -C netdump
40 %endif
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 %ifnarch s390 s390x
48 %{__make} -C netdump install \
49         DESTDIR=$RPM_BUILD_ROOT
50 %endif
51
52 %ifarch s390 s390x
53 # We do not need these files for s390 and s390x
54 rm -f $RPM_BUILD_ROOT/etc/sysconfig/dump \
55         $RPM_BUILD_ROOT/sbin/lkcd \
56         $RPM_BUILD_ROOT/sbin/lkcd_config \
57 $RPM_BUILD_ROOT%{_prefix}/man/man1/lkcd_config.1*
58 %endif
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc README*
This page took 0.071099 seconds and 3 git commands to generate.