diff --git a/keentune-bench-1.0.0.tar.gz b/keentune-bench-1.0.0.tar.gz index a51cac78461cd9fcc572597c5ef901cf590e9a63..281ed0d8561caa4371a24d50da301721e323660f 100644 Binary files a/keentune-bench-1.0.0.tar.gz and b/keentune-bench-1.0.0.tar.gz differ diff --git a/keentune-bench.spec b/keentune-bench.spec index d73adb7e94474b0076963174b841b3e70575fbbf..ae69035bccce1b85b0a2fa3fd6e7d7441f489d79 100644 --- a/keentune-bench.spec +++ b/keentune-bench.spec @@ -1,17 +1,17 @@ -%define anolis_release 3 +%define anolis_release 5 # -# spec file for package keentune-bench +# spec file for package KeenTune-bench # Name: keentune-bench Version: 1.0.0 Release: %{?anolis_release}%{?dist} -Url: https://codeup.openanolis.cn/codeup/keentune/keentune_bench +Url: https://gitee.com/anolis/keentune_bench Summary: Benchmark script running models for KeenTune License: MulanPSLv2 Group: Development/Languages/Python -Source: %{name}-%{version}.tar.gz +Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python3-devel @@ -27,18 +27,31 @@ Benchmark script running models for KeenTune %setup -q -n %{name}-%{version} %build -python3 setup.py build +%{__python3} setup.py build %install -python3 setup.py install --single-version-externally-managed -O1 --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES +%{__python3} setup.py install --single-version-externally-managed -O1 --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES +mkdir -p ${RPM_BUILD_ROOT}/usr/lib/systemd/system/ +cp -f ./keentune-bench.service ${RPM_BUILD_ROOT}/usr/lib/systemd/system/ %clean rm -rf $RPM_BUILD_ROOT +%post +systemctl daemon-reload + %files -f INSTALLED_FILES %license LICENSE +%{_libdir}/systemd/system/keentune-bench.service %changelog +* Wed Dec 15 2021 Runzhe Wang <15501019889@126.com> - 1.0.0-5 +- fix bug: can not running in alinux2 and centos7 +- change modify codeup address to gitee + +* Wed Dec 01 2021 Runzhe Wang <15501019889@126.com> - 1.0.0-4 +- add keentune to systemd + * Mon Nov 15 2021 Runzhe Wang <15501019889@126.com> - 1.0.0-3 - fix: wrong license in setup.py