1
0
Fork 0

spec: packaged sap profile into tuned-profiles-sap subpackage

It's optional and there may be more SAP profiles in the future,
hus it's better to have special subpackage for it.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2014-08-26 15:03:10 +02:00
parent b2897d9c1c
commit 555abc2153

View file

@ -41,6 +41,13 @@ minimal, maximal and average time between operations to be able to
identify applications that behave power inefficient (many small operations
instead of fewer large ones).
%package profiles-sap
Summary: Additional tuned profile(s) targeted to SAP loads
Requires: %{name} = %{version}-%{release}
%description profiles-sap
Additional tuned profile(s) targeted to SAP loads.
%package profiles-compat
Summary: Additional tuned profiles mainly for backward compatibility with tuned 1.0
Requires: %{name} = %{version}-%{release}
@ -109,6 +116,7 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
%exclude %{_prefix}/lib/tuned/enterprise-storage
%exclude %{_prefix}/lib/tuned/spindown-disk
%exclude %{_prefix}/lib/tuned/sap
%{_prefix}/lib/tuned
%dir %{_sysconfdir}/tuned
%config(noreplace) %{_sysconfdir}/tuned/active_profile
@ -141,6 +149,10 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile
%{_mandir}/man8/diskdevstat.*
%{_mandir}/man8/scomes.*
%files profiles-sap
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/sap
%files profiles-compat
%defattr(-,root,root,-)
%{_prefix}/lib/tuned/default