1 Star 0 Fork 18

Guodong Xu/lmbench

forked from src-openEuler/lmbench 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
lmbench.spec 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
%global debug_package %{nil}
Name: lmbench
Version: 3
Release: 2
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
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
%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
* Wed Jul 15 2020 wangyue <[email protected]> - 3-2
- Fix rpc.h error.Rpc code moved from glibc to libtirpc.
* Sun Mar 29 2020 Wei Xiong <[email protected]>
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/docularxu/lmbench.git
[email protected]:docularxu/lmbench.git
docularxu
lmbench
lmbench
master

搜索帮助