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
|
|
|
#
|
2020-01-13 18:42:59 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-05-29 17:43:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-20 12:32:29 +01:00
|
|
|
#
|
|
|
|
|
2012-05-17 09:57:54 +02:00
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
Name: kexec-tools
|
2019-12-18 14:18:08 +01:00
|
|
|
Version: 2.0.20
|
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
|
|
|
Patch3: %{name}-disable-test.patch
|
2019-12-18 14:18:08 +01:00
|
|
|
Patch4: %{name}-vmcoreinfo-in-xen.patch
|
|
|
|
Patch5: %{name}-add-variant-helper-functions.patch
|
|
|
|
Patch6: %{name}-arm64-kexec-allocate-memory-space-avoiding-reserved-regions.patch
|
|
|
|
Patch7: %{name}-arm64-kdump-deal-with-resource-entries-in-proc-iomem.patch
|
2020-01-13 18:42:59 +01:00
|
|
|
Patch8: %{name}-build-multiboot2-for-i386.patch
|
2020-01-29 08:46:20 +01:00
|
|
|
Patch9: %{name}-video-capability.patch
|
|
|
|
Patch10: %{name}-SYS_getrandom.patch
|
2020-03-13 10:21:31 +01:00
|
|
|
Patch11: %{name}-fix-kexec_file_load-error-handling.patch
|
2020-03-13 15:29:38 +01:00
|
|
|
Patch12: %{name}-reset-getopt-before-falling-back-to-legacy.patch
|
2020-04-03 13:48:44 +02:00
|
|
|
Patch13: %{name}-s390-Reset-kernel-command-line-on-syscal.patch
|
2020-04-03 14:19:31 +02:00
|
|
|
Patch14: %{name}-Remove-duplicated-variable-declarations.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
|
2011-07-11 08:32:40 +02:00
|
|
|
%patch3 -p1
|
2019-12-18 14:18:08 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2020-01-13 18:42:59 +01:00
|
|
|
%patch8 -p1
|
2020-01-29 08:46:20 +01:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2020-03-13 10:21:31 +01:00
|
|
|
%patch11 -p1
|
2020-03-13 15:29:38 +01:00
|
|
|
%patch12 -p1
|
2020-04-03 13:48:44 +02:00
|
|
|
%patch13 -p1
|
2020-04-03 14:19:31 +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}
|
|
|
|
|
2019-06-14 13:24:50 +02:00
|
|
|
# Compatibility cruft
|
|
|
|
# there is no %license prior to SLE12
|
|
|
|
%if %{undefined _defaultlicensedir}
|
|
|
|
%define license %doc
|
|
|
|
%else
|
|
|
|
# filesystem before SLE12 SP3 lacks /usr/share/licenses
|
|
|
|
%if 0%(test ! -d %{_defaultlicensedir} && echo 1)
|
|
|
|
%define _defaultlicensedir %_defaultdocdir
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# End of compatibility cruft
|
|
|
|
|
2006-12-20 12:32:29 +01:00
|
|
|
%files
|
2019-05-29 17:43:41 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS 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
|