Upgrade version 4.6.0

Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
cherry530 2023-09-15 11:00:39 +08:00
parent 5f947e11a9
commit 5673b3b5b1
4 changed files with 7 additions and 33 deletions

Binary file not shown.

BIN
memtester-4.6.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,28 +0,0 @@
diff --color -urN memtester-4.5.1/Makefile memtester-4.5.1-new/Makefile
--- memtester-4.5.1/Makefile 2021-05-31 01:10:52.000000000 +0800
+++ memtester-4.5.1-new/Makefile 2022-07-05 03:32:36.885577441 +0800
@@ -17,7 +17,8 @@
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,10 +26,10 @@
all: memtester
install: all
- mkdir -m 755 -p $(INSTALLPATH)/bin
- install -m 755 memtester $(INSTALLPATH)/bin/
- mkdir -m 755 -p $(INSTALLPATH)/man/man8
- 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

View File

@ -1,15 +1,13 @@
%global debug_package %{nil}
Name: memtester
Version: 4.5.1
Release: 2
Version: 4.6.0
Release: 1
Summary: A userspace utility for testing the memory subsystem for faults
License: GPL-2.0-only
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
@ -22,7 +20,8 @@ A userspace utility for testing the memory subsystem for faults. It's portable a
%make_build
%install
make install DESTDIR="%{buildroot}"
install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m 0644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
%pre
%preun
@ -38,6 +37,9 @@ make install DESTDIR="%{buildroot}"
%{_mandir}/*
%changelog
* Fri Sep 15 2023 xu_ping <707078654@qq.com> - 4.6.0-1
- Upgrade version to 4.6.0
* Tue Aug 02 2022 liukuo <liukuo@kylinos.cn> - 4.5.1-2
- License compliance rectification