2006-12-20 12:32:29 +01:00
|
|
|
#
|
2011-05-17 15:25:00 +02:00
|
|
|
# spec file for package kexec-tools
|
2006-12-20 12:32:29 +01:00
|
|
|
#
|
2014-01-06 10:06:17 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-20 12:32:29 +01:00
|
|
|
#
|
2008-10-09 19:20:27 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-17 09:57:54 +02:00
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
Name: kexec-tools
|
2007-07-16 18:06:43 +02:00
|
|
|
%ifarch ppc
|
2011-12-07 20:27:53 +01:00
|
|
|
BuildRequires: gcc-64bit
|
|
|
|
BuildRequires: glibc-devel-64bit
|
2007-07-16 18:06:43 +02:00
|
|
|
%endif
|
2008-08-18 18:49:11 +02:00
|
|
|
Requires: perl-Bootloader
|
2014-07-23 00:19:36 +02:00
|
|
|
PreReq: %fillup_prereq
|
2006-12-20 12:32:29 +01:00
|
|
|
Summary: Tools for fast kernel loading
|
2012-05-17 09:57:54 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Kernel
|
2014-02-06 00:15:44 +01:00
|
|
|
Version: 2.0.5
|
2011-12-07 20:27:53 +01:00
|
|
|
Release: 0
|
2014-02-06 00:15:44 +01:00
|
|
|
Source: ftp://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
|
2008-08-18 18:49:11 +02:00
|
|
|
Source1: kexec-bootloader
|
|
|
|
Source2: kexec-bootloader.8.txt
|
2014-02-21 18:41:59 +01:00
|
|
|
Source3: kexec-load.service
|
2014-02-06 00:15:44 +01:00
|
|
|
Source4: %{name}-rpmlintrc
|
2012-10-12 02:06:56 +02:00
|
|
|
Patch1: %{name}-xen-static.patch
|
2014-01-11 14:04:44 +01:00
|
|
|
Patch2: %{name}-xen-balloon-up.patch
|
|
|
|
Patch3: %{name}-disable-test.patch
|
2014-02-06 00:15:44 +01:00
|
|
|
Patch4: %{name}-enable-aarch64.patch
|
|
|
|
Patch5: %{name}-xen-e820-redefinition.patch
|
|
|
|
Patch6: %{name}-enable-aarch64-fixup.patch
|
|
|
|
Patch7: %{name}-i386-bzimage_efi.patch
|
2014-03-27 16:19:42 +01:00
|
|
|
Patch8: %{name}-ppc64-purgatory-disabling-gcc-stack-protection.patch
|
|
|
|
Patch9: %{name}-zero-efi-info.patch
|
2014-05-02 03:24:00 +02:00
|
|
|
Patch10: %{name}-fs2dt-fix-endianess-issue-with-initrd-base-and-size.patch
|
|
|
|
Patch11: %{name}-ppc64-purgatory-device-tree-values-should-be-read-stored-in-big-endian.patch
|
2014-07-26 20:56:01 +02:00
|
|
|
Patch12: %{name}-kdump-fix-elf-header-endianess.patch
|
|
|
|
|
2011-05-17 12:23:28 +02:00
|
|
|
Url: ftp://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.bz2
|
2006-12-20 12:32:29 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-01-19 02:08:14 +01:00
|
|
|
#!BuildIgnore: fop
|
2011-12-07 20:27:53 +01:00
|
|
|
BuildRequires: asciidoc
|
2014-02-21 18:41:59 +01:00
|
|
|
BuildRequires: automake
|
2011-12-07 20:27:53 +01:00
|
|
|
BuildRequires: libxslt
|
2014-02-21 18:41:59 +01:00
|
|
|
BuildRequires: zlib-devel
|
2014-01-06 10:06:17 +01:00
|
|
|
%ifarch x86_64
|
2008-11-25 15:46:57 +01:00
|
|
|
BuildRequires: xen-devel
|
|
|
|
%endif
|
2014-02-06 00:15:44 +01:00
|
|
|
ExclusiveArch: ppc64le aarch64 %ix86 x86_64 ia64 ppc ppc64 s390 s390x %arm sh mips mipsel
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%description
|
2007-06-11 18:14:03 +02:00
|
|
|
Kexec is a user space utility for loading another kernel and asking the
|
|
|
|
currently running kernel to do something with it. A currently running
|
2014-02-06 00:27:48 +01:00
|
|
|
kernel may be asked to start the loaded kernel on reboot, or to start
|
2007-06-11 18:14:03 +02:00
|
|
|
the loaded kernel after it panics.
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%prep
|
2008-07-21 22:46:56 +02:00
|
|
|
%setup -q -n kexec-tools-%{version}
|
2008-10-08 18:20:30 +02:00
|
|
|
%patch1 -p1
|
2010-09-21 12:21:42 +02:00
|
|
|
%patch2 -p1
|
2011-07-11 08:32:40 +02:00
|
|
|
%patch3 -p1
|
2014-02-03 22:34:36 +01:00
|
|
|
%patch4 -p1
|
2014-02-06 00:15:44 +01:00
|
|
|
%patch5 -p1
|
2014-02-04 16:57:09 +01:00
|
|
|
%patch6 -p1
|
2014-02-06 00:15:44 +01:00
|
|
|
%patch7 -p1
|
2014-03-27 16:19:42 +01:00
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2014-05-02 03:24:00 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
2014-07-26 20:56:01 +02:00
|
|
|
%patch12 -p1
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%build
|
2009-07-13 18:09:12 +02:00
|
|
|
# disable as-needed
|
|
|
|
export SUSE_ASNEEDED=0
|
2007-07-16 18:06:43 +02:00
|
|
|
%{?suse_update_config -f}
|
2014-03-27 16:19:42 +01:00
|
|
|
%ifarch ia64 ppc64le
|
2008-02-21 01:55:25 +01:00
|
|
|
RPM_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-fstack-protector//')
|
|
|
|
%endif
|
2011-05-17 12:23:28 +02:00
|
|
|
autoreconf -f
|
2008-07-21 22:46:56 +02:00
|
|
|
CFLAGS=$RPM_OPT_FLAGS BUILD_CFLAGS=$RPM_OPT_FLAGS \
|
2007-07-16 18:06:43 +02:00
|
|
|
%ifarch ppc
|
2014-02-06 00:15:44 +01:00
|
|
|
%configure --host=powerpc64-suse-linux --build=powerpc64-suse-linux
|
|
|
|
%else
|
|
|
|
%configure
|
2007-07-16 18:06:43 +02:00
|
|
|
%endif
|
2008-07-14 18:20:51 +02:00
|
|
|
make
|
2014-02-21 18:41:59 +01:00
|
|
|
a2x -D . -d manpage -f manpage %{S:2}
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%install
|
2012-05-17 09:57:54 +02:00
|
|
|
%makeinstall
|
2006-12-20 12:32:29 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
install -c -m 0644 kexec/kexec.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
2008-08-18 18:49:11 +02:00
|
|
|
install -c -m 0644 kexec-bootloader.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
2014-02-21 18:41:59 +01:00
|
|
|
install -m 0755 %{S:1} $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
install -m644 %{S:3} $RPM_BUILD_ROOT%{_unitdir}
|
2012-05-17 09:57:54 +02:00
|
|
|
#UsrMerge
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -s %{_sbindir}/kdump $RPM_BUILD_ROOT/sbin
|
|
|
|
ln -s %{_sbindir}/kexec $RPM_BUILD_ROOT/sbin
|
|
|
|
#EndUsrMerge
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
2008-10-09 19:20:27 +02:00
|
|
|
|
2008-08-18 18:49:11 +02:00
|
|
|
%post
|
2014-02-21 18:41:59 +01:00
|
|
|
%service_add_post kexec-load.service
|
2008-08-18 18:49:11 +02:00
|
|
|
|
|
|
|
%postun
|
2014-02-21 18:41:59 +01:00
|
|
|
%service_del_postun kexec-load.service
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre kexec-load.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun kexec-load.service
|
2008-08-18 18:49:11 +02:00
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2008-07-14 18:20:51 +02:00
|
|
|
%doc AUTHORS COPYING News TODO doc
|
2006-12-20 12:32:29 +01:00
|
|
|
%doc %{_mandir}/man*/*
|
2012-05-17 09:57:54 +02:00
|
|
|
#UsrMerge
|
2006-12-20 12:32:29 +01:00
|
|
|
/sbin/*
|
2012-05-17 09:57:54 +02:00
|
|
|
#EndUsrMerge
|
2013-11-25 19:09:49 +01:00
|
|
|
%{_sbindir}/*
|
2008-08-18 18:49:11 +02:00
|
|
|
%{_sbindir}/kexec-bootloader
|
2014-02-21 18:41:59 +01:00
|
|
|
%{_unitdir}/kexec-load.service
|
2007-11-30 13:26:29 +01:00
|
|
|
|
2007-03-10 23:59:41 +01:00
|
|
|
%changelog
|