2006-12-20 11:32:29 +00:00
|
|
|
#
|
2011-05-17 13:25:00 +00:00
|
|
|
# spec file for package kexec-tools
|
2006-12-20 11:32:29 +00:00
|
|
|
#
|
2020-01-13 17:42:59 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-20 11:32:29 +00:00
|
|
|
#
|
2008-10-09 17:20:27 +00: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 15:43:41 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-20 11:32:29 +00:00
|
|
|
#
|
|
|
|
|
2012-05-17 07:57:54 +00:00
|
|
|
|
2006-12-20 11:32:29 +00:00
|
|
|
Name: kexec-tools
|
2019-12-18 13:18:08 +00:00
|
|
|
Version: 2.0.20
|
2018-01-26 14:13:02 +00:00
|
|
|
Release: 0
|
2017-10-17 21:22:39 +00:00
|
|
|
Summary: Tools for loading replacement kernels into memory
|
2018-09-21 12:20:06 +00:00
|
|
|
License: GPL-2.0-or-later
|
2012-05-17 07:57:54 +00:00
|
|
|
Group: System/Kernel
|
2018-11-01 20:59:27 +00:00
|
|
|
Source: https://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
|
2008-08-18 16:49:11 +00:00
|
|
|
Source1: kexec-bootloader
|
2018-01-26 14:13:02 +00:00
|
|
|
Source2: kexec-bootloader.8
|
2014-02-21 17:41:59 +00:00
|
|
|
Source3: kexec-load.service
|
2014-02-05 23:15:44 +00:00
|
|
|
Source4: %{name}-rpmlintrc
|
2014-01-11 13:04:44 +00:00
|
|
|
Patch3: %{name}-disable-test.patch
|
2019-12-18 13:18:08 +00: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 17:42:59 +00:00
|
|
|
Patch8: %{name}-build-multiboot2-for-i386.patch
|
2020-01-29 07:46:20 +00:00
|
|
|
Patch9: %{name}-video-capability.patch
|
|
|
|
Patch10: %{name}-SYS_getrandom.patch
|
2020-03-13 09:21:31 +00:00
|
|
|
Patch11: %{name}-fix-kexec_file_load-error-handling.patch
|
2020-03-13 14:29:38 +00:00
|
|
|
Patch12: %{name}-reset-getopt-before-falling-back-to-legacy.patch
|
2020-04-03 11:48:44 +00:00
|
|
|
Patch13: %{name}-s390-Reset-kernel-command-line-on-syscal.patch
|
2020-04-03 12:19:31 +00:00
|
|
|
Patch14: %{name}-Remove-duplicated-variable-declarations.patch
|
2018-01-26 14:13:02 +00:00
|
|
|
BuildRequires: autoconf
|
2014-02-21 17:41:59 +00:00
|
|
|
BuildRequires: automake
|
2018-01-26 14:13:02 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2014-02-21 17:41:59 +00:00
|
|
|
BuildRequires: zlib-devel
|
2018-01-26 14:13:02 +00:00
|
|
|
#!BuildIgnore: fop
|
|
|
|
#!BuildIgnore: gcc-PIE
|
|
|
|
Requires: perl-Bootloader
|
|
|
|
Requires(post): suse-module-tools
|
|
|
|
Requires(postun): suse-module-tools
|
|
|
|
%{?systemd_requires}
|
2014-01-06 09:06:17 +00:00
|
|
|
%ifarch x86_64
|
2018-01-26 14:13:02 +00:00
|
|
|
BuildRequires: pkgconfig
|
2008-11-25 14:46:57 +00:00
|
|
|
BuildRequires: xen-devel
|
|
|
|
%endif
|
2006-12-20 11:32:29 +00:00
|
|
|
|
|
|
|
%description
|
2007-06-11 16:14:03 +00: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-05 23:27:48 +00:00
|
|
|
kernel may be asked to start the loaded kernel on reboot, or to start
|
2007-06-11 16:14:03 +00:00
|
|
|
the loaded kernel after it panics.
|
2006-12-20 11:32:29 +00:00
|
|
|
|
|
|
|
%prep
|
2018-01-26 14:13:02 +00:00
|
|
|
%setup -q
|
2011-07-11 06:32:40 +00:00
|
|
|
%patch3 -p1
|
2019-12-18 13:18:08 +00:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2020-01-13 17:42:59 +00:00
|
|
|
%patch8 -p1
|
2020-01-29 07:46:20 +00:00
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
2020-03-13 09:21:31 +00:00
|
|
|
%patch11 -p1
|
2020-03-13 14:29:38 +00:00
|
|
|
%patch12 -p1
|
2020-04-03 11:48:44 +00:00
|
|
|
%patch13 -p1
|
2020-04-03 12:19:31 +00:00
|
|
|
%patch14 -p1
|
2006-12-20 11:32:29 +00:00
|
|
|
|
|
|
|
%build
|
2018-01-26 14:13:02 +00:00
|
|
|
autoreconf -fvi
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export BUILD_CFLAGS="%{optflags}"
|
2014-02-05 23:15:44 +00:00
|
|
|
%configure
|
2018-01-26 14:13:02 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-20 11:32:29 +00:00
|
|
|
|
|
|
|
%install
|
2017-10-17 21:22:39 +00:00
|
|
|
%make_install
|
2018-01-26 14:13:02 +00:00
|
|
|
install -c -m 0644 %{SOURCE2} %{buildroot}/%{_mandir}/man8
|
2017-10-17 21:22:39 +00:00
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
2018-01-26 14:13:02 +00:00
|
|
|
install -m 0755 %{SOURCE1} %{buildroot}/%{_sbindir}
|
2017-10-17 21:22:39 +00:00
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
2018-01-26 14:13:02 +00:00
|
|
|
install -m644 %{SOURCE3} %{buildroot}/%{_unitdir}
|
|
|
|
ln -s service %{buildroot}%{_sbindir}/rckexec-load
|
2020-11-26 12:31:31 +00:00
|
|
|
%if !0%{?usrmerged}
|
2017-10-17 21:22:39 +00:00
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
ln -s %{_sbindir}/kexec %{buildroot}/sbin
|
2020-11-26 12:31:31 +00:00
|
|
|
%endif
|
2006-12-20 11:32:29 +00:00
|
|
|
|
2008-08-18 16:49:11 +00:00
|
|
|
%post
|
2014-02-21 17:41:59 +00:00
|
|
|
%service_add_post kexec-load.service
|
2015-03-30 18:23:51 +00:00
|
|
|
%{?regenerate_initrd_post}
|
2008-08-18 16:49:11 +00:00
|
|
|
|
|
|
|
%postun
|
2014-02-21 17:41:59 +00:00
|
|
|
%service_del_postun kexec-load.service
|
2015-12-15 16:26:27 +00:00
|
|
|
%{?regenerate_initrd_post}
|
2014-02-21 17:41:59 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre kexec-load.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun kexec-load.service
|
2008-08-18 16:49:11 +00:00
|
|
|
|
2015-03-30 18:23:51 +00:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2019-06-14 11:24:50 +00: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 11:32:29 +00:00
|
|
|
%files
|
2019-05-29 15:43:41 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS News TODO doc
|
2018-01-26 14:13:02 +00:00
|
|
|
%{_mandir}/man*/*
|
2020-11-26 12:31:31 +00:00
|
|
|
%if !0%{?usrmerged}
|
2016-06-10 20:07:09 +00:00
|
|
|
/sbin/kexec
|
2020-11-26 12:31:31 +00:00
|
|
|
%endif
|
2018-01-26 14:13:02 +00:00
|
|
|
%{_sbindir}/rckexec-load
|
2016-06-10 20:07:09 +00:00
|
|
|
%{_sbindir}/kexec
|
2008-08-18 16:49:11 +00:00
|
|
|
%{_sbindir}/kexec-bootloader
|
2016-06-10 20:07:09 +00:00
|
|
|
%{_sbindir}/vmcore-dmesg
|
2014-02-21 17:41:59 +00:00
|
|
|
%{_unitdir}/kexec-load.service
|
2007-11-30 12:26:29 +00:00
|
|
|
|
2007-03-10 22:59:41 +00:00
|
|
|
%changelog
|