Blame SPECS/ksmtuned.spec

53bc18
Name: ksmtuned
53bc18
Version: 0.1.0
53bc18
Release: 1%{?dist}
53bc18
53bc18
Summary: Kernel Samepage Merging services
53bc18
License: GPLv2+
53bc18
URL: https://github.com/ksmtuned/ksmtuned
53bc18
Source0: https://github.com/ksmtuned/ksmtuned/archive/v%{version}/ksmtuned-%{version}.tar.gz
53bc18
53bc18
# Source-git patches
53bc18
53bc18
BuildRequires: gcc
53bc18
BuildRequires: meson
53bc18
%{?systemd_requires}
53bc18
BuildRequires: systemd
53bc18
53bc18
53bc18
%description
53bc18
Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature,
53bc18
that merges anonymous (private) pages (not pagecache ones).
53bc18
53bc18
This package provides service files for disabling (ksm) and tuning
53bc18
(ksmtuned)
53bc18
53bc18
53bc18
%prep
53bc18
%autosetup -p1
53bc18
53bc18
53bc18
%build
53bc18
%meson \
53bc18
    -Dredhat-sysconfig=true
53bc18
%meson_build
53bc18
53bc18
53bc18
%install
53bc18
%meson_install
53bc18
53bc18
53bc18
%post
53bc18
%systemd_post ksm.service
53bc18
%systemd_post ksmtuned.service
53bc18
%preun
53bc18
%systemd_preun ksm.service
53bc18
%systemd_preun ksmtuned.service
53bc18
%postun
53bc18
%systemd_postun_with_restart ksm.service
53bc18
%systemd_postun_with_restart ksmtuned.service
53bc18
53bc18
53bc18
%files
53bc18
%license COPYING
53bc18
%{_libexecdir}/ksmctl
53bc18
%{_sbindir}/ksmtuned
53bc18
%{_unitdir}/ksmtuned.service
53bc18
%{_unitdir}/ksm.service
53bc18
%config(noreplace) %{_sysconfdir}/ksmtuned.conf
53bc18
%config(noreplace) %{_sysconfdir}/sysconfig/ksm
53bc18
53bc18
53bc18
%changelog
53bc18
* Wed Oct 06 2021 Miroslav Rezanina <mrezanin@redhat.com> - 0.1.0-1
53bc18
- Initial build [bz#1972158]
53bc18
- Resolves: bz#1972158
53bc18
  (Add ksmtuned component to RHEL 9)