-Summary: Utility to test for faulty memory
-Summary(pl): Program do testowania pamiêci
+Summary: Userspace utility to test for faulty memory subsystem
+Summary(pl): Narzêdzie do testowania podsystemu pamiêci
Name: memtester
-Version: 2.93
+Version: 4.0.5
Release: 1
-Copyright: GNU
-Group: Utilities/System
-Group(pl): Narzêdzia/System
-Source: memtester-%{version}.tar.gz
-URL: http://www.qcc.sk.ca/~charlesc/software/memtester/
-Exclusivearch: %{ix86}
+License: GPL v2
+Group: Applications/System
+Source0: http://pyropus.ca/software/memtester/%{name}-%{version}.tar.gz
+# Source0-md5: f6328b4863caf8f2013489c82c26cd1d
+URL: http://pyropus.ca/software/memtester/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Memtest is a utility for testing the memory in a PC to determine if it is
-faulty.
+Memtester is a userspace utility to test for memory subsytem errors.
+It performs various types of tests to check for many possible error
+kinds. Running as root is prefferred, but not a must.
%description -l pl
-Memtest jest programem s³u¿±cym do testowania pamiêci PC, oraz okre¶lenia
-czy jest sprawna, czy te¿ nie.
+Memtester jest programem testuj±cym podsystem pamiêci, dzia³aj±cym w
+przestrzeni u¿ytkownika. Wykonuje wiele ró¿nych rodzajów testów
+wy³apuj±cych ró¿ne typy b³êdów. Najlepiej jest uruchomiæ go z
+u¿ytkownika root, ale nie jest to wymagane.
%prep
-%setup -q -n memtester-%{version}
+%setup -q
%build
-make CFLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
-install -s memtest $RPM_BUILD_ROOT%{_sbindir}
-
-install memtest.1 $RPM_BUILD_ROOT%{_mandir}/man1
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* ABOUT README.tests CHANGELOG TODO
+install memtester $RPM_BUILD_ROOT%{_bindir}
+install memtester.8 $RPM_BUILD_ROOT%{_mandir}/man8
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *gz
-%attr(755,root,root) %{_sbindir}/memtest
-%{_mandir}/man1/*
+%doc README README.tests
+%attr(755,root,root) %{_bindir}/memtester
+%{_mandir}/man8/*