代码拉取完成,页面将自动刷新
同步操作将从 anolis/ancert 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%define anolis_release 1
%define __lib lib
%undefine __brp_mangle_shebangs
Name: ancert
Version: 2.0
Release: %{anolis_release}%{?dist}
Summary: Anolis Hardware Compatibility Test Suite
License: MulanPSL2 and BSD
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Vendor: Alibaba
URL: https://gitee.com/anolis/ancert
Source: %{name}-v%{version}.tar.gz
BuildRequires: make, gcc, gcc-c++
Requires: make, gcc, gcc-c++
Requires: fio, nvme-cli, glx-utils, python3, rpm-build, bc, lvm2
Requires: alsa-lib, alsa-utils, virt-what, smartmontools, hdparm
Requires: xorg-x11-utils, xorg-x11-server-utils, xorg-x11-apps
Requires: OpenIPMI, ipmitool, freeipmi
%if %(rpm -E %{?dist}|awk '{sub(".kos","");print}') >= 8
Requires: python3-pyyaml, clang
%endif
ExclusiveArch: x86_64 aarch64 loongarch64
%description
This test suite to be used to verify your system or component the compatibility with Anolis OS.
%prep
%setup -qn %{name}-v%{version}
%install
make DESTDIR=%{buildroot}%{_datadir}/%{name} post_install
%files
%defattr(-,root,root)
%{_datadir}/%{name}/%{name}
%{_datadir}/%{name}/etc
%{_datadir}/%{name}/%{__lib}
%{_datadir}/%{name}/tests
%{_datadir}/%{name}/utils
%{_datadir}/%{name}/README.md
%{_datadir}/%{name}/LICENSE
%exclude %{_datadir}/%{name}/%{name}.spec
%post
if [ "$1" = "1" ]; then
[ -f %{_bindir}/%{name} ] || [ -L %{_bindir}/%{name} ] \
&& rm -rf %{_bindir}/%{name}
ln -s %{_datadir}/%{name}/%{name} %{_bindir}/%{name}
fi
%postun
if [ "$1" = "0" ]; then
[ -d %{_datadir}/%{name} ] && rm -rf %{_datadir}/%{name}
[ -L %{_bindir}/%{name} ] && rm -rf %{_bindir}/%{name}
fi
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%changelog
* Mon Nov 21 2022 chaofengwu <[email protected]> -2.0-1
- update ancert architecture to 2.0
* Tue Aug 16 2022 chaofengwu <[email protected]> -1.2-1
- support IPMI , BIOS test
* Thu Mar 3 2022 chaofengwu <[email protected]> -1.1-1
- fixed several bugs
* Wed Nov 24 2021 chaofengwu <[email protected]> -1.0-1
- support log packaging and test results checksum
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。