!18 move readme to docdir/stalld

From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
This commit is contained in:
openeuler-ci-bot 2023-09-14 09:15:49 +00:00 committed by Gitee
commit 24b29d0b18
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: stalld
Version: 1.16
Release: 2
Release: 3
Summary: Daemon that finds starving tasks and gives them a temporary boost
License: GPLv2
@ -32,13 +32,16 @@ allow 10 microseconds of runtime for 1 second of clock time.
%install
%make_install DOCDIR=%{_docdir} MANDIR=%{_mandir} BINDIR=%{_bindir} DATADIR=%{_datadir} VERSION=%{version}
%make_install -C redhat UNITDIR=%{_unitdir}
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_docdir}/README.md %{buildroot}%{_docdir}/%{name}/
%files
%{_bindir}/%{name}
%{_bindir}/throttlectl
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/stalld
%doc %{_docdir}/README.md
%doc %{_docdir}/%{name}/README.md
%doc %{_mandir}/man8/stalld.8*
%license gpl-2.0.txt
@ -52,6 +55,9 @@ allow 10 microseconds of runtime for 1 second of clock time.
%systemd_postun_with_restart %{name}.service
%changelog
* Thu Sep 14 2023 duyiwei <duyiwei@kylinos.cn> - 1.16-3
- move README
* Thu Jul 20 2023 lvgenggeng <lvgenggeng@uniontech.com> - 1.16-2
- add support for loongarch64