Blame SPECS/ksmtuned.spec

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