# Define rpm macros directory for rhel6 and rhel7 %{!?_rpmmacrodir: %define _rpmmacrodir /usr/lib/rpm/macros.d} Name: kmodtool Version: 1.1 Release: 11%{?dist} Summary: Tool for building kmod packages License: MIT URL: http://rpmfusion.org/Packaging/KernelModules/Kmods2 # We are upstream, these files are maintained directly in pkg-git Source1: %{name}-kmodtool Source2: %{name}-kernel-variants Source3: kmodtool-brp-kmodsign Source4: macros.kmodtool BuildArch: noarch %description This package contains tools and list of recent kernels that get used when building kmod-packages. %prep # nothing to prep %build # nothing to build %install mkdir -p -m 0755 %{buildroot}%{_bindir} \ %{buildroot}%{_datadir}/%{name} \ %{buildroot}%{_rpmconfigdir} \ %{buildroot}%{_rpmmacrodir} install -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/kmodtool install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/kernel-variants install -p -m 0755 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/brp-kmodsign install -p -m 0644 %{SOURCE4} %{buildroot}%{_rpmmacrodir}/ %files %{_bindir}/* %{_datadir}/%{name} %{_rpmconfigdir}/brp-kmodsign %{_rpmmacrodir}/macros.kmodtool %changelog * Sat Feb 24 2024 Sérgio Basto - 1.1-11 - Revert "Add installonlypkg(kernel-module)", only happens when we are buildding with rhel_kabi - Parcial revert use of kernel_uname_r_short, kernel_uname_r_wo_arch and kernel_uname_r_short_plus_one variables, only happens when we are buildding with rhel_kabi * Thu Jan 25 2024 Fedora Release Engineering - 1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 12 2023 FeRD (Frank Dana) - 1.1-6 - Fix usage output on unrecognized argument * Thu Jul 21 2022 Fedora Release Engineering - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sun Apr 03 2022 Sérgio Basto - 1.1-4 - kernel-abi-whitelists is not needed and break builds on el9 * Thu Jan 20 2022 Fedora Release Engineering - 1.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 20 2021 Nicolas Chauvet - 1.1-2 - Revert suse commit in kmodtool * Fri Oct 22 2021 Nicolas Viéville - 1.1-1 - Add signing module method to use with UEFI Secure Boot machines thanks to Stanislas Leduc (#1454824) (reworked method) - Add as well zipping module method and support for it in Fedora and RHEL * Fri Oct 22 2021 Nicolas Viéville - 1-44 - Fix indentation - Add installonlypkg(kernel-module) to allow kmod packages co-install (RHEL) - Convert if statement from "[!] $variable" to "[!] -n $variable" - Remove unused variables and code - Force remove temporary file - Remove grep pipe after find command - Standardize globally kmod package names macros and kernel_uname_r variables in order to ease the build of kmod packages for non-default distribution (Fedora), for example for RHEL - Try to fix: check if uname from Makefile is the same as kernel variable * Thu Jul 22 2021 Fedora Release Engineering - 1-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 06 2020 Neal Gompa - 1-40 - Always use /lib/modules for kmod install path * Mon Jul 06 2020 Neal Gompa - 1-39 - Don't force-disable debuginfo subpackages * Wed Jan 29 2020 Fedora Release Engineering - 1-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 13 2019 Sérgio Basto - 1-37 - Fix package name in epel scriptlets * Thu Oct 10 2019 Leigh Scott - 1-36 - Fix naming conflict with kmod meta package * Thu Jul 25 2019 Fedora Release Engineering - 1-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 16 2019 Nicolas Chauvet - 1-34 - Add _kmodtool_depmod_post - rhbz#1703715 * Thu Feb 28 2019 Alexander Larsson - 1-33 - Call akmods-ostree-post to support ostree/silverblue builds - rhbz#1667014 * Fri Feb 01 2019 Fedora Release Engineering - 1-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 07 2018 Nicolas Viéville - 1-31 - Update copyrights - Add BuildRequires for gcc to build kmod modules for fc29+ * Fri Jul 13 2018 Fedora Release Engineering - 1-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Mar 26 2018 Nicolas Chauvet - 1-29 - Update copyrights - Drop Group field - Patches from Nicolas Vieville - Enhancements for RHEL kernel: - remove unneeded uname-r sub-package for RHEL - enforce a range dependency for kernels - register modules with /usr/sbin/weak-modules - use depmod as seen in example file /usr/lib/rpm/redhat/kmodtool - Add -e to depmod. * Wed Feb 07 2018 Fedora Release Engineering - 1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Oct 09 2017 Robert Scheck - 1-27 - Revert my previous conditional fix for (/usr)/sbin/depmod and apply the kmodtool patch by Nicolas Vieville (#1484293) * Tue Sep 19 2017 Robert Scheck - 1-26 - Add conditional fix for (/usr)/sbin/depmod for RHEL/CentOS 6 * Wed Jul 26 2017 Fedora Release Engineering - 1-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Feb 16 2017 Hans de Goede - 1-24 - Modernize .spec a bit - Submit to Fedora for package review * Sat Dec 07 2013 Nicolas Chauvet - 1-23 - Add support for lpae kernel variant for ARM * Sat Feb 23 2013 Nicolas Chauvet - 1-22 - Fix directory ownership rfbz#2684 * Mon Sep 03 2012 Nicolas Chauvet - 1-21 - Add ARM varriant * Sat May 26 2012 Nicolas Chauvet - 1-20 - Fix for depmod - rfbz#2340 * Wed Feb 01 2012 Nicolas Chauvet - 1-19 - Update to 0.12.0 * Sun Mar 29 2009 Thorsten Leemhuis - 1-18 - rebuild for new F11 features * Thu Feb 26 2009 Thorsten Leemhuis - 1-17 - add support for obsoletes to kmodtool * Sun Feb 01 2009 Thorsten Leemhuis - 1-16 - add posttrans hooks to akmod packages, to make akmods build them after install or update * Sat Jan 31 2009 Thorsten Leemhuis - 1-15 - require kmod-${kmodname}-${kernel_uname_r} with >= in meta package to avoid problems if user has a newer akmods package that wants to install a newer kmod-${kmodname}-${kernel_uname_r} * Sun Dec 14 2008 Thorsten Leemhuis - 1-14 - don't require the kmod-meta package in kmod-(uname -r) packages * Tue Sep 30 2008 Thorsten Leemhuis - 1-13 - rebuild for RPM Fusion * Sat Aug 02 2008 Thorsten Leemhuis - 1-12 - fix #2056 (kmod provides in akmod package needs epoch) * Sat Jun 14 2008 Thorsten Leemhuis - 1-11 - fix #2011 * Sun Apr 06 2008 Thorsten Leemhuis - 1-10 - use better Requires and BuildRequires to avoid fileslist download * Sat Mar 29 2008 Thorsten Leemhuis - 1-9 - adjust to recent "arch and flavor in uname" changes from j-rod * Sat Feb 23 2008 Thorsten Leemhuis - 1-8 - add AkmodsBuildRequires stuff to akmods template, so those rare kmod packages that need special BR can be added to the akmod package * Sat Jan 26 2008 Thorsten Leemhuis - 1-7 - fix the akmods vs. akmod confusion and use akmod normally * Wed Jan 09 2008 Thorsten Leemhuis - 1-6 - integrate akmodstool into kmodtool * Mon Dec 17 2007 Thorsten Leemhuis - 1-5 - update kmodtool, so the kmod-foo- package does not require the kmod-foo package when building for kernels that were passed with for-kernels * Tue Dec 04 2007 Thorsten Leemhuis - 1-4 - update kmodtool, so the kmod-foo metapackage requires the proper version of the kmod-foo- package * Tue Dec 04 2007 Thorsten Leemhuis - 1-3 - update kmodtool, so the kmod-foo metapackage provides foo-kmod (which it only indirectly does); that should fix #1742, as kmod-foo has a shorter name now then kmod-foo- * Sat Dec 01 2007 Thorsten Leemhuis - 1-2 - update kmodtool, so the kmod-foo- package tracks in kmod-foo * Sun Oct 28 2007 Thorsten Leemhuis - 1-1 - split buildsys stuff out into a seperate package - rename kmod-helpers-livna to kmodtool - add proper obsoletes - make package noarch * Sat Oct 27 2007 Thorsten Leemhuis - 16-2 - Update to latest kernels 2.6.23.1-35.fc8 2.6.21-2950.fc8xen * Sat Oct 27 2007 Thorsten Leemhuis - 16-1 - Update to latest kernels 2.6.23.1-35.fc8 2.6.21-2949.fc8xen * Thu Oct 18 2007 Thorsten Leemhuis - 15-1 - rebuilt for latest kernels * Thu Oct 18 2007 Thorsten Leemhuis - 14-1 - rebuilt for latest kernels * Thu Oct 18 2007 Thorsten Leemhuis - 13-1 - rebuilt for latest kernels * Thu Oct 18 2007 Thorsten Leemhuis - 12-1 - rebuilt for latest kernels * Fri Oct 12 2007 Thorsten Leemhuis - 11-1 - rebuilt for latest kernels * Thu Oct 11 2007 Thorsten Leemhuis - 10-1 - rebuilt for latest kernels * Wed Oct 10 2007 Thorsten Leemhuis - 9-2 - fix typo * Wed Oct 10 2007 Thorsten Leemhuis - 9-1 - rebuilt for latest kernels * Sun Oct 07 2007 Thorsten Leemhuis - 8-1 - update for 2.6.23-0.224.rc9.git6.fc8 * Sun Oct 07 2007 Thorsten Leemhuis - 7-1 - update for 2.6.23-0.222.rc9.git1.fc8 * Wed Oct 03 2007 Thorsten Leemhuis - 6-1 - update for 2.6.23-0.217.rc9.git1.fc8 and 2.6.21-2947.fc8xen * Wed Oct 03 2007 Thorsten Leemhuis - 5-1 - disable --all-but-latest stuff -- does not work as expected - rename up2date list of kernels from "latest" to "current" as latest and newest are to similar in wording; asjust script as well - kmodtool: don't provide kernel-modules, not needed anymore with the new stayle and hurts * Sun Sep 09 2007 Thorsten Leemhuis - 4-2 - fix typos in spec file and list-kernels script - interdependencies between the two buildsys-build packages needs to be arch specific as well * Sun Sep 09 2007 Thorsten Leemhuis - 4-1 - s/latests/latest/ - update kernel lists for rawhide and test2 kernels - make kmod-helpers-livna-list-kernels print BuildRequires for all kernels as well; this is not needed and will slow build a bit as it will track all the kernel-devel packages in, but that way we make sure they are really available in the buildsys * Fri Sep 07 2007 Thorsten Leemhuis - 3-4 - implement proper arch deps * Fri Sep 07 2007 Thorsten Leemhuis - 3-3 - proper list of todays rawhide-kernels * Fri Sep 07 2007 Thorsten Leemhuis - 3-2 - fix typo in kmod-helpers-livna-latests-kernels * Fri Sep 07 2007 Thorsten Leemhuis - 3-1 - adjust for devel * Sat Sep 01 2007 Thorsten Leemhuis - 2-1 - initial package