OBS User unknown 2008-08-28 00:05:54 +00:00 committed by Git OBS Bridge
parent 84da4f6050
commit 5eb6be0c3b
2 changed files with 31 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 27 11:59:55 CEST 2008 - bwalle@suse.de
- only install and build /etc/init.d/kexec with openSUSE 11.1 /
SLES 11 and later
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 16 11:04:55 CEST 2008 - bwalle@suse.de Sat Aug 16 11:04:55 CEST 2008 - bwalle@suse.de
@ -24,8 +30,8 @@ Mon Jul 14 17:32:17 CEST 2008 - bwalle@suse.de
o implement support for /sys/firmware/memmap interface o implement support for /sys/firmware/memmap interface
o Allow 32 bit kexec binary to boot kdump kernel on ppc64 o Allow 32 bit kexec binary to boot kdump kernel on ppc64
architecture architecture
o kexec/crashdump.c: remove file descriptor leaks; make kdump_info o kexec/crashdump.c: remove file descriptor leaks; make
argument to get_vmcoreinfo() const kdump_info argument to get_vmcoreinfo() const
o Fix implicit declaration of inb/outb o Fix implicit declaration of inb/outb
o EDD implementation o EDD implementation
o Specify the arch on kexec_unload o Specify the arch on kexec_unload

View File

@ -29,14 +29,17 @@ PreReq: %insserv_prereq %fillup_prereq
AutoReqProv: on AutoReqProv: on
Summary: Tools for fast kernel loading Summary: Tools for fast kernel loading
Version: 2.0.0 Version: 2.0.0
Release: 14 Release: 24
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source1: kexec-bootloader Source1: kexec-bootloader
Source2: kexec-bootloader.8.txt Source2: kexec-bootloader.8.txt
Source3: kexec.init Source3: kexec.init
Url: http://ftp.kernel.org/pub/linux/kernel/people/horms/kexec-tools/ Url: http://ftp.kernel.org/pub/linux/kernel/people/horms/kexec-tools/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: asciidoc zlib-devel BuildRequires: zlib-devel
%if 0%{?suse_version} >= 1110
BuildRequires: asciidoc
%endif
%description %description
Kexec is a user space utility for loading another kernel and asking the Kexec is a user space utility for loading another kernel and asking the
@ -77,41 +80,55 @@ make
cp %{S:1} . cp %{S:1} .
cp %{S:2} . cp %{S:2} .
cp %{S:3} . cp %{S:3} .
%if 0%{?suse_version} >= 1110
a2x -d manpage -f manpage kexec-bootloader.8.txt a2x -d manpage -f manpage kexec-bootloader.8.txt
%endif
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 0644 kexec/kexec.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -c -m 0644 kexec/kexec.8 $RPM_BUILD_ROOT%{_mandir}/man8
%if 0%{?suse_version} >= 1110
install -c -m 0644 kexec-bootloader.8 $RPM_BUILD_ROOT%{_mandir}/man8 install -c -m 0644 kexec-bootloader.8 $RPM_BUILD_ROOT%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_sbindir}
install -m 0755 kexec-bootloader $RPM_BUILD_ROOT%{_sbindir} install -m 0755 kexec-bootloader $RPM_BUILD_ROOT%{_sbindir}
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d mkdir -p ${RPM_BUILD_ROOT}/etc/init.d
install -m 0755 kexec.init ${RPM_BUILD_ROOT}/etc/init.d/kexec install -m 0755 kexec.init ${RPM_BUILD_ROOT}/etc/init.d/kexec
%endif
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} >= 1110
%post %post
%{fillup_and_insserv -n kexec kexec} %{fillup_and_insserv -n kexec kexec}
%endif
#
#%preun #%preun
# no stop on removal because the "rckexec stop" actually loads kernel
%postun %postun
%if 0%{?suse_version} >= 1110
%insserv_cleanup %insserv_cleanup
%endif
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS COPYING News TODO doc %doc AUTHORS COPYING News TODO doc
%doc %{_mandir}/man*/* %doc %{_mandir}/man*/*
/sbin/* /sbin/*
%if 0%{?suse_version} >= 1110
%{_sbindir}/kexec-bootloader %{_sbindir}/kexec-bootloader
/etc/init.d/kexec
%config /etc/init.d/kexec %config /etc/init.d/kexec
%endif
%ifarch %ix86 x86_64 %ifarch %ix86 x86_64
/%_lib/kexec-tools* /%_lib/kexec-tools*
%endif %endif
%changelog %changelog
* Wed Aug 27 2008 bwalle@suse.de
- only install and build /etc/init.d/kexec with openSUSE 11.1 /
SLES 11 and later
* Sat Aug 16 2008 bwalle@suse.de * Sat Aug 16 2008 bwalle@suse.de
- mark /etc/init.d/kexec as %%config - mark /etc/init.d/kexec as %%config
- remove (empty) %%preun - remove (empty) %%preun
@ -127,8 +144,8 @@ install -m 0755 kexec.init ${RPM_BUILD_ROOT}/etc/init.d/kexec
o implement support for /sys/firmware/memmap interface o implement support for /sys/firmware/memmap interface
o Allow 32 bit kexec binary to boot kdump kernel on ppc64 o Allow 32 bit kexec binary to boot kdump kernel on ppc64
architecture architecture
o kexec/crashdump.c: remove file descriptor leaks; make kdump_info o kexec/crashdump.c: remove file descriptor leaks; make
argument to get_vmcoreinfo() const kdump_info argument to get_vmcoreinfo() const
o Fix implicit declaration of inb/outb o Fix implicit declaration of inb/outb
o EDD implementation o EDD implementation
o Specify the arch on kexec_unload o Specify the arch on kexec_unload