97 lines
2.7 KiB
RPMSpec
97 lines
2.7 KiB
RPMSpec
%define debug_package %{nil}
|
|
%global _build_id_links none
|
|
%undefine __brp_mangle_shebangs
|
|
|
|
Name: oec-hardware
|
|
Summary: openEuler Hardware Compatibility Test Suite
|
|
Version: 1.0.0
|
|
Release: 7
|
|
Group: Development/Tools
|
|
License: Mulan PSL v2
|
|
URL: https://gitee.com/openeuler/oec-hardware
|
|
Source0: https://gitee.com/openeuler/oec-hardware/repository/archive/v%{version}.tar.gz
|
|
|
|
#PATCH-FIX-https://gitee.com/src-openEuler/ patch from oec-hardware-1.0.0 project
|
|
Patch0001: oec-hardware-1.0.0-system.patch
|
|
|
|
#PATCH-FIX-https://gitee.com/src-openEuler/ patch from oec-hardware-1.0.0 project
|
|
Patch0002: oec-hardware-1.0.0-delete-tape.patch
|
|
|
|
Patch0003: oec-hardware-1.0.0-fix-cdrom.patch
|
|
Patch0004: oec-hardware-1.0.0-fix-cpufreq.patch
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gcc
|
|
Requires: kernel-devel, kernel-headers, dmidecode, tar
|
|
Requires: qperf, fio, memtester
|
|
Requires: kernel >= 4
|
|
Requires: python3
|
|
|
|
# server subpackage
|
|
%package server
|
|
Summary: openEuler Hardware Compatibility Test Server
|
|
Group: Development/Tools
|
|
Requires: python3, python3-devel, nginx, tar, qperf, psmisc
|
|
|
|
%description
|
|
openEuler Hardware Compatibility Test Suite
|
|
|
|
%description server
|
|
openEuler Hardware Compatibility Test Server
|
|
|
|
%prep
|
|
%setup -q -c
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
|
|
%build
|
|
|
|
sed -i '15i CFLAGS+=-fstack-protector-strong' tests/memory/Makefile
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
DESTDIR=$RPM_BUILD_ROOT VERSION_RELEASE=%{version} make
|
|
|
|
%install
|
|
DESTDIR=$RPM_BUILD_ROOT make install
|
|
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
%pre
|
|
|
|
%post
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/usr/bin/oech
|
|
/usr/share/oech/kernelrelease.json
|
|
/usr/share/oech/lib/hwcompatible
|
|
/usr/share/oech/lib/tests
|
|
/usr/lib/systemd/system/oech.service
|
|
%dir /var/oech
|
|
%dir /usr/share/oech/lib
|
|
%dir /usr/share/oech
|
|
|
|
%files server
|
|
%defattr(-,root,root)
|
|
/usr/share/oech/lib/server
|
|
/usr/share/oech/lib/server/uwsgi.ini
|
|
/usr/share/oech/lib/server/uwsgi.conf
|
|
/usr/lib/systemd/system/oech-server.service
|
|
|
|
%postun
|
|
rm -rf /var/lock/oech.lock
|
|
|
|
%changelog
|
|
* Thu Jul 15 2021 zhangzikang <zhangzikang@kylinos.cn> - 1.0.0-7
|
|
- Fix cdrom and cpufreq test failed
|
|
|
|
* Fri Mar 19 2021 caodongxia <caodongxia@huawei.com> - 1.0.0-6
|
|
* Tue Sep 29 2020 Cui XuCui <cuixucui1@huawei.com> - 1.0.0-5
|
|
* Fri Jul 24 2020 Cui XuCui <cuixucui1@huawei.com> - 1.0.0-4
|
|
* Sun Jul 18 2020 Cui XuCui <cuixucui1@huawei.com> - 1.0.0-3
|
|
* Sun Jul 01 2020 Cui XuCui <cuixucui1@huawei.com> - 1.0.0-2
|
|
* Fri Jul 26 2019 Lu Tianxiong <lutianxiong@huawei.com> - 1.0.0-h1
|
|
- Initial spec
|
|
|