- Update to 7.20

- Add support for Loongson LA64 arch
  - Add support for latest Intel CPUs (ARL/MTL)
  - Add support for latest AMD CPUs (Zen5)
  - Preliminary support for NUMA
  - Bug fixes & optimizations

OBS-URL: https://build.opensuse.org/package/show/Base:System/memtest86+?expand=0&rev=55
This commit is contained in:
Thomas Renninger 2024-11-20 09:08:19 +00:00 committed by Git OBS Bridge
commit 1c0b682234
7 changed files with 681 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

75
20_memtest86 Normal file
View File

@ -0,0 +1,75 @@
#! /bin/sh
set -e
# grub-mkconfig helper script.
# Copyright (C) 2011 Michal Ambroz <rebus@seznam.cz>
# Adapted for openSUSE by Andrey Borzenkov <arvidjaar@gmail.com>
# Adapted for EFI by Hans-Peter Jansen <hpj@urpla.net>
#
# you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the script. If not, see <http://www.gnu.org/licenses/>.
. "$pkgdatadir/grub-mkconfig_lib"
export TEXTDOMAIN=grub2
export TEXTDOMAINDIR=/usr/share/locale
CLASS="--class memtest86 --class gnu --class tools"
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
OS=Memtest
else
OS="${GRUB_DISTRIBUTOR} Memtest"
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
fi
# memtest86+ comes in two flavours, one EFI and one suitable for x86 real mode.
if [ -d /sys/firmware/efi ]; then
if [ -f /usr/lib/memtest86/memtest.efi ]; then
memtest=/usr/lib/memtest86/memtest.efi
else
#memtest.efi not found
exit 0
fi
loader='linux '
message="$(gettext_printf "Loading EFI memtest ...\n" | grub_quote)"
else
if [ -f /usr/lib/memtest86/memtest.bin ]; then
memtest=/usr/lib/memtest86/memtest.bin
else
#memtest.bin not found
exit 0
fi
loader='linux16'
message="$(gettext_printf "Loading x86 memtest ...\n" | grub_quote)"
fi
# locate the real partition
GRUB_DEVICE_BOOT=$(grub2-probe -t device "$memtest")
if grub_file_is_not_garbage "$memtest" ; then
gettext_printf "Found memtest image: %s\n" "$memtest" >&2
basename=`basename $memtest`
dirname=`dirname $memtest`
rel_dirname=`make_system_path_relative_to_its_root $dirname`
boot_device_id="$(grub_get_device_id "${GRUB_DEVICE_BOOT}")"
printf "menuentry '%s' %s \$menuentry_id_option '%s' {\n" "${OS}" "${CLASS}" "memtest-$boot_device_id"
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
echo '$message'
${loader} ${rel_dirname}/${basename}
}
EOF
fi

3
memtest86+-7.00.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a8ae6f6628ee8ea536b6504d586b00642d2f76a718cc4aac48965c51356397b
size 244385

3
memtest86+-7.20.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8bad4b5788bc28e4dd1db78c9069bd0c65a4a6baf16409ab537c795bb04578b3
size 269027

488
memtest86+.changes Normal file
View File

@ -0,0 +1,488 @@
-------------------------------------------------------------------
Sat Nov 16 09:57:55 UTC 2024 - ecsos <ecsos@opensuse.org>
- Update to 7.20
- Add support for Loongson LA64 arch
- Add support for latest Intel CPUs (ARL/MTL)
- Add support for latest AMD CPUs (Zen5)
- Preliminary support for NUMA
- Bug fixes & optimizations
-------------------------------------------------------------------
Mon Mar 4 14:56:40 UTC 2024 - Giacomo Comes <gcomes.obs@gmail.com>
- add source 20_memtest86
* replace similar file from package grub2
- don't install files in /boot. The OS needs to stay in /usr
-------------------------------------------------------------------
Mon Jan 15 10:58:15 UTC 2024 - Lubos Kocman <lubos.kocman@suse.com>
- Change spec license to GPL-2.0-only
* Outcome of legal review, requested by SUSE legal team-
-------------------------------------------------------------------
Mon Jan 8 09:41:12 UTC 2024 - ecsos <ecsos@opensuse.org>
- Update to 7.00
- IMC polling for live RAM settings
- Preliminary support for ECC polling
- Add support for MMIO UART
- Add debugging options
- Bug fixes & optimizations
-------------------------------------------------------------------
Sat May 13 10:30:43 UTC 2023 - ecsos <ecsos@opensuse.org>
- Revert change from Mon Mar 13, as this prevents the use of memtest
and memtest is no longer displayed in the boot menu.
-------------------------------------------------------------------
Sat May 13 10:08:09 UTC 2023 - ecsos <ecsos@opensuse.org>
- Update to 6.20
- Add support for Alder Lake-N CPUs
- Add support for VIA VT8233(A)/VT8237
- Add support for nVidia nForce 3
- Add support for ALi M1533/1543(C)/1535
- Add temperature reporting on AMD K8 CPUs
- Add some JEDEC Manufacturers
- Better handling of SPD reading on Mobile CPUs
- Fix APIC Timer fail on some mobile platforms
- Fix older CPU (P5/P6-class) detection
-------------------------------------------------------------------
Mon Mar 13 11:29:33 UTC 2023 - Ludwig Nussel <lnussel@suse.de>
- don't install files in /boot. The OS needs to stay in /usr
-------------------------------------------------------------------
Wed Feb 8 09:50:09 UTC 2023 - Marcus Meissner <meissner@suse.com>
- add pesign magic
- fixed i586 build
-------------------------------------------------------------------
Sat Feb 4 15:41:14 UTC 2023 - ecsos <ecsos@opensuse.org>
- Update to 6.10
- Add support for Secure Boot Signing
- Add support for Headless EFI system
- Add various command line options
- Add support for legacy ATI SB400
- Fix an issue related to BadRAM pattern
- Fix disabling SMP using F2 at startup
- Fix crash on SuperMicro X10SDV
- Various bug fixes and optimizations
- Update to 6.01
- False positives in test 9 [Modulo 20, random pattern] (issue #216)
- Failing to remove the big PASS/FAIL status banner (issue #130 and #173)
-------------------------------------------------------------------
Sat Oct 29 10:23:02 UTC 2022 - ecsos <ecsos@opensuse.org>
- Update to 6.00:
- Drop all patches can no more use:
fix-destdir
memtest86+-5.01-no-optimization.patch
memtest86+-5.31b-discard-note_gnu_property.patch
-------------------------------------------------------------------
Wed May 12 12:34:56 UTC 2021 - olaf@aepfle.de
- Use _binary_payload w1.gzdio to make sure this firmware package
can be installed by rpm binares that lack support for the latest
compression trends
- Use update-bootloader-rpm-macros
-------------------------------------------------------------------
Tue Apr 27 06:57:21 UTC 2021 - Josef Möllers <josef.moellers@suse.com>
- Due to recent binutils update the gnu assembler defaults to
generate a ".note.gnu.property" section. The linker happily picks
it up to the output binary that offsets the real code entry and
crashes at runtime.
This patch discards the ".note.gnu.property" section.
[bsc#1185272, memtest86+-5.31b-discard-note_gnu_property.patch]
-------------------------------------------------------------------
Sun Jan 17 13:48:44 UTC 2021 - Dirk Müller <dmueller@suse.com>
- update to 5.31b:
* Added support for up to 2 TB of RAM on X64 CPUs
* Added experimental SMT support up to 32 cores (Press F2 to enable at startup)
* Added complete detection for memory controllers
* Added Motherboard Manufacturer & Model reporting
* Added CPU temperature reporting
* Added enhanced Fail Safe Mode (Press F1 at startup)
* Added support for Intel "Sandy Bridge-E" CPUs
* Added support for Intel "Ivy Bridge" CPUs
* Added preliminary support for Intel "Haswell" CPUs (Core 4th Gen)
* Added preliminary support for Intel "Haswell-ULT" CPUs
* Added support for AMD "Kabini" (K16) CPUs
* Added support for AMD "Bulldozer" CPUs
* Added support for AMD "Trinity" CPUs
* Added support for AMD E-/C-/G-/Z- "Bobcat" CPUs
* Added support for Intel Atom "Pineview" CPUs
* Added support for Intel Atom "Cedar Trail" CPUs
* Added SPD detection on most AMD Chipsets
* Enforced Coreboot support
* Optimized run time for faster memory error detection
* Rewriten lots of memory timings detection cod
* Corrected bugs, bugs and more bugs (some could remain)
- drop memtest86+-5.01-array-size-fix.patch, memtest86+-5.01-compile-fix.patch
memtest86+-gcc5.patch: upstream
-------------------------------------------------------------------
Thu Apr 2 09:01:17 UTC 2020 - Martin Liška <mliska@suse.cz>
- Disable parallel build.
-------------------------------------------------------------------
Thu Jul 19 11:11:09 UTC 2018 - mpluskal@suse.com
- Enable parallel build
- Modernise spec file with spec-cleaner
-------------------------------------------------------------------
Fri Oct 30 13:57:22 UTC 2015 - jkeil@suse.de
- Remove unnecessary cdrkit BuildRequire dependency
-------------------------------------------------------------------
Mon Mar 23 23:46:06 UTC 2015 - crrodriguez@opensuse.org
- memtest86+-gcc5.patch: Use -fgnu89-inline, fix build with
GCC5, code relies on old inline semantics.
-------------------------------------------------------------------
Sun Feb 22 10:56:57 UTC 2015 - meissner@suse.com
- BuildIgnore gcc-PIE, it does not make sense for this package.
-------------------------------------------------------------------
Thu Jul 31 12:26:33 UTC 2014 - coolo@suse.com
- make it work by picking patches from Fedora - memtest doesn't like
optimizations with newer compilers.
See https://bugs.mageia.org/show_bug.cgi?id=11661 and fedora bugs.
- Added patches (all from fedora pkg):
memtest86+-5.01-array-size-fix.patch
memtest86+-5.01-compile-fix.patch
memtest86+-5.01-no-optimization.patch
-------------------------------------------------------------------
Thu Nov 7 10:57:28 UTC 2013 - duwe@suse.com
- update to memtest86+-5.01:
- Added support for up to 2 TB of RAM on X64 CPUs
- Added experimental SMT support up to 32 cores
- Added complete detection for memory controllers.
- Added Motherboard Manufacturer & Model reporting
- Added CPU temperature reporting
- Added enhanced Fail Safe Mode (Press F1 at startup)
- Added support for Intel "Sandy Bridge-E" CPUs
- Added support for Intel "Ivy Bridge" CPUs
- Added preliminary support for Intel "Haswell" CPUs
- Added preliminary support for Intel "Haswell-ULT" CPUs
- Added support for AMD "Kabini" (K16) CPUs
- Added support for AMD "Bulldozer" CPUs
- Added support for AMD "Trinity" CPUs
- Added support for AMD E-/C-/G-/Z- "Bobcat" CPUs
- Added support for Intel Atom "Pineview" CPUs
- Added support for Intel Atom "Cedar Trail" CPUs
- Added SPD detection on most AMD Chipsets
- Enforced Coreboot support
- Optimized run time for faster memory error detection
- Rewriten lots of memory timings detection code
- Corrected bugs, bugs and more bugs
- dropped patch: asm-inline-fix
-------------------------------------------------------------------
Fri Oct 5 13:16:57 UTC 2012 - duwe@suse.com
- declare that the asm inline snippets in movinvr call e.g. rand()
and might clobber caller-saved registers a, d, _and_ c.
(bnc#773569)
-------------------------------------------------------------------
Wed Sep 5 10:07:27 UTC 2012 - lars@samba.org
- PreReq /sbin/update-bootloader as it is used in the rpm post script hook;
(bnc#628878).
-------------------------------------------------------------------
Sat Mar 17 14:19:45 UTC 2012 - lars@samba.org
- PreReq perl to avoid update-bootloader to abort while install; (bnc#730022).
-------------------------------------------------------------------
Wed Mar 30 11:47:34 UTC 2011 - trenn@suse.de
- Do not enable serial by default, console=ttySx,... still works
-------------------------------------------------------------------
Tue Mar 29 15:23:33 CEST 2011 - trenn@suse.de
- Update to version 4.20:
- Added failsafe mode (F1 at startup)
- Added support for Intel "Sandy Bridge" CPU
- Added support for AMD "fusion" CPU
- Added Coreboot "table forward" support
- Corrected some memory brand not detected
- Various bug fixes
- Remove %ifarch x86_64 check in .spec file. The internal Makefile
already adds -m32 and -as32 itself.
-------------------------------------------------------------------
Mon Aug 30 09:59:35 UTC 2010 - trenn@novell.com
- Remove old patches. Asked for inclusion, but not needed anymore:
Patch 1/3 : No need to include.
Patch 2/3 : Patch for Mt86+ 2.01. Will broke 4.10. Bug already patched in a
cleaner way
Patch 3/3 : Really no need. It's only a different way to add some comments.
-------------------------------------------------------------------
Fri Aug 27 15:41:16 UTC 2010 - trenn@novell.com
- Update to version 4.10 with these features/fixes added:
* New Features
o Added support for Core i7 Extreme CPU (32nm)
o Added support for Core i5/i3 (32 nm)
o Added support for Pentium Gxxxx (32 mn)
o Added support for Westmere-based Xeon
o Added preliminary support for Intel Sandy Bridge
o Added support for AMD 6-cores CPU
o Added detection for Intel 3200/3210
o New installer for USB Key
* Bug Fixes
o Corrected a crash at startup
o Many others bug fixes
-------------------------------------------------------------------
Mon Sep 28 15:18:24 CEST 2009 - trenn@suse.de
- Update to latest 4.00 version.
Changes from mainline changelog:
Features:
* Major Architectural changes
* First pass twice faster (reduced iterations)
* Detect DDR2/3 brands and part numbers on Intel DDR2/3 chipsets
* Added detection for Intel "Clarkdale" CPU
* Added detection for Intel "Gulftown" CPU
* Added detection for AMD "Magny-Cours" CPU
* Added detection for Intel XMP Memory
* Added for CPU w/ 0.5/1.5/3/6/12/16/18/24MB L3
* Added "clean" DMI detection for DDR3/FBDIMM2
* Better detection of Integrated Memory Controllers
Bug Fixes
* Corrected detection for Intel "Lynnfield" CPU
* Corrected detection for AMD 45nm K10 CPU
* Solved crash with AMD Geode LX
* Complies with SMBIOS 2.6.1 specs
* Fixed compilation issues with gcc 4.2+
* Many others bug fixes
-------------------------------------------------------------------
Fri Nov 28 16:09:47 CET 2008 - duwe@suse.de
- work around a virtual address wrap at 4G, if > 5GB are installed
(bnc#388191)
-------------------------------------------------------------------
Wed Apr 30 14:45:38 CEST 2008 - coolo@suse.de
- update to 2.01 - among others:
- Solved a major bug in Memory Address Errors Reporting
- Patched for Intel-Powered Mac
- Pass duration 20% reduced
- Solved a incoherency with pass progress indicator
- Added support for 45 nm Mobile Core 2 w/ 3 Mo L2
- Corrected Intel 3-Series (P35/X38) chipset init
- fix buffer overflows (bnc#359490) from Michael Matz
-------------------------------------------------------------------
Fri Aug 10 12:57:40 CEST 2007 - duwe@suse.de
- Do not fail to install if update-bootloader is not there.
-------------------------------------------------------------------
Thu Aug 9 18:34:00 CEST 2007 - duwe@suse.de
- Add memtest86+ to boot menu even if installed later
(Feature #301969)
-------------------------------------------------------------------
Mon Feb 19 16:06:08 CET 2007 - trenn@suse.de
- added .gnu.hash section
-------------------------------------------------------------------
Thu Jan 25 16:57:23 CET 2007 - duwe@suse.de
+ update to 1.70:
- Added new DMI polling feature (Thanks to Joachim D.)
- Added Support for Core/Core2 Solo/Duo/Quad CPU
- Added Support for AMD K8 with DDR2 Memory
- Added Support for Intel CPU with 192/384 KB L2 Cache
- Added Support for FB-DIMM based memory (DMI)
- Added Detection for ALI CyberAladdin-T (M1644)
- Added Detection for Turion 64 X2
- Added Detection for AMD K8 with unknown chipsets
- Added Support for ATi Radeon xPress 3200
- Added Support for Intel i975X
- Added Support for Intel Q965/P965
- Added Support for Intel Q963/Q965
-------------------------------------------------------------------
Thu Nov 16 19:35:12 CET 2006 - mrueckert@suse.de
- switch to memtest86+ (http://www.memtest.org)
Compared to memtest86 3.2 it supports more hardware. and has
additional fixes. see http://www.memtest.org/#change for all
details. This upgrade fixes bug (#148481).
- rediffed memtest86-3.2.diff to apply cleanly.
new name: memtest86+-1.65.diff
- rediffed memtest86-3.2-timeout-serialconsole.diff to apply cleanly.
new name: memtest86+-1.65_timeout-serialconsole.diff
- rediffed memtest86-include-linkonce to apply cleanly.
new name: memtest86+-1.65_include-linkonce.patch
- cleaned up build section and directly use install instead of the
broken install target
- added changelog and FAQ to the docs
-------------------------------------------------------------------
Wed Jan 25 21:44:27 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Tue May 10 12:38:17 CEST 2005 - duwe@suse.de
- include *.gnu.linkonce.t.* sections in ld script,
to build cleanly on amd64 with gcc4
-------------------------------------------------------------------
Mon Mar 14 16:21:39 CET 2005 - duwe@suse.de
- update to current version 3.2:
more support for current CPUs and chipsets
fix Bugs #60303 (duped #72202), #71215
-------------------------------------------------------------------
Mon Mar 22 16:41:36 CET 2004 - stepan@suse.de
- update to 3.1a. This fixes compilation with gcc 3.x
- drop precompiled binary completely
- add ExclusiveArch for x86 and AMD64
-------------------------------------------------------------------
Fri Mar 19 16:37:37 CET 2004 - stepan@suse.de
- update to v3.1
- remove gcc 2.95 exceptions
-------------------------------------------------------------------
Sun Sep 8 14:47:28 CEST 2002 - kukuk@suse.de
- Add splitt alias [Bug #19111]
-------------------------------------------------------------------
Thu Sep 5 18:16:53 MEST 2002 - garloff@suse.de
- memtest86-3.0 seems to hang on some machines if the serial
console support is enabled, but no serial console connected.
Add a timeout waiting for the serial console. (Bug #18302)
-------------------------------------------------------------------
Mon Sep 2 09:37:11 MEST 2002 - garloff@suse.de
- Supply complete image (compiled by gcc-2.95), as I don't succeed
solving the gcc-3.2 problems at this moment. (#18302)
-------------------------------------------------------------------
Sat Aug 31 13:09:52 MEST 2002 - garloff@suse.de
- Supply main.s compiled with gcc-2.95 to work around problem with
gcc-3.2.
-------------------------------------------------------------------
Tue Jul 30 16:20:14 MEST 2002 - garloff@suse.de
- Split off lilo package.
-------------------------------------------------------------------
Tue Jul 30 13:06:57 CEST 2002 - sf@suse.de
- added -m32 to compiler and linker for x86_64
- added --32 to as
- added glibc-devel-32bit for x86_64
-------------------------------------------------------------------
Fri Jun 7 13:26:36 MEST 2002 - garloff@suse.de
- Update to memtest86-3.0:
* Testing more than 2GB should work now.
* Use PIC instead of two copies
* Serial code avoid redundant writes now
* ^l/l gives screen refresh (after connecting serial console)
* Netbooting operational again
* LinuxBIOS support (memory sizing)
-------------------------------------------------------------------
Mon Apr 22 20:55:47 MEST 2002 - garloff@suse.de
- Update to memtest86-2.9:
* Provide three memory sizing modes; default is conservative one
probably not testing all memory on some boards
* Testing more than 2GB supported
* Memory testing in segments. Minor bug fixes.
-------------------------------------------------------------------
Fri Feb 15 16:20:34 CET 2002 - mantel@suse.de
- remove x bit from memtest.bin since it's not a Linux executable
-------------------------------------------------------------------
Wed Dec 12 00:52:56 MET 2001 - garloff@suse.de
- Update to memtest86-2.8(a):
* Reworked build process; a network bootable boot image can be
produced
* mem and cache speed detection code rewritten (should work now)
* CPU detection for Pentium 4
* Serial console disabled by default
- Reenabled memtest86 serial console (9600 8n1) ;-)
- Clean up .spec file a bit
-------------------------------------------------------------------
Mon Jul 16 17:17:14 CEST 2001 - uli@suse.de
- update memtest -> 2.7
-------------------------------------------------------------------
Mon Apr 9 16:45:54 MEST 2001 - garloff@suse.de
- memtest86: Correct units (cosmetic)
-------------------------------------------------------------------
Thu Dec 21 14:16:44 MET 2000 - garloff@suse.de
- Update memtest86 to v2.5 final.
-------------------------------------------------------------------
Wed Nov 29 15:40:31 MET 2000 - garloff@suse.de
- Update memtest86 to v2.5-beta (Athlon/Duron support)
-------------------------------------------------------------------
Mon Aug 28 15:49:45 CEST 2000 - garloff@suse.de
- Added memtest86-2.4.

88
memtest86+.spec Normal file
View File

@ -0,0 +1,88 @@
#
# spec file for package memtest86+
#
# Copyright (c) 2024 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/
#
# needssslcertforbuild
Name: memtest86+
Version: 7.20
Release: 0
Summary: Memory Testing Image for x86 Architecture
License: GPL-2.0-only
Group: System/Boot
URL: https://www.memtest.org
Source: https://github.com/memtest86plus/memtest86plus/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: 20_memtest86
#!BuildIgnore: gcc-PIE
Provides: lilo:/boot/memtest.bin
Obsoletes: memtest86 <= 3.2
Provides: memtest86 > 3.2
ExclusiveArch: %{ix86} x86_64
%ifarch x86_64
BuildRequires: glibc-devel-32bit
%endif
BuildRequires: pesign-obs-integration
%define _binary_payload w1.gzdio
BuildRequires: update-bootloader-rpm-macros
%{?update_bootloader_requires}
%description
Memtest86 is an image that can be booted instead of a real OS. Once booted,
it can be used to test the computer's memory.
%prep
%setup -q -n memtest86plus-%{version}
%build
# dependencies are broken for the package and it should not be built in parallel
%ifarch x86_64
cd build64
%else
cd build32
%endif
make
%install
# Script to generate memtest86+ menu entry
mkdir -p %{buildroot}/%{_sysconfdir}/grub.d
install -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/grub.d/
%ifarch x86_64
cd build64
%else
cd build32
%endif
install -Dpm 0644 memtest.bin \
%{buildroot}%{_prefix}/lib/memtest86/memtest.bin
install -Dpm 0644 memtest.efi \
%{buildroot}%{_prefix}/lib/memtest86/memtest.efi
export BRP_PESIGN_FILES="*.efi"
%post
%update_bootloader_check_type_refresh_post grub2 grub2-efi
%posttrans
%update_bootloader_posttrans
%files
%license LICENSE
%doc README.md
%doc doc
%dir %{_prefix}/lib/memtest86
%{_prefix}/lib/memtest86/memtest.*
%dir %{_sysconfdir}/grub.d
%config(noreplace) %{_sysconfdir}/grub.d/20_memtest86
%changelog