kexec-tools/kexec-tools.spec

125 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kexec-tools
#
# Copyright (c) 2022 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: kexec-tools
Version: 2.0.25
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
Release: 0
Summary: Tools for loading replacement kernels into memory
License: GPL-2.0-or-later
Group: System/Kernel
Accepting request 973259 from home:dirkmueller:Factory - update to 2.0.24: * arm64: fix static data relocations in machine_apply_elf_rel() * kexec/elf: assign one to align if sh_addralign equals zero * arm64/crashdump-arm64: explicit type conversion to suppress compiler warning * arm64/kexec-arm64: add support for R_AARCH64_MOVW_UABS_G* rela * arm64/kexec-arm64: use enum to organize the reloc type * arm64/kexec-arm64: add support for R_AARCH64_LDST128_ABS_LO12_NC rela * kexec-tools: fix leak FILE pointer. * purgatory: do not enable vectorization automatically for purgatory compiling * kexec-tools: Determine if the image is lzma commpressed * util_lib/elf_info: harden parsing of printk buffer * github: run apt-get update before installing packages * kexec-xen: Allow xen_kexec_exec() to return in case of Live Update * kexec-tools: print error if kexec_file_load fails * kexec-tools: mips: Concatenate --reuse-cmdline and --append * kexec-tools: mips: Add some debug info * arm64: fix PAGE_OFFSET calc for flipped mm * arm64: read VA_BITS from kcore for 52-bits VA kernel * arm64/crashdump: unify routine to get page_offset * arm64: make phys_offset signed * s390: add support for --reuse-cmdline * use slurp_proc_file() in get_command_line() * add slurp_proc_file() * s390: use KEXEC_ALL_OPTIONS * s390: add variable command line size * arm64: support more than one crash kernel regions * s390: handle R_390_PLT32DBL reloc entries in machine_apply_elf_rel() * arm64/crashdump: deduce paddr of _text based on kernel code size - drop kexec-tools-print-error-if-kexec_file_load-fails.patch, kexec-tools-remove-duplicate-ramdisk-definition.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/973259 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=143
2022-06-07 11:18:54 +02:00
URL: https://projects.horms.net/projects/kexec/
Source: https://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
Accepting request 973259 from home:dirkmueller:Factory - update to 2.0.24: * arm64: fix static data relocations in machine_apply_elf_rel() * kexec/elf: assign one to align if sh_addralign equals zero * arm64/crashdump-arm64: explicit type conversion to suppress compiler warning * arm64/kexec-arm64: add support for R_AARCH64_MOVW_UABS_G* rela * arm64/kexec-arm64: use enum to organize the reloc type * arm64/kexec-arm64: add support for R_AARCH64_LDST128_ABS_LO12_NC rela * kexec-tools: fix leak FILE pointer. * purgatory: do not enable vectorization automatically for purgatory compiling * kexec-tools: Determine if the image is lzma commpressed * util_lib/elf_info: harden parsing of printk buffer * github: run apt-get update before installing packages * kexec-xen: Allow xen_kexec_exec() to return in case of Live Update * kexec-tools: print error if kexec_file_load fails * kexec-tools: mips: Concatenate --reuse-cmdline and --append * kexec-tools: mips: Add some debug info * arm64: fix PAGE_OFFSET calc for flipped mm * arm64: read VA_BITS from kcore for 52-bits VA kernel * arm64/crashdump: unify routine to get page_offset * arm64: make phys_offset signed * s390: add support for --reuse-cmdline * use slurp_proc_file() in get_command_line() * add slurp_proc_file() * s390: use KEXEC_ALL_OPTIONS * s390: add variable command line size * arm64: support more than one crash kernel regions * s390: handle R_390_PLT32DBL reloc entries in machine_apply_elf_rel() * arm64/crashdump: deduce paddr of _text based on kernel code size - drop kexec-tools-print-error-if-kexec_file_load-fails.patch, kexec-tools-remove-duplicate-ramdisk-definition.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/973259 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=143
2022-06-07 11:18:54 +02:00
Source100: https://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.sign
Source101: kexec-tools.keyring
Source1: kexec-bootloader
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
Source2: kexec-bootloader.8
Source3: kexec-load.service
Source4: %{name}-rpmlintrc
Patch3: %{name}-disable-test.patch
Patch4: %{name}-vmcoreinfo-in-xen.patch
Patch10: %{name}-SYS_getrandom.patch
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
BuildRequires: autoconf
BuildRequires: automake
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
BuildRequires: systemd-rpm-macros
BuildRequires: zlib-devel
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
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
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
%{?systemd_requires}
%ifarch x86_64
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
BuildRequires: pkgconfig
BuildRequires: xen-devel
%endif
%description
Kexec is a user space utility for loading another kernel and asking the
currently running kernel to do something with it. A currently running
kernel may be asked to start the loaded kernel on reboot, or to start
the loaded kernel after it panics.
%prep
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
%setup -q
%autopatch -p1
%build
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
autoreconf -fvi
export CFLAGS="%{optflags} -fPIC"
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
export BUILD_CFLAGS="%{optflags}"
export LDFLAGS="-pie"
%configure
Accepting request 973259 from home:dirkmueller:Factory - update to 2.0.24: * arm64: fix static data relocations in machine_apply_elf_rel() * kexec/elf: assign one to align if sh_addralign equals zero * arm64/crashdump-arm64: explicit type conversion to suppress compiler warning * arm64/kexec-arm64: add support for R_AARCH64_MOVW_UABS_G* rela * arm64/kexec-arm64: use enum to organize the reloc type * arm64/kexec-arm64: add support for R_AARCH64_LDST128_ABS_LO12_NC rela * kexec-tools: fix leak FILE pointer. * purgatory: do not enable vectorization automatically for purgatory compiling * kexec-tools: Determine if the image is lzma commpressed * util_lib/elf_info: harden parsing of printk buffer * github: run apt-get update before installing packages * kexec-xen: Allow xen_kexec_exec() to return in case of Live Update * kexec-tools: print error if kexec_file_load fails * kexec-tools: mips: Concatenate --reuse-cmdline and --append * kexec-tools: mips: Add some debug info * arm64: fix PAGE_OFFSET calc for flipped mm * arm64: read VA_BITS from kcore for 52-bits VA kernel * arm64/crashdump: unify routine to get page_offset * arm64: make phys_offset signed * s390: add support for --reuse-cmdline * use slurp_proc_file() in get_command_line() * add slurp_proc_file() * s390: use KEXEC_ALL_OPTIONS * s390: add variable command line size * arm64: support more than one crash kernel regions * s390: handle R_390_PLT32DBL reloc entries in machine_apply_elf_rel() * arm64/crashdump: deduce paddr of _text based on kernel code size - drop kexec-tools-print-error-if-kexec_file_load-fails.patch, kexec-tools-remove-duplicate-ramdisk-definition.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/973259 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=143
2022-06-07 11:18:54 +02:00
%make_build
%install
%make_install
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
install -c -m 0644 %{SOURCE2} %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/%{_sbindir}
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
install -m 0755 %{SOURCE1} %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_unitdir}
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
install -m644 %{SOURCE3} %{buildroot}/%{_unitdir}
ln -s service %{buildroot}%{_sbindir}/rckexec-load
%if !0%{?usrmerged}
mkdir -p %{buildroot}/sbin
ln -s %{_sbindir}/kexec %{buildroot}/sbin
%endif
%post
%service_add_post kexec-load.service
%{?regenerate_initrd_post}
%postun
%service_del_postun kexec-load.service
%{?regenerate_initrd_post}
%pre
%service_add_pre kexec-load.service
%preun
%service_del_preun kexec-load.service
%posttrans
%{?regenerate_initrd_posttrans}
# 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)
Accepting request 973259 from home:dirkmueller:Factory - update to 2.0.24: * arm64: fix static data relocations in machine_apply_elf_rel() * kexec/elf: assign one to align if sh_addralign equals zero * arm64/crashdump-arm64: explicit type conversion to suppress compiler warning * arm64/kexec-arm64: add support for R_AARCH64_MOVW_UABS_G* rela * arm64/kexec-arm64: use enum to organize the reloc type * arm64/kexec-arm64: add support for R_AARCH64_LDST128_ABS_LO12_NC rela * kexec-tools: fix leak FILE pointer. * purgatory: do not enable vectorization automatically for purgatory compiling * kexec-tools: Determine if the image is lzma commpressed * util_lib/elf_info: harden parsing of printk buffer * github: run apt-get update before installing packages * kexec-xen: Allow xen_kexec_exec() to return in case of Live Update * kexec-tools: print error if kexec_file_load fails * kexec-tools: mips: Concatenate --reuse-cmdline and --append * kexec-tools: mips: Add some debug info * arm64: fix PAGE_OFFSET calc for flipped mm * arm64: read VA_BITS from kcore for 52-bits VA kernel * arm64/crashdump: unify routine to get page_offset * arm64: make phys_offset signed * s390: add support for --reuse-cmdline * use slurp_proc_file() in get_command_line() * add slurp_proc_file() * s390: use KEXEC_ALL_OPTIONS * s390: add variable command line size * arm64: support more than one crash kernel regions * s390: handle R_390_PLT32DBL reloc entries in machine_apply_elf_rel() * arm64/crashdump: deduce paddr of _text based on kernel code size - drop kexec-tools-print-error-if-kexec_file_load-fails.patch, kexec-tools-remove-duplicate-ramdisk-definition.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/973259 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=143
2022-06-07 11:18:54 +02:00
%define _defaultlicensedir %{_defaultdocdir}
%endif
%endif
# End of compatibility cruft
%files
%license COPYING
%doc AUTHORS News TODO doc
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
%{_mandir}/man*/*
%if !0%{?usrmerged}
/sbin/kexec
%endif
Accepting request 567693 from home:scarabeus_iv:branches:Kernel:kdump - Create compat link for rckexec-loader systemd service - Convert the asciidoc file to normal man in order to drop asciidoc dep * python2 only obsoletion and upstream has only raw manpages too - Properly state all post/postun dependencies (systemd, suse-module-tools) - There is no reason for exclusive arch if we state all archs - Bump to version 2.0.16 Changelog: http://git.kernel.org/cgit/utils/kernel/kexec/kexec-tools.git/log/?id=refs/tags/v2.0.14..v2.0.16 - Remove support for older products to trivialize spec file - Make sure to not pull python2 via asciidoc - Drop merged patch 0001-kexec-tools-2.0.14.git.patch - Drop all patches from upstream git: * 0002-ppc64-Reduce-number-of-ELF-LOAD-segments.patch * 0003-kexec-Increase-the-upper-limit-for-RAM-segments.patch * 0004-alpha-add-missing-__NR_kexec_load-definition.patch * 0005-kexec-implemented-XEN-KEXEC-STATUS-to-determine-if-a.patch * 0006-kexec-Remove-redundant-space-from-help-message.patch * 0007-purgatory-Add-purgatory.map-and-purgatory.ro.sym-to-.patch * 0008-kexec-Add-option-to-get-crash-kernel-region-size.patch * 0009-crashdump-arm-Add-get_crash_kernel_load_range-functi.patch * 0010-crashdump-arm64-Add-get_crash_kernel_load_range-func.patch * 0011-crashdump-cris-Add-get_crash_kernel_load_range-funct.patch * 0012-crashdump-ia64-Add-get_crash_kernel_load_range-funct.patch * 0013-crashdump-m68k-Add-get_crash_kernel_load_range-funct.patch * 0014-crashdump-mips-Add-get_crash_kernel_load_range-funct.patch * 0015-crashdump-ppc-Add-get_crash_kernel_load_range-functi.patch * 0016-crashdump-ppc64-Add-get_crash_kernel_load_range-func.patch * 0017-crashdump-s390-Add-get_crash_kernel_load_range-funct.patch * 0018-crashdump-sh-Add-get_crash_kernel_load_range-functio.patch * 0019-gitignore-add-two-generated-files-in-purgatory.patch * 0020-Only-print-debug-message-when-failed-to-serach-for-k.patch OBS-URL: https://build.opensuse.org/request/show/567693 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kexec-tools?expand=0&rev=91
2018-01-26 15:13:02 +01:00
%{_sbindir}/rckexec-load
%{_sbindir}/kexec
%{_sbindir}/kexec-bootloader
%{_sbindir}/vmcore-dmesg
%{_unitdir}/kexec-load.service
%changelog