%global commit0 5ca628c40218d7deb4b94d6c568c078c68b9e1c6 %global date 20200214 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global tag 1 Summary: Dynamic Kernel Module Support Framework Name: dkms Version: 3.0.9 Release: 2%{?dist} License: GPLv2+ URL: http://linux.dell.com/dkms BuildArch: noarch %if 0%{?tag:1} Source0: https://github.com/dell/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %else Source0: https://github.com/dell/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz %endif Patch0: https://github.com/dell/dkms/commit/65d57133f1e87754520871ad98ef730fca66d1cc.patch 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: sed Requires: tar Requires: which Requires: (kernel-debug-devel-matched if kernel-debug-core) Requires: (kernel-devel-matched if kernel-core) Requires: (kernel-lpae-devel-matched if kernel-lpae-core) Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description This package contains the framework for the Dynamic Kernel Module Support (DKMS) method for installing module RPMS as originally developed by Dell. %prep %if 0%{?tag:1} %autosetup -p1 %else %autosetup -p1 -n %{name}-%{commit0} %endif %install make install-redhat \ DESTDIR=%{buildroot} \ LIBDIR=%{buildroot}%{_prefix}/lib/%{name} \ SYSTEMD=%{buildroot}%{_unitdir} install -p -m 755 -D kernel_install.d_dkms \ %{buildroot}%{_prefix}/lib/kernel/install.d/40-%{name}.install 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 %{_sysconfdir}/kernel/install.d/%{name} %{_sysconfdir}/kernel/postinst.d/%{name} %{_sysconfdir}/kernel/prerm.d/%{name} %{_datadir}/bash-completion/completions/%{name} %{_unitdir}/%{name}.service %changelog * Tue Dec 06 2022 Simone Caronni - 3.0.9-2 - Fix modprobe_on_install variable. * Mon Dec 05 2022 Simone Caronni - 3.0.9-1 - Update to 3.0.9. * Fri Oct 28 2022 Simone Caronni - 3.0.8-1 - Update to 3.0.8. * Tue Sep 27 2022 Simone Caronni - 3.0.7-1 - Update to 3.0.7. * Tue Aug 09 2022 Simone Caronni - 3.0.6-3 - Adjust kernel devel subpackage requirements. * Thu Jul 21 2022 Fedora Release Engineering - 3.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 15 2022 Simone Caronni - 3.0.6-1 - Update to 3.0.6. * Wed Jun 29 2022 Simone Caronni - 3.0.5-1 - Update to 3.0.5. * Sat Jun 18 2022 Simone Caronni - 3.0.4-1 - Update to 3.0.4. * Thu Jan 20 2022 Fedora Release Engineering - 3.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Dec 17 2021 Simone Caronni - 3.0.3-1 - Update to 3.0.3. * Sun Nov 21 2021 Simone Caronni - 3.0.2-1 - Update to 3.0.2. * Mon Nov 15 2021 Simone Caronni - 3.0.1-1 - Update to 3.0.1. - Re-enable modprobe on install. * Mon Nov 08 2021 Simone Caronni - 3.0.0-1 - Update to 3.0.0. * Sat Oct 30 2021 Simone Caronni - 2.8.8-1 - Update to 2.8.8. * Fri Oct 01 2021 Simone Caronni - 2.8.7-1 - Update to 2.8.7. * Sat Sep 04 2021 Simone Caronni - 2.8.6-1 - Update to 2.8.6. * Tue Aug 24 2021 Simone Caronni - 2.8.5-1 - Update to 2.8.5. * Wed Jul 21 2021 Fedora Release Engineering - 2.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 30 2020 Simone Caronni - 2.8.4-1 - Update to 2.8.4. * Mon Jul 27 2020 Fedora Release Engineering - 2.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 20 2020 Simone Caronni - 2.8.3-2 - Add make to requirements. * Wed Jul 15 2020 Simone Caronni - 2.8.3-1 - Update to 2.8.3. * Thu Jul 02 2020 Simone Caronni - 2.8.2-1 - Update to 2.8.2. - Add sign helper script sample to docs. * Wed Feb 19 2020 Martin Jackson - 2.8.1-4.20200214git5ca628c - Change mode to 755 for new install.d script. * Sat Feb 15 2020 Simone Caronni - 2.8.1-3.20200214git5ca628c - Update to latest snapshot. * Tue Jan 28 2020 Fedora Release Engineering - 2.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 01 2019 Simone Caronni - 2.8.1-1 - Update to 2.8.1. * Wed Jul 24 2019 Fedora Release Engineering - 2.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed May 15 2019 Simone Caronni - 2.7.1-1 - Update to 2.7.1. * Thu Jan 31 2019 Fedora Release Engineering - 2.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 2.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 09 2018 Simone Caronni - 2.6.1-1 - Update to 2.6.1. * Tue Mar 06 2018 Simone Caronni - 2.5.0-3.20180306gitb1b9033 - Update to latest snapshot. * Wed Feb 07 2018 Fedora Release Engineering - 2.5.0-2.20180124git215d01a - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 24 2018 Simone Caronni - 2.5.0-1.20180124git215d01a - Update to latest post 2.5.0 snapshot. - Trim changelog. - Remove support for CentOS/RHEL 6, as the last two versions were not compaible with it (bash too old, etc.). * Mon Oct 09 2017 Simone Caronni - 2.4.0-1.20170926git959bd74 - Update to latest commits post 2.4. - Add elfutils-libelf-devel build requirement. * Wed Jul 26 2017 Fedora Release Engineering - 2.3-6.20170523git8c3065c - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue May 23 2017 Simone Caronni - 2.3-5.20170523git8c3065c - Update to latest snapshot; lots of specific Red Hat/Fedora cleanups (obsolete Red Hat/Fedora code, Itanium support, /boot leftovers) and module autoload. * Wed Apr 05 2017 Simone Caronni - 2.3-4.20170313git974d838 - Update to latest snapshot. - Do not require wrong kernel-devel variant (#1436840). * Sat Feb 11 2017 Simone Caronni - 2.3-3.20161202gitde1dca9 - Require kernel-devel-uname-r in place of kernel-devel and suggest kernel-devel for Fedora (#1421106). * Fri Feb 10 2017 Fedora Release Engineering - 2.3-2.20161202gitde1dca9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Dec 02 2016 Simone Caronni - 2.3-1.20161101gitede1dca - Update to latest snapshot. - Adjust release tag to packaging guidelines. - Fix scriptlets. * Fri May 27 2016 Simone Caronni - 2.2.0.3-35.git.eb402f7 - Update to latest sources (#912300). * Wed May 25 2016 Simone Caronni - 2.2.0.3-34.git.9e0394d - Update to latest sources (#1334103). * Tue May 24 2016 Simone Caronni - 2.2.0.3-33.git.4c69692 - Remove RHEL 5 support from SPEC file, latest source code does not work on it. - Switch to new Github source code repository, adjust to packaging guidelines accordingly. - Adjust Fedora conditionals. * Wed Feb 03 2016 Fedora Release Engineering - 2.2.0.3-32.git.7c3e7c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild