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
|
|
|
#
|
2018-01-10 18:58:57 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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
|
2018-11-01 16:48:51 +01:00
|
|
|
Version: 2.0.18
|
2018-01-26 15:13:02 +01:00
|
|
|
Release: 0
|
2017-10-17 23:22:39 +02:00
|
|
|
Summary: Tools for loading replacement kernels into memory
|
2018-09-21 14:20:06 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-05-17 09:57:54 +02:00
|
|
|
Group: System/Kernel
|
2018-11-01 21:59:27 +01:00
|
|
|
Source: https://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
|
2008-08-18 18:49:11 +02:00
|
|
|
Source1: kexec-bootloader
|
2018-01-26 15:13:02 +01:00
|
|
|
Source2: kexec-bootloader.8
|
2014-02-21 18:41:59 +01:00
|
|
|
Source3: kexec-load.service
|
2014-02-06 00:15:44 +01:00
|
|
|
Source4: %{name}-rpmlintrc
|
2014-01-11 14:04:44 +01:00
|
|
|
Patch2: %{name}-xen-balloon-up.patch
|
|
|
|
Patch3: %{name}-disable-test.patch
|
2018-04-05 13:51:19 +02:00
|
|
|
Patch14: %{name}-vmcoreinfo-in-xen.patch
|
2018-01-26 15:13:02 +01:00
|
|
|
BuildRequires: autoconf
|
2014-02-21 18:41:59 +01:00
|
|
|
BuildRequires: automake
|
2018-01-26 15:13:02 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2014-02-21 18:41:59 +01:00
|
|
|
BuildRequires: zlib-devel
|
2018-01-26 15:13:02 +01:00
|
|
|
#!BuildIgnore: fop
|
|
|
|
#!BuildIgnore: gcc-PIE
|
|
|
|
Requires: perl-Bootloader
|
|
|
|
Requires(post): suse-module-tools
|
|
|
|
Requires(postun): suse-module-tools
|
|
|
|
%{?systemd_requires}
|
2014-01-06 10:06:17 +01:00
|
|
|
%ifarch x86_64
|
2018-01-26 15:13:02 +01:00
|
|
|
BuildRequires: pkgconfig
|
2008-11-25 15:46:57 +01:00
|
|
|
BuildRequires: xen-devel
|
|
|
|
%endif
|
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
|
2018-01-26 15:13:02 +01:00
|
|
|
%setup -q
|
2010-09-21 12:21:42 +02:00
|
|
|
%patch2 -p1
|
2011-07-11 08:32:40 +02:00
|
|
|
%patch3 -p1
|
2018-04-05 13:51:19 +02:00
|
|
|
%patch14 -p1
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%build
|
2018-01-26 15:13:02 +01:00
|
|
|
autoreconf -fvi
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export BUILD_CFLAGS="%{optflags}"
|
2014-02-06 00:15:44 +01:00
|
|
|
%configure
|
2018-01-26 15:13:02 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-20 12:32:29 +01:00
|
|
|
|
|
|
|
%install
|
2017-10-17 23:22:39 +02:00
|
|
|
%make_install
|
2018-01-26 15:13:02 +01:00
|
|
|
install -c -m 0644 %{SOURCE2} %{buildroot}/%{_mandir}/man8
|
2017-10-17 23:22:39 +02:00
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
2018-01-26 15:13:02 +01:00
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}/%{_sbindir}
|
2017-10-17 23:22:39 +02:00
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
2018-01-26 15:13:02 +01:00
|
|
|
install -m644 %{SOURCE3} %{buildroot}/%{_unitdir}
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rckexec-load
|
2012-05-17 09:57:54 +02:00
|
|
|
#UsrMerge
|
2017-10-17 23:22:39 +02:00
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/kexec %{buildroot}/sbin
|
2012-05-17 09:57:54 +02:00
|
|
|
#EndUsrMerge
|
2006-12-20 12:32:29 +01:00
|
|
|
|
2008-08-18 18:49:11 +02:00
|
|
|
%post
|
2014-02-21 18:41:59 +01:00
|
|
|
%service_add_post kexec-load.service
|
2015-03-30 20:23:51 +02:00
|
|
|
%{?regenerate_initrd_post}
|
2008-08-18 18:49:11 +02:00
|
|
|
|
|
|
|
%postun
|
2014-02-21 18:41:59 +01:00
|
|
|
%service_del_postun kexec-load.service
|
2015-12-15 17:26:27 +01:00
|
|
|
%{?regenerate_initrd_post}
|
2014-02-21 18:41:59 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre kexec-load.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun kexec-load.service
|
2008-08-18 18:49:11 +02:00
|
|
|
|
2015-03-30 20:23:51 +02:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
%files
|
2008-07-14 18:20:51 +02:00
|
|
|
%doc AUTHORS COPYING News TODO doc
|
2018-01-26 15:13:02 +01:00
|
|
|
%{_mandir}/man*/*
|
2012-05-17 09:57:54 +02:00
|
|
|
#UsrMerge
|
2016-06-10 22:07:09 +02:00
|
|
|
/sbin/kexec
|
2012-05-17 09:57:54 +02:00
|
|
|
#EndUsrMerge
|
2018-01-26 15:13:02 +01:00
|
|
|
%{_sbindir}/rckexec-load
|
2016-06-10 22:07:09 +02:00
|
|
|
%{_sbindir}/kexec
|
2008-08-18 18:49:11 +02:00
|
|
|
%{_sbindir}/kexec-bootloader
|
2016-06-10 22:07:09 +02:00
|
|
|
%{_sbindir}/vmcore-dmesg
|
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
|