diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce42633 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ksmtuned-0.1.0.tar.gz diff --git a/ksmtuned.spec b/ksmtuned.spec new file mode 100644 index 0000000..2ec7d07 --- /dev/null +++ b/ksmtuned.spec @@ -0,0 +1,64 @@ +Name: ksmtuned +Version: 0.1.0 +Release: 1%{?dist} + +Summary: Kernel Samepage Merging services +License: GPLv2+ +URL: https://github.com/ksmtuned/ksmtuned +Source0: https://github.com/ksmtuned/ksmtuned/archive/v%{version}/ksmtuned-%{version}.tar.gz + +# Package was originally 'ksm' as a subpackage of 'qemu' +Obsoletes: ksm < 3.0.0-0.2 + +BuildRequires: gcc +BuildRequires: meson +%{?systemd_requires} +BuildRequires: systemd + + +%description +Kernel Samepage Merging (KSM) is a memory-saving de-duplication feature, +that merges anonymous (private) pages (not pagecache ones). + +This package provides service files for disabling (ksm) and tuning +(ksmtuned) + + +%prep +%autosetup -p1 + + +%build +%meson \ + -Dredhat-sysconfig=true +%meson_build + + +%install +%meson_install + + +%post +%systemd_post ksm.service +%systemd_post ksmtuned.service +%preun +%systemd_preun ksm.service +%systemd_preun ksmtuned.service +%postun +%systemd_postun_with_restart ksm.service +%systemd_postun_with_restart ksmtuned.service + + +%files +%license COPYING +%{_libexecdir}/ksmctl +%{_sbindir}/ksmtuned +%{_unitdir}/ksmtuned.service +%{_unitdir}/ksm.service +%config(noreplace) %{_sysconfdir}/ksmtuned.conf +%config(noreplace) %{_sysconfdir}/sysconfig/ksm + + +%changelog +* Mon Aug 13 2018 Cole Robinson - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..da0e9a5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ksmtuned-0.1.0.tar.gz) = 04e7d43d659039b1feff32f917e6ff630a02c1348af8e587a0afed06761282046df18799aeaaa5cf13db7b9a25f66e7a07e14ebe40e7d719aa3cdf2f5073ed2c