diff --git a/memtester-4.3.0.tar.gz b/memtester-4.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2bd50f417ef6dd575ecd8d2452733c884eaf3424 Binary files /dev/null and b/memtester-4.3.0.tar.gz differ diff --git a/memtester-fix-make-install-path.patch b/memtester-fix-make-install-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..7ed8c4f07dce4e3b9076c648829ab33889b27f3d --- /dev/null +++ b/memtester-fix-make-install-path.patch @@ -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 diff --git a/memtester.spec b/memtester.spec new file mode 100644 index 0000000000000000000000000000000000000000..0812133593c088692ee273866412a92de504b3b7 --- /dev/null +++ b/memtester.spec @@ -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 +- Package init +