- New kdump patch to support s390 arch + various fixes
- Include kdump in x86_64 builds
This commit is contained in:
parent
7b74018168
commit
eac161194a
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
Name: kexec-tools
|
Name: kexec-tools
|
||||||
Version: 1.101
|
Version: 1.101
|
||||||
Release: 6
|
Release: 7
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: The kexec/kdump userspace component.
|
Summary: The kexec/kdump userspace component.
|
||||||
|
@ -10,13 +10,6 @@ Source1: kdump.init
|
||||||
Source2: kdump.sysconfig
|
Source2: kdump.sysconfig
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||||
|
|
||||||
%define kdump 0
|
|
||||||
|
|
||||||
%ifarch %{ix86}
|
|
||||||
%define kdump 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Patches 0 through 100 are meant for x86 kexec-tools enablement
|
# Patches 0 through 100 are meant for x86 kexec-tools enablement
|
||||||
#
|
#
|
||||||
|
@ -48,10 +41,8 @@ rm -f ../kexec-tools-1.101.spec
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
|
|
||||||
%if %{kdump}
|
|
||||||
cp $RPM_SOURCE_DIR/kdump.init .
|
cp $RPM_SOURCE_DIR/kdump.init .
|
||||||
cp $RPM_SOURCE_DIR/kdump.sysconfig .
|
cp $RPM_SOURCE_DIR/kdump.sysconfig .
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
|
@ -63,18 +54,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
mkdir -p -m755 $RPM_BUILD_ROOT/etc/sysconfig
|
mkdir -p -m755 $RPM_BUILD_ROOT/etc/sysconfig
|
||||||
%if %{kdump}
|
|
||||||
install -m 644 kdump.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/kdump
|
install -m 644 kdump.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/kdump
|
||||||
install -m 755 kdump.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kdump
|
install -m 755 kdump.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kdump
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if %{kdump}
|
|
||||||
chkconfig --add kdump
|
chkconfig --add kdump
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
|
||||||
|
@ -92,11 +79,9 @@ exit 0
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_sbindir}/kexec
|
%{_sbindir}/kexec
|
||||||
%if %{kdump}
|
|
||||||
%{_sbindir}/kdump
|
%{_sbindir}/kdump
|
||||||
%config(noreplace,missingok) /etc/sysconfig/kdump
|
%config(noreplace,missingok) /etc/sysconfig/kdump
|
||||||
%config /etc/rc.d/init.d/kdump
|
%config /etc/rc.d/init.d/kdump
|
||||||
%endif
|
|
||||||
|
|
||||||
%{_libdir}/kexec-tools/kexec_test
|
%{_libdir}/kexec-tools/kexec_test
|
||||||
%doc News
|
%doc News
|
||||||
|
@ -104,6 +89,9 @@ exit 0
|
||||||
%doc TODO
|
%doc TODO
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 01 2006 Thomas Graf <tgraf@redhat.com>
|
||||||
|
- New kdump patch to support s390 arch + various fixes
|
||||||
|
- Include kdump in x86_64 builds
|
||||||
* Mon Jan 30 2006 Thomas Graf <tgraf@redhat.com>
|
* Mon Jan 30 2006 Thomas Graf <tgraf@redhat.com>
|
||||||
- New kdump patch to support x86_64 userspace
|
- New kdump patch to support x86_64 userspace
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue