lmbench/lmbench.spec
MementoMori 5cd66c48e8 fix strip problem
(cherry picked from commit 72291ee5651fd4fba3034f5119cd86ac8fa0e7aa)
2022-07-30 10:02:58 +08:00

75 lines
2.0 KiB
RPMSpec

Name: lmbench
Version: 3
Release: 4
Summary: Tools for Performance Analysis
License: GPLv2
URL: http://www.bitmover.com/lmbench/
Source0: http://www.bitmover.com/lmbench/%{name}%{version}.tar.gz
Patch0: lmbench3-fix-llseek-and-remove-bk-in-Makefile.patch
Patch1: lmbench3-add-HOWTO-to-indicate-howto-use-this-package.patch
Patch2: Rpc-code-moved-from-glibc-to-libtirpc.patch
Patch3: lmbench3-add-sp-security-compiler-option.patch
Patch4: lmbench3-need-debug.patch
BuildRequires: gcc libtirpc-devel
%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
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%make_build
%install
mkdir -p %{buildroot}/opt/%{name}/{bin,doc,scripts,results,src}
find bin/ -name *.o | xargs rm -rf
find bin/ -name *.a | xargs rm -rf
cp -r bin/* %{buildroot}/opt/%{name}/bin/
install -m 0644 src/* %{buildroot}/opt/%{name}/src
install -m 0755 scripts/* %{buildroot}/opt/%{name}/scripts/
install -m 0644 scripts/Makefile %{buildroot}/opt/%{name}/scripts/
install -m 0644 scripts/README %{buildroot}/opt/%{name}/scripts/
install -m 0644 doc/* %{buildroot}/opt/%{name}/doc/
install -m 0644 Makefile %{buildroot}/opt/%{name}/
install -m 0644 results/Makefile %{buildroot}/opt/%{name}/results
%pre
%preun
%post
%postun
%check
%files
%license COPYING COPYING-2
%doc README HOWTO
/opt/%{name}/*
%changelog
* Thu Stp 9 2021 Shaowei Cheng <chenshaowei3@huawei.com> - 3-4
- need debug
* Mon Jul 12 2021 stevending1st <stevending1st@163.com> - 3-3
- Add SP security compiler option.
* Wed Jul 15 2020 wangyue <wangyue92@huawei.com> - 3-2
- Fix rpc.h error.Rpc code moved from glibc to libtirpc.
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init