%global snap_tstamp 20241219 %global commit 87fd7545409f3d0dc5d4fbf4966778077294a8e5 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Summary: Dynamic Kernel Module Support Framework Name: dkms Version: 3.1.4 Release: 0.%{snap_tstamp}git%{shortcommit}%{?dist} License: GPL-2.0-or-later URL: http://linux.dell.com/dkms BuildArch: noarch Source0: https://github.com/anbe42/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: make BuildRequires: systemd Requires: coreutils Requires: cpio Requires: elfutils-libelf-devel Requires: file Requires: findutils Requires: gawk Requires: gcc Requires: grep Requires: gzip Requires: kmod Requires: make Requires: patch Requires: sed Requires: tar Requires: which Requires: (kernel-debug-devel-matched if kernel-debug-core) Requires: (kernel-devel-matched if kernel-core) # RT kernel has no matched: Requires: (kernel-rt-devel if kernel-rt-core) Requires: (kernel-rt-debug-devel if kernel-rt-debug-core) Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Recommends: openssl %description This package contains the framework for the Dynamic Kernel Module Support (DKMS) method for installing module RPMS as originally developed by Dell. %prep %autosetup -p1 -n %{name}-%{commit} %install make install-redhat DESTDIR=%{buildroot} sed -i -e 's/# modprobe_on_install="true"/modprobe_on_install="true"/g' %{buildroot}%{_sysconfdir}/%{name}/framework.conf %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun %{name}.service %files %license COPYING %doc README.md images %{_prefix}/lib/%{name} %{_prefix}/lib/kernel/install.d/40-%{name}.install %{_mandir}/man8/dkms.8* %{_sbindir}/%{name} %{_sharedstatedir}/%{name} %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/framework.conf %dir %{_sysconfdir}/%{name}/framework.conf.d %{_datadir}/bash-completion/completions/%{name} %{_datadir}/zsh/site-functions/_%{name} %{_unitdir}/%{name}.service %changelog * Tue Dec 19 2024 David Sommerseth - 3.1.4-0.20241219git87fd754 - Test packaging of https://github.com/anbe42/dkms/tree/kernel-prerm