%global debug_package %{nil} %global commit 6164bc3dec24b6bb2806eedd269df6a170bcc930 %global short_commit %(echo %{commit} | cut -c1-9) Name: framework-laptop Version: 0 Release: 1+%{short_commit}%{?dist} Summary: Kernel module to expose more Framework Laptop stuff License: GPLv2 URL: https://github.com/DHowett/framework-laptop-kmod Source0: %{url}/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz Source1: modules-load-d-%{name}.conf BuildRequires: systemd-rpm-macros Provides: %{name}-kmod-common = %{version}-%{release} Requires: %{name}-kmod >= %{version} Conflicts: xow <= 0.5 Obsoletes: xow <= 0.5 %description A kernel module that exposes the Framework Laptop (13, 16)'s battery charge limit and LEDs to userspace. %prep %autosetup -n %{name}-kmod-%{commit} %build # Nothing to build %install install -D -m 0644 %{SOURCE1} %{buildroot}%{_modulesloaddir}/%{name}.conf %check # Nothing to check %files %license LICENSE %{_modulesloaddir}/%{name}.conf %changelog * Sun Jul 27 2025 Jan200101 - 0-1+6164bc3de - initial spec