!1 init package

Merge pull request !1 from myeuler/master
This commit is contained in:
openeuler-ci-bot 2020-05-28 17:27:30 +08:00 committed by Gitee
commit e585a1db14
3 changed files with 72 additions and 0 deletions

BIN
memtester-4.3.0.tar.gz Normal file

Binary file not shown.

View 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
View 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