commit
e585a1db14
BIN
memtester-4.3.0.tar.gz
Normal file
BIN
memtester-4.3.0.tar.gz
Normal file
Binary file not shown.
28
memtester-fix-make-install-path.patch
Normal file
28
memtester-fix-make-install-path.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
diff -urN memtester-4.3.0/Makefile memtester-4.3.0-bak/Makefile
|
||||||
|
--- memtester-4.3.0/Makefile 2012-06-10 05:45:22.000000000 +0800
|
||||||
|
+++ memtester-4.3.0-bak/Makefile 2020-05-03 11:26:52.615501049 +0800
|
||||||
|
@@ -17,7 +17,9 @@
|
||||||
|
OBJECTS = $(SOURCES:.c=.o)
|
||||||
|
HEADERS = memtester.h
|
||||||
|
TARGETS = *.o compile load auto-ccld.sh find-systype make-compile make-load systype extra-libs
|
||||||
|
-INSTALLPATH = /usr/local
|
||||||
|
+
|
||||||
|
+BINDIR = ${DESTDIR}/usr/bin
|
||||||
|
+MANDIR = ${DESTDIR}/usr/share/man/man8
|
||||||
|
|
||||||
|
#
|
||||||
|
# Targets
|
||||||
|
@@ -25,9 +27,10 @@
|
||||||
|
all: memtester
|
||||||
|
|
||||||
|
install: all
|
||||||
|
- mkdir -m 755 -p $(INSTALLPATH)/{bin,man/man8}
|
||||||
|
- install -m 755 memtester $(INSTALLPATH)/bin/
|
||||||
|
- gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz $(INSTALLPATH)/man/man8/
|
||||||
|
+ mkdir -m 755 -p $(BINDIR)
|
||||||
|
+ mkdir -m 755 -p $(MANDIR)
|
||||||
|
+ install -m 755 memtester $(BINDIR)
|
||||||
|
+ gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz $(MANDIR)
|
||||||
|
|
||||||
|
auto-ccld.sh: \
|
||||||
|
conf-cc conf-ld warn-auto.sh
|
||||||
44
memtester.spec
Normal file
44
memtester.spec
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: memtester
|
||||||
|
Version: 4.3.0
|
||||||
|
Release: 1
|
||||||
|
Summary: A userspace utility for testing the memory subsystem for faults
|
||||||
|
License: GPLv2
|
||||||
|
URL: http://pyropus.ca/software/memtester/
|
||||||
|
Source0: http://pyropus.ca/software/memtester/old-versions/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: memtester-fix-make-install-path.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
|
|
||||||
|
%description
|
||||||
|
A userspace utility for testing the memory subsystem for faults. It's portable and should compile and work on any 32- or 64-bit Unix-like system. (Yes, even weird, proprietary Unices, and even Mac OS X.) For hardware developers, memtester can be told to test memory starting at a particular physical address as of memtester version 4.1.0.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}/
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR="%{buildroot}"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%preun
|
||||||
|
%post
|
||||||
|
%postun
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%doc README README.tests
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user