### The author of uksmd # Oleksandr Natalenko ### The authors of linux-cachyos port: # Piotr Gorski sirlucjan # Damian N. ### The port maintainer for Fedora: # bieszczaders # https://copr.fedorainfracloud.org/coprs/bieszczaders/ %define _disable_source_fetch 0 Name: uksmd Summary: Userspace KSM helper daemon (CachyOS branding) Version: 1.1.0 Release: 1%{?dist} License: GPLv3 URL: https://github.com/CachyOS/uksmd Source0: %url/archive/v%{version}.tar.gz BuildRequires: meson BuildRequires: gcc BuildRequires: git BuildRequires: cmake BuildRequires: libcap-ng BuildRequires: libcap-ng-devel BuildRequires: procps-ng BuildRequires: procps-ng-devel BuildRequires: systemd BuildRequires: systemd-devel Requires: libcap-ng Requires: libcap-ng-devel Requires: procps-ng Requires: procps-ng-devel %description The daemon goes through the list of userspace tasks (once per 5 seconds) and hints them to apply MADV_MERGEABLE to anonymous mappings for ksmd kthread to merge memory pages with the same content. Only long-living tasks are hinted (those that were launched more than 10 seconds ago). This requires pmadv_ksm() syscall, which is available in linux-cachyos-bore/linux-cachyos-bore-lto kernels. %prep %setup -q -n %{name}-%{version} %autosetup -c %build cd %{name}-%{version} # Decreasing the meson version to satisfy dependencies sed -i 's/0.64.0/0.63.3/g' meson.build %meson %meson_build %install cd %{name}-%{version} %meson_install %files /usr/bin/uksmd /usr/bin/uksmdstats /usr/lib/systemd/system/uksmd.service /usr/share/licenses/uksmd/LICENSE %changelog * Thu Feb 09 2023 lucjan - 1.1.0-1 - Update to 1.1.0 * Mon Jan 30 2023 lucjan - 1.0.0-4 - Improve spec file * Mon Jan 30 2023 lucjan - 1.0.0-3 - Fix download bug * Mon Jan 30 2023 lucjan - 1.0.0-2 - Fix debug files * Mon Jan 30 2023 lucjan - 1.0.0-1 - Add uksmd for Fedora