dim_tools/dim_tools.spec

40 lines
864 B
RPMSpec
Raw Normal View History

2023-09-04 19:51:46 +08:00
%define debug_package %{nil}
Name: dim_tools
Version: 1.0.1
2023-11-02 19:13:55 +08:00
Release: 2
2023-09-04 19:51:46 +08:00
Summary: DIM userspace tools
License: MulanPSL-2.0
URL: dim_tools
Source0: %{name}-v%{version}.tar.gz
BuildRequires: gcc make elfutils-devel openssl-devel kmod-devel kmod-libs kernel-devel
Requires: elfutils openssl kmod-libs
%description
dim_tools is DIM userspace tools.
%prep
%autosetup -n %{name}-v%{version} -p1
%build
cd ./src && make
%install
cd ./src && make install DESTDIR=$RPM_BUILD_ROOT
%check
2023-11-02 19:13:55 +08:00
cd ./test/test-function
sed -i "s/\ttest_calculate_hash_mod/#test_calculate_hash_mod/" test.sh
sh test.sh
2023-09-04 19:51:46 +08:00
%files
%attr(555,root,root) %{_bindir}/dim_gen_baseline
%changelog
2023-11-02 19:13:55 +08:00
* Thu Nov 2 2023 jinlun <jinlun@huawei.com> 1.0.1-2
- Open the test case.
2023-09-04 19:51:46 +08:00
* Mon Sep 4 2023 jinlun <jinlun@huawei.com> 1.0.1-1
- Init package