# # spec file for package memtest86+ (Version 4.10) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: memtest86+ Version: 4.20 Release: 1 # License: BSD3c(or similar) Group: System/Boot # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cdrkit-cdrtools-compat %ifarch x86_64 BuildRequires: glibc-devel-32bit %endif ExclusiveArch: %ix86 x86_64 Provides: lilo:/boot/memtest.bin Obsoletes: memtest86 <= 3.2 Provides: memtest86 > 3.2 # Url: http://www.memtest.org Source: http://www.memtest.org/download/%{version}/%{name}-%{version}.tar.bz2 Patch0: fix-destdir Summary: Memory Testing Image for x86 Architecture %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. Authors: -------- Samuel Demeulemeester Original memtest86 package: John Coffman Werner Almesberger PowerPC part: Paul Mackeras Cort Dougan Benjamin Herrenschmidt Memtest86: Chris Brady %prep %setup %patch0 -p1 %build make %install install -D -m 0644 memtest.bin $RPM_BUILD_ROOT/boot/memtest.bin %post if [ "$YAST_IS_RUNNING" != instsys -a $1 = 1 -a \ -x /sbin/update-bootloader ]; then /sbin/update-bootloader --add --image /boot/memtest.bin --name "Memory Test (memtest86+)" fi true %postun test -x /sbin/update-bootloader && /sbin/update-bootloader --remove --force --image /boot/memtest.bin || true %files %defattr(-,root,root) /boot/memtest.bin %doc README* changelog FAQ %changelog