2007-01-15 23:25:02 +00:00
|
|
|
#
|
2012-03-17 15:22:32 +00:00
|
|
|
# spec file for package memtest86+
|
2007-01-15 23:25:02 +00:00
|
|
|
#
|
2012-03-17 15:22:32 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:25:02 +00:00
|
|
|
#
|
2008-11-28 15:28:03 +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.
|
|
|
|
|
2007-01-15 23:25:02 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: memtest86+
|
2011-03-29 13:26:16 +00:00
|
|
|
Version: 4.20
|
2012-03-17 15:22:32 +00:00
|
|
|
Release: 0
|
2007-01-15 23:25:02 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-05-01 12:00:20 +00:00
|
|
|
BuildRequires: cdrkit-cdrtools-compat
|
2007-01-15 23:25:02 +00:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: glibc-devel-32bit
|
|
|
|
%endif
|
2012-03-17 15:22:32 +00:00
|
|
|
PreReq: perl
|
2012-09-05 11:34:44 +00:00
|
|
|
PreReq: /sbin/update-bootloader
|
2008-05-01 12:00:20 +00:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2007-01-15 23:25:02 +00:00
|
|
|
Provides: lilo:/boot/memtest.bin
|
|
|
|
Obsoletes: memtest86 <= 3.2
|
|
|
|
Provides: memtest86 > 3.2
|
|
|
|
#
|
2008-05-01 12:00:20 +00:00
|
|
|
Url: http://www.memtest.org
|
2010-08-27 15:55:18 +00:00
|
|
|
Source: http://www.memtest.org/download/%{version}/%{name}-%{version}.tar.bz2
|
2007-01-25 16:27:40 +00:00
|
|
|
Patch0: fix-destdir
|
2012-10-05 13:25:20 +00:00
|
|
|
Patch1: asm-inline-fix
|
2007-01-15 23:25:02 +00:00
|
|
|
Summary: Memory Testing Image for x86 Architecture
|
2012-03-17 15:22:32 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Boot
|
2007-01-15 23:25:02 +00:00
|
|
|
|
|
|
|
%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 <memtest@memtest.org>
|
|
|
|
Original memtest86 package:
|
|
|
|
John Coffman <JohnInSD@san.rr.com>
|
|
|
|
Werner Almesberger <Werner.Almesberger@epfl.ch>
|
|
|
|
PowerPC part:
|
|
|
|
Paul Mackeras <paulus@samba.org>
|
|
|
|
Cort Dougan <cort@fsmlabs.com>
|
|
|
|
Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
|
|
|
Memtest86:
|
|
|
|
Chris Brady <crsbrady@earthlink.net>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2007-01-25 16:27:40 +00:00
|
|
|
%patch0 -p1
|
2012-10-05 13:25:20 +00:00
|
|
|
%patch1 -p1
|
2007-01-15 23:25:02 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m 0644 memtest.bin $RPM_BUILD_ROOT/boot/memtest.bin
|
|
|
|
|
2007-08-09 22:34:02 +00:00
|
|
|
%post
|
2007-08-10 15:11:59 +00:00
|
|
|
if [ "$YAST_IS_RUNNING" != instsys -a $1 = 1 -a \
|
|
|
|
-x /sbin/update-bootloader ]; then
|
2007-08-09 22:34:02 +00:00
|
|
|
/sbin/update-bootloader --add --image /boot/memtest.bin --name "Memory Test (memtest86+)"
|
|
|
|
fi
|
2007-08-10 15:11:59 +00:00
|
|
|
true
|
2007-08-09 22:34:02 +00:00
|
|
|
|
2007-08-10 15:11:59 +00:00
|
|
|
%postun
|
|
|
|
test -x /sbin/update-bootloader && /sbin/update-bootloader --remove --force --image /boot/memtest.bin || true
|
2007-08-09 22:34:02 +00:00
|
|
|
|
2007-01-15 23:25:02 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/boot/memtest.bin
|
|
|
|
%doc README* changelog FAQ
|
|
|
|
|
2007-02-19 22:30:50 +00:00
|
|
|
%changelog
|