Accepting request 1066824 from home:trenn:branches:Base:System
- Remove old outdated spec scripts before suse_version 1500 - Separate SAP and related profiles to not be installed in SLE 15 SPx and older, but add them with openSUSE (as before), ALP and upcoming SLE distros - Update to version 2.20.0.0+git.ce3d092: * new release (2.20.0) * tuned-adm: better error message for unauthorized switch_profile * man: updated manual pages to be more consistent * spec: dropped unneeded ncat dependency * fix log error * Report reapplied sysctls only on different values * Fixing no _evlist attribute when run without daemon * fix 'is_active' does not work * new release (2.20.0-rc.1) * build: fixed FTBFS with python2 * Expose TuneD API to the Unix Domain Socket. * Inform users about reapplied sysctls * API: add support for moving devices between instances * throughput-performance: set net.core.somaxconn to at least 2048 * Adding support for cpu intel_pstate scaling driver * configparser: use no strict parser to mimic old behavior * Adding pm_qos_resume_latency_us option for cpu plugin.i * Makefile: added fix for python-3.12 * D-Bus: only send tracebacks through the D-Bus if in the debug mode * update vendor_url in policy file * correct section of the tuned-profiles-openshift manpage * Allow selecting a different pkg-config executable * fix tuned/gtk/gui_profile_loader.py spell error * bootloader: create bootcmdline even when skip_grub_config=true * profiles: added aws profile for aws ec2 instances OBS-URL: https://build.opensuse.org/request/show/1066824 OBS-URL: https://build.opensuse.org/package/show/Base:System/tuned?expand=0&rev=89
This commit is contained in:
parent
e543848d92
commit
2bc0de38a7
4
_service
4
_service
@ -1,5 +1,5 @@
|
||||
<services>
|
||||
<service name="obs_scm" mode="localonly">
|
||||
<service name="obs_scm">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/redhat-performance/tuned</param>
|
||||
<!--
|
||||
@ -11,7 +11,7 @@
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service mode="localonly" name="set_version"/>
|
||||
<service name="set_version"/>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service mode="buildtime" name="recompress">
|
||||
<param name="compression">xz</param>
|
||||
|
4
_service:obs_scm:_servicedata
Normal file
4
_service:obs_scm:_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/redhat-performance/tuned</param>
|
||||
<param name="changesrevision">ce3d0926289942407cf7bdc717c464e9bf3079df</param></service></servicedata>
|
3
_service:obs_scm:tuned-2.20.0.0+git.ce3d092.obscpio
Normal file
3
_service:obs_scm:tuned-2.20.0.0+git.ce3d092.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6c9926a2919e75010435e8f3bbc57499aa7cd3346186fb57d7849d7bce02b252
|
||||
size 1043980
|
4
_service:obs_scm:tuned.obsinfo
Normal file
4
_service:obs_scm:tuned.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: tuned
|
||||
version: 2.20.0.0+git.ce3d092
|
||||
mtime: 1676667418
|
||||
commit: ce3d0926289942407cf7bdc717c464e9bf3079df
|
362
_service:set_version:tuned.spec
Normal file
362
_service:set_version:tuned.spec
Normal file
@ -0,0 +1,362 @@
|
||||
#
|
||||
# spec file for package tuned
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define profile_dir %{_prefix}/lib/%{name}
|
||||
Name: tuned
|
||||
Version: 2.20.0.0+git.ce3d092
|
||||
Release: 0
|
||||
Summary: A dynamic adaptive system tuning daemon
|
||||
License: GPL-2.0-or-later
|
||||
Group: System/Base
|
||||
URL: https://github.com/redhat-performance/tuned
|
||||
Source0: tuned-%{version}.tar.xz
|
||||
Source1: tuned.rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE fix-allow-receive_sender-default.patch <allow receive_sender="com.redhat.com"/> allow receive_* is normally
|
||||
# not needed as that is the default --<p.drouand@gmail.com>
|
||||
Patch0: fix-allow-receive_sender-default.patch
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
# need perf_bias now
|
||||
Requires: cpupower >= 4.19
|
||||
Requires: ethtool
|
||||
Requires: gawk
|
||||
Requires: hdparm
|
||||
Requires: polkit
|
||||
Requires: python3-configobj
|
||||
Requires: python3-dbus-python
|
||||
Requires: python3-decorator
|
||||
Requires: python3-gobject
|
||||
Requires: python3-linux-procfs
|
||||
Requires: python3-pyudev
|
||||
Requires: util-linux
|
||||
Requires: virt-what
|
||||
BuildArch: noarch
|
||||
%{?systemd_requires}
|
||||
|
||||
%description
|
||||
The tuned package contains a daemon that tunes system settings dynamically.
|
||||
It does so by monitoring the usage of several system components periodically.
|
||||
Based on that information components will then be put into lower or higher
|
||||
power saving modes to adapt to the current usage. Currently only ethernet
|
||||
network and ATA harddisk devices are implemented.
|
||||
|
||||
%package utils
|
||||
Summary: Disk and net statistic monitoring systemtap scripts
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
Requires: powertop
|
||||
|
||||
%description utils
|
||||
This package contains utilities that can help you to fine tune your
|
||||
system and manage tuned profiles.
|
||||
|
||||
%package utils-systemtap
|
||||
Summary: Disk and net statistic monitoring systemtap scripts
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
Requires: systemtap
|
||||
|
||||
%description utils-systemtap
|
||||
This package contains several systemtap scripts to allow detailed
|
||||
manual monitoring of the system. Instead of the typical IO/sec it collects
|
||||
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 gtk
|
||||
Summary: Disk and net statistic monitoring systemtap scripts - GTK GUI
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
Requires: powertop
|
||||
|
||||
%description gtk
|
||||
GTK GUI that can control tuned and provide simple profile editor.
|
||||
|
||||
%package profiles-atomic
|
||||
Summary: Additional tuned profiles targeted to Atomic
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-atomic
|
||||
Additional profile(s) for the tuned daemon, targeted to Atomic host and guest.
|
||||
|
||||
%package profiles-nfv
|
||||
Summary: Additional tuned profiles targeted to Network Function Virtualization (NFV)
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-nfv
|
||||
Additional profile(s) for the tuned daemon, targeted to Network Function Virtualization (NFV).
|
||||
|
||||
%package profiles-openshift
|
||||
Summary: Additional tuned profile(s) optimized for the OpenShift platform
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-openshift
|
||||
Additional 3 profiles for the Openshift platform:
|
||||
A parent profile containing tuning shared by OpenShift control plane and worker nodes.
|
||||
One profile optimized for OpenShift control plane.
|
||||
And a third profile optimized for general workloads on OpenShift worker nodes.
|
||||
|
||||
%package profiles-oracle
|
||||
Summary: Additional tuned profiles targeted to Oracle loads
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-oracle
|
||||
Additional profile(s) for the tuned daemon, targeted to Oracle loads.
|
||||
|
||||
%package profiles-postgresql
|
||||
Summary: Additional tuned profile(s) targeted to PostgreSQL server loads
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-postgresql
|
||||
Additional tuned profile(s) targeted to PostgreSQL server loads.
|
||||
|
||||
%package profiles-realtime
|
||||
Summary: Additional tuned profiles targeted to realtime
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-realtime
|
||||
Additional profile(s) for the tuned daemon, targeted to realtime.
|
||||
|
||||
# Do not ship SAP profiles for SLE and Leap, there are other packages
|
||||
# providing these profiles (starting with ALP these are included again)
|
||||
%if !0%{?sle_version} || %{?suse_version} >= 1599
|
||||
%package profiles-sap
|
||||
Summary: Additional tuned profile(s) targeted to SAP NetWeaver loads
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-sap
|
||||
Additional profile(s) for the tuned daemon, targeted to SAP NetWeaver loads.
|
||||
|
||||
%package profiles-sap-hana
|
||||
Summary: Additional tuned profile(s) targeted to SAP HANA loads
|
||||
Group: System/Base
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-sap-hana
|
||||
Additional profile(s) for the tuned daemon, targeted to SAP HANA loads.
|
||||
%endif
|
||||
|
||||
%package profiles-spectrumscale
|
||||
Summary: Additional tuned profile(s) optimized for IBM Spectrum Scale
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description profiles-spectrumscale
|
||||
Additional tuned profile(s) optimized for IBM Spectrum Scale.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
# The tuned daemon is written in pure Python. Nothing requires to be built.
|
||||
# Just a hack to avoid installation in a wrong directory
|
||||
sed -i 's|usr/libexec/tuned|%{profile_dir}|' Makefile
|
||||
sed -i 's|$(SYSCONFDIR)/modprobe.d|%{_modprobedir}|' Makefile
|
||||
sed -i 's|$(SYSCONFDIR)/dbus-1/system.d|%{_datadir}/dbus-1/system.d|' Makefile
|
||||
|
||||
%install
|
||||
%make_install TUNED_PROFILESDIR=%{profile_dir}
|
||||
%py3_compile %{buildroot}/%{python3_sitelib}
|
||||
rm -rf %{buildroot}/%{_datadir}/doc
|
||||
# Remove unwanted stuff instead of excluding them in files list
|
||||
rm -rf %{buildroot}%{profile_dir}/{default,desktop-powersave,laptop-ac-powersave,server-powersave,laptop-battery-powersave,enterprise-storage,spindown-disk}
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-compat.7
|
||||
ln -sf service %{buildroot}%{_sbindir}/rctuned
|
||||
|
||||
%if 0%{?sle_version} && %{?suse_version} < 1599
|
||||
rm -r %{buildroot}%{_prefix}/lib/tuned/sap-netweaver
|
||||
rm -r %{buildroot}%{_prefix}/lib/tuned/sap-hana
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-sap.7
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-sap-hana.7
|
||||
%endif
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service
|
||||
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service
|
||||
# Avoid restoring outdated stuff in posttrans
|
||||
[ ! -f "%{_sysconfdir}/modprobe.d/tuned.conf.rpmsave" ] || \
|
||||
mv -f "%{_sysconfdir}/modprobe.d/tuned.conf.rpmsave" "%{_sysconfdir}/modprobe.d/tuned.conf.rpmsave.old" || :
|
||||
|
||||
%posttrans
|
||||
# Migration of modprobe.conf files to _modprobedir
|
||||
[ ! -f "%{_sysconfdir}/modprobe.d/tuned.conf.rpmsave" ] || \
|
||||
mv -fv "%{_sysconfdir}/modprobe.d/tuned.conf.rpmsave" "%{_sysconfdir}/modprobe.d/tuned.conf" || :
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc AUTHORS README
|
||||
%{_datadir}/bash-completion/completions/tuned-adm
|
||||
%{_datadir}/polkit-1/actions/com.redhat.tuned.policy
|
||||
%{python3_sitelib}/tuned
|
||||
%{_sbindir}/tuned
|
||||
%{_sbindir}/tuned-adm
|
||||
%{_sbindir}/rctuned
|
||||
%dir %{profile_dir}
|
||||
%dir %{profile_dir}/recommend.d
|
||||
%exclude %{python3_sitelib}/tuned/gtk
|
||||
|
||||
# General files
|
||||
%{profile_dir}/pmqos-static.py
|
||||
%{profile_dir}/functions
|
||||
%{profile_dir}/recommend.d/50-tuned.conf
|
||||
%{profile_dir}/defirqaffinity.py
|
||||
|
||||
%if 0%{?sle_version} && %{?suse_version} < 1599
|
||||
%exclude %{_prefix}/lib/tuned/sap-netweaver
|
||||
%exclude %{_prefix}/lib/tuned/sap-hana
|
||||
%exclude %{_mandir}/man7/tuned-profiles-sap.7%{?ext_man}
|
||||
%exclude %{_mandir}/man7/tuned-profiles-sap-hana.7%{?ext_man}
|
||||
%endif
|
||||
|
||||
# Profiles included in main package - alphabetically sorted
|
||||
%{profile_dir}/accelerator-performance
|
||||
%{profile_dir}/aws
|
||||
%{profile_dir}/balanced
|
||||
%{profile_dir}/cpu-partitioning
|
||||
%{profile_dir}/cpu-partitioning-powersave
|
||||
%{profile_dir}/desktop
|
||||
%{profile_dir}/hpc-compute
|
||||
%{profile_dir}/intel-sst
|
||||
%{profile_dir}/latency-performance
|
||||
%{profile_dir}/mssql
|
||||
%{profile_dir}/network-latency
|
||||
%{profile_dir}/network-throughput
|
||||
%{profile_dir}/optimize-serial-console
|
||||
%{profile_dir}/powersave
|
||||
%{profile_dir}/throughput-performance
|
||||
%{profile_dir}/virtual-guest
|
||||
%{profile_dir}/virtual-host
|
||||
|
||||
# active_profile might be empty when built via build service, but typically
|
||||
# not on a real install -> better do not mark it %%ghost
|
||||
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/active_profile
|
||||
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
|
||||
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-powersave-variables.conf
|
||||
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
|
||||
%config(noreplace) %{_sysconfdir}/tuned/profile_mode
|
||||
%config(noreplace) %{_sysconfdir}/tuned/post_loaded_profile
|
||||
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
|
||||
%{_sysconfdir}/grub.d
|
||||
%{_tmpfilesdir}/tuned.conf
|
||||
%{_unitdir}/tuned.service
|
||||
%{_modprobedir}/tuned.conf
|
||||
%{_datadir}/dbus-1/system.d/com.redhat.tuned.conf
|
||||
%attr(750, root, root) %dir %{_localstatedir}/log/tuned
|
||||
%dir %{_sysconfdir}/tuned
|
||||
%{_mandir}/man5/tuned*
|
||||
%{_mandir}/man7/tuned-profiles-cpu-partitioning.7%{?ext_man}
|
||||
%{_mandir}/man7/tuned-profiles.7%{?ext_man}
|
||||
%{_mandir}/man7/tuned-profiles-mssql.7%{?ext_man}
|
||||
%{_mandir}/man8/tuned*
|
||||
%dir %{_datadir}/tuned
|
||||
%ghost %dir /run/tuned
|
||||
%dir %{_prefix}/lib/kernel
|
||||
%dir %{_prefix}/lib/kernel/install.d
|
||||
%{_prefix}/lib/kernel/install.d/92-tuned.install
|
||||
|
||||
%files gtk
|
||||
%dir %{_datadir}/icons/hicolor
|
||||
%dir %{_datadir}/icons/hicolor/*/
|
||||
%dir %{_datadir}/icons/hicolor/*/apps
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
%{_datadir}/applications/tuned-gui.desktop
|
||||
%{_sbindir}/tuned-gui
|
||||
%{python3_sitelib}/tuned/gtk
|
||||
%{_datadir}/tuned/ui
|
||||
|
||||
%if !0%{?sle_version} || %{?suse_version} >= 1599
|
||||
%files profiles-sap
|
||||
%{profile_dir}/sap-netweaver
|
||||
%{_mandir}/man7/tuned-profiles-sap.7%{?ext_man}
|
||||
|
||||
%files profiles-sap-hana
|
||||
%{profile_dir}/sap-hana
|
||||
%{_mandir}/man7/tuned-profiles-sap-hana.7%{?ext_man}
|
||||
%endif
|
||||
|
||||
%files profiles-atomic
|
||||
%{profile_dir}/atomic-host
|
||||
%{profile_dir}/atomic-guest
|
||||
%{_mandir}/man7/tuned-profiles-atomic.7%{?ext_man}
|
||||
|
||||
%files profiles-realtime
|
||||
%config(noreplace) %{_sysconfdir}/tuned/realtime-variables.conf
|
||||
%{profile_dir}/realtime
|
||||
%{_mandir}/man7/tuned-profiles-realtime.7%{?ext_man}
|
||||
|
||||
%files profiles-oracle
|
||||
%{profile_dir}/oracle
|
||||
%{_mandir}/man7/tuned-profiles-oracle.7%{?ext_man}
|
||||
|
||||
%files profiles-nfv
|
||||
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
|
||||
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
|
||||
%{profile_dir}/realtime-virtual-guest
|
||||
%{profile_dir}/realtime-virtual-host
|
||||
%{_mandir}/man7/tuned-profiles-nfv-*.7%{?ext_man}
|
||||
|
||||
%files profiles-postgresql
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}/lib/tuned/postgresql
|
||||
%{_mandir}/man7/tuned-profiles-postgresql.7*
|
||||
|
||||
%files profiles-spectrumscale
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}/lib/tuned/spectrumscale-ece
|
||||
%{_mandir}/man7/tuned-profiles-spectrumscale-ece.7*
|
||||
|
||||
%files profiles-openshift
|
||||
%defattr(-,root,root,-)
|
||||
%{profile_dir}/openshift-control-plane
|
||||
%{profile_dir}/openshift-node
|
||||
%{profile_dir}/openshift
|
||||
%{_mandir}/man7/tuned-profiles-openshift.7%{?ext_man}
|
||||
|
||||
%files utils
|
||||
%license COPYING
|
||||
%{_bindir}/powertop2tuned
|
||||
|
||||
%files utils-systemtap
|
||||
%license COPYING
|
||||
%doc doc/README.utils doc/README.scomes
|
||||
%{_sbindir}/varnetload
|
||||
%{_sbindir}/netdevstat
|
||||
%{_sbindir}/diskdevstat
|
||||
%{_sbindir}/scomes
|
||||
%{_mandir}/man8/varnetload.*
|
||||
%{_mandir}/man8/netdevstat.*
|
||||
%{_mandir}/man8/diskdevstat.*
|
||||
%{_mandir}/man8/scomes.*
|
||||
|
||||
%changelog
|
@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/redhat-performance/tuned</param>
|
||||
<param name="changesrevision">b894a3ee3f0e0782963ee1268c819ebc437398d3</param></service></servicedata>
|
||||
<param name="changesrevision">ce3d0926289942407cf7bdc717c464e9bf3079df</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b0a5eb4f12caa75364e1d7a79b16055d21f2aa80b3b47571f6272ffbfbb5bb6b
|
||||
size 1017356
|
3
tuned-2.20.0.0+git.ce3d092.obscpio
Normal file
3
tuned-2.20.0.0+git.ce3d092.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:816ff81544a5ac0421bc3a14a23d5db872b541c597a7b48fa4d3cdb4ee57e6d8
|
||||
size 1043980
|
@ -1,3 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 20 05:32:32 UTC 2023 - trenn@suse.de
|
||||
|
||||
- Remove old outdated spec scripts before suse_version 1500
|
||||
- Separate SAP and related profiles to not be installed in SLE 15 SPx
|
||||
and older, but add them with openSUSE (as before), ALP and upcoming
|
||||
SLE distros
|
||||
- Update to version 2.20.0.0+git.ce3d092:
|
||||
* new release (2.20.0)
|
||||
* tuned-adm: better error message for unauthorized switch_profile
|
||||
* man: updated manual pages to be more consistent
|
||||
* spec: dropped unneeded ncat dependency
|
||||
* fix log error
|
||||
* Report reapplied sysctls only on different values
|
||||
* Fixing no _evlist attribute when run without daemon
|
||||
* fix 'is_active' does not work
|
||||
* new release (2.20.0-rc.1)
|
||||
* build: fixed FTBFS with python2
|
||||
* Expose TuneD API to the Unix Domain Socket.
|
||||
* Inform users about reapplied sysctls
|
||||
* API: add support for moving devices between instances
|
||||
* throughput-performance: set net.core.somaxconn to at least 2048
|
||||
* Adding support for cpu intel_pstate scaling driver
|
||||
* configparser: use no strict parser to mimic old behavior
|
||||
* Adding pm_qos_resume_latency_us option for cpu plugin.i
|
||||
* Makefile: added fix for python-3.12
|
||||
* D-Bus: only send tracebacks through the D-Bus if in the debug mode
|
||||
* update vendor_url in policy file
|
||||
* correct section of the tuned-profiles-openshift manpage
|
||||
* Allow selecting a different pkg-config executable
|
||||
* fix tuned/gtk/gui_profile_loader.py spell error
|
||||
* bootloader: create bootcmdline even when skip_grub_config=true
|
||||
* profiles: added aws profile for aws ec2 instances
|
||||
* Closing fd from perf module in scheduler plugin
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 27 15:45:40 UTC 2022 - trenn@suse.de
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: tuned
|
||||
version: 2.19.0.29+git.b894a3e
|
||||
mtime: 1670495290
|
||||
commit: b894a3ee3f0e0782963ee1268c819ebc437398d3
|
||||
version: 2.20.0.0+git.ce3d092
|
||||
mtime: 1676667418
|
||||
commit: ce3d0926289942407cf7bdc717c464e9bf3079df
|
||||
|
41
tuned.spec
41
tuned.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package tuned
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
%define profile_dir %{_prefix}/lib/%{name}
|
||||
Name: tuned
|
||||
Version: 2.19.0.29+git.b894a3e
|
||||
Version: 2.20.0.0+git.ce3d092
|
||||
Release: 0
|
||||
Summary: A dynamic adaptive system tuning daemon
|
||||
License: GPL-2.0-or-later
|
||||
@ -140,8 +140,8 @@ Requires: %{name} = %{version}
|
||||
Additional profile(s) for the tuned daemon, targeted to realtime.
|
||||
|
||||
# Do not ship SAP profiles for SLE and Leap, there are other packages
|
||||
# providing these profiles
|
||||
%if !0%{?sle_version}
|
||||
# providing these profiles (starting with ALP these are included again)
|
||||
%if !0%{?sle_version} || %{?suse_version} >= 1599
|
||||
%package profiles-sap
|
||||
Summary: Additional tuned profile(s) targeted to SAP NetWeaver loads
|
||||
Group: System/Base
|
||||
@ -185,18 +185,16 @@ rm -rf %{buildroot}%{profile_dir}/{default,desktop-powersave,laptop-ac-powersave
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-compat.7
|
||||
ln -sf service %{buildroot}%{_sbindir}/rctuned
|
||||
|
||||
%if 0%{?sle_version} && %{?suse_version} < 1599
|
||||
rm -r %{buildroot}%{_prefix}/lib/tuned/sap-netweaver
|
||||
rm -r %{buildroot}%{_prefix}/lib/tuned/sap-hana
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-sap.7
|
||||
rm %{buildroot}%{_mandir}/man7/tuned-profiles-sap-hana.7
|
||||
%endif
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service
|
||||
%if 0%{?suse_version} <= 1320
|
||||
systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf >/dev/null 2>&1 || :
|
||||
%else
|
||||
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
||||
%endif
|
||||
# convert active_profile from full path to name (if needed)
|
||||
sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||
%if 0%{?suse_version} < 1500
|
||||
%desktop_database_post
|
||||
%endif
|
||||
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service
|
||||
@ -214,9 +212,6 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service
|
||||
%if 0%{?suse_version} < 1500
|
||||
%desktop_database_postun
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
@ -237,9 +232,16 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||
%{profile_dir}/recommend.d/50-tuned.conf
|
||||
%{profile_dir}/defirqaffinity.py
|
||||
|
||||
%if 0%{?sle_version} && %{?suse_version} < 1599
|
||||
%exclude %{_prefix}/lib/tuned/sap-netweaver
|
||||
%exclude %{_prefix}/lib/tuned/sap-hana
|
||||
%exclude %{_mandir}/man7/tuned-profiles-sap.7%{?ext_man}
|
||||
%exclude %{_mandir}/man7/tuned-profiles-sap-hana.7%{?ext_man}
|
||||
%endif
|
||||
|
||||
# Profiles included in main package - alphabetically sorted
|
||||
%{profile_dir}/accelerator-performance
|
||||
%{profile_dir}/balanced
|
||||
%{profile_dir}/aws
|
||||
%{profile_dir}/balanced
|
||||
%{profile_dir}/cpu-partitioning
|
||||
%{profile_dir}/cpu-partitioning-powersave
|
||||
@ -274,7 +276,6 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||
%dir %{_sysconfdir}/tuned
|
||||
%{_mandir}/man5/tuned*
|
||||
%{_mandir}/man7/tuned-profiles-cpu-partitioning.7%{?ext_man}
|
||||
%{_mandir}/man7/tuned-profiles-cpu-partitioning-powersave.7%{?ext_man}
|
||||
%{_mandir}/man7/tuned-profiles.7%{?ext_man}
|
||||
%{_mandir}/man7/tuned-profiles-mssql.7%{?ext_man}
|
||||
%{_mandir}/man8/tuned*
|
||||
@ -294,7 +295,7 @@ sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' %{_sysconfdir}/tuned/active_profile
|
||||
%{python3_sitelib}/tuned/gtk
|
||||
%{_datadir}/tuned/ui
|
||||
|
||||
%if !0%{?sle_version}
|
||||
%if !0%{?sle_version} || %{?suse_version} >= 1599
|
||||
%files profiles-sap
|
||||
%{profile_dir}/sap-netweaver
|
||||
%{_mandir}/man7/tuned-profiles-sap.7%{?ext_man}
|
||||
|
Loading…
x
Reference in New Issue
Block a user