Name: kmod Version: 32 Release: 1mamba Summary: Utilities for Linux kernel module handling Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git Source0: http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-%{version}.tar.xz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: liblzma-devel BuildRequires: libopenssl-devel BuildRequires: libz-devel BuildRequires: libzstd-devel ## AUTOBUILDREQ-END Requires: libkmod = %{?epoch:%epoch:}%{version}-%{release} Provides: module-init-tools Obsoletes: module-init-tools < 28 # Compatibility stuff Provides: init_tools Provides: modutils Obsoletes: modutils < 28 Provides: klibc-module-init-tools Obsoletes: klibc-module-init-tools < 28 %description kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases. These tools are designed on top of libkmod, a library that is shipped with kmod. The aim is to be compatible with tools, configurations and indexes from module-init-tools project. %package -n libkmod Group: System/Libraries Summary: Shared librarie for Linux kernel module handling %description -n libkmod The goal of the library libkmod is to offer to other programs the needed flexibility and fine grained control over insertion, removal, configuration and listing of kernel modules. %package -n libkmod-devel Group: Development/Libraries Summary: Development files for libkmod Requires: libkmod = %{?epoch:%epoch:}%{version}-%{release} %description -n libkmod-devel This package contains libraries and header files for developing applications that use libkmod. %debug_package %prep %setup -q cp libkmod/README README.libkmod %build %configure \ --with-xz \ --with-zlib \ --with-zstd \ --with-openssl \ --enable-debug # --with-zlib # --with-xz %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -d %{buildroot}%{_sysconfdir}/modprobe.d install -d %{buildroot}%{_sysconfdir}/depmod.d install -d %{buildroot}%{_prefix}/lib/depmod.d %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %posttrans # Migrate /lib/modprobe.d to /usr/lib/modprobe.d [ ! -L /lib -a ! -L /lib/modprobe.d ] && { for f in /lib/modprobe.d/*; do mv $f /usr/lib/modprobe.d/ done rmdir /lib/modprobe.d || mv /lib/modprobe.d /lib/modprobe.d.notmigrated ln -s ../usr/lib/modprobe.d /lib/modprobe.d ln -s ../usr/lib/depmod.d /lib/depmod.d } : %files %defattr(-,root,root) %dir %{_sysconfdir}/depmod.d %dir %{_sysconfdir}/modprobe.d %{_bindir}/kmod %{_bindir}/depmod %{_bindir}/insmod %{_bindir}/lsmod %{_bindir}/modinfo %{_bindir}/modprobe %{_bindir}/rmmod %{_bindir}/lsmod %dir %{_prefix}/lib/depmod.d %{_datadir}/bash-completion/completions/kmod %{_mandir}/man5/depmod.d.* %{_mandir}/man5/modprobe.d.* %{_mandir}/man5/modules.dep.* %{_mandir}/man8/depmod.* %{_mandir}/man8/kmod.8.* %{_mandir}/man8/insmod.* %{_mandir}/man8/lsmod.* %{_mandir}/man8/modinfo.* %{_mandir}/man8/modprobe.* %{_mandir}/man8/rmmod.* %files -n lib%{name} %defattr(-,root,root) %{_libdir}/libkmod.so.* %doc COPYING %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/libkmod.h %{_libdir}/libkmod.so %{_libdir}/pkgconfig/kmod.pc %{_libdir}/pkgconfig/libkmod.pc %doc NEWS TODO README.libkmod %changelog * Fri Mar 08 2024 Automatic Build System 32-1mamba - automatic version update by autodist * Sat Sep 30 2023 Automatic Build System 31-1mamba - automatic version update by autodist * Sun Jul 30 2023 Silvan Calarco 30-2mamba - remove lsmod symlink from /usr/bin * Thu Jul 07 2022 Automatic Build System 30-1mamba - automatic version update by autodist * Sat Dec 25 2021 Silvan Calarco 29-2mamba - rebuilt with openssl 3.0.1 * Fri May 21 2021 Automatic Build System 29-1mamba - automatic version update by autodist * Thu Apr 22 2021 Silvan Calarco 28-3mamba - restore --bindir=%{_sbindir} to fix major boot problems with systemd * Wed Apr 21 2021 Silvan Calarco 28-2mamba - rebuilt in flat /usr filesystem - migrate /lib/modprobe.d to /usr/lib/modprobe.d and add symlink - add configure options * Fri Jan 08 2021 Automatic Build System 28-1mamba - automatic version update by autodist * Wed Feb 19 2020 Automatic Build System 27-1mamba - automatic version update by autodist * Fri Feb 08 2019 Automatic Build System 26-1mamba - automatic version update by autodist * Sat Mar 24 2018 Silvan Calarco 25-1mamba - update to 25 * Fri Mar 03 2017 Automatic Build System 24-1mamba - automatic version update by autodist * Wed Jul 20 2016 Automatic Build System 23-1mamba - automatic version update by autodist * Wed Nov 18 2015 Automatic Build System 22-1mamba - automatic version update by autodist * Tue Jun 09 2015 Automatic Build System 21-1mamba - automatic version update by autodist * Wed Mar 11 2015 Automatic Build System 20-1mamba - automatic update by autodist * Tue Nov 18 2014 Automatic Build System 19-1mamba - automatic version update by autodist * Sun Jun 15 2014 Automatic Build System 18-1mamba - automatic version update by autodist * Mon Apr 07 2014 Automatic Build System 17-1mamba - automatic version update by autodist * Mon Dec 23 2013 Automatic Build System 16-1mamba - automatic version update by autodist * Sat Aug 24 2013 Automatic Build System 15-1mamba - automatic version update by autodist * Mon Jul 08 2013 Automatic Build System 14-1mamba - automatic version update by autodist * Fri Apr 26 2013 Silvan Calarco 13-3mamba - added upstream patch to fix null pointer error (and fix segmentation fault seen on rpi) - arm: revert for now finit_module logic patch to support older kernels on this architecture * Sun Apr 14 2013 Silvan Calarco 13-2mamba - provide and own /lib/modprobe.d directory * Wed Apr 10 2013 Automatic Build System 13-1mamba - automatic version update by autodist * Wed Dec 05 2012 Automatic Build System 12-1mamba - automatic version update by autodist * Thu Nov 08 2012 Automatic Build System 11-1mamba - automatic version update by autodist * Fri Sep 07 2012 Automatic Build System 10-1mamba - automatic version update by autodist * Sun Jul 22 2012 Davide Madrisan 9-1mamba - update to 9 * Mon May 14 2012 Davide Madrisan 8-1mamba - update to 8 * Sun May 13 2012 Silvan Calarco 7-2mamba - fixed /usr/bin/lsmod symlink * Mon Mar 19 2012 Davide Madrisan 7-1mamba - update to 7 * Sat Mar 17 2012 Davide Madrisan 6-1mamba - update to 6 * Sun Feb 12 2012 Silvan Calarco 5-2mamba - added upstream patch to fix infinite loop of vboxdrv due to /etc/modprobe.d file * Tue Feb 07 2012 Davide Madrisan 5-1mamba - update to 5 * Fri Jan 20 2012 Silvan Calarco 4-3mamba - added patch to prevent modprobe from failing when cwd contains a directory with module name * Wed Jan 18 2012 Davide Madrisan 4-2mamba - opsolete module-init-tools * Mon Jan 16 2012 Davide Madrisan 4-1mamba - update to 4 * Sun Jan 08 2012 Davide Madrisan 3-3mamba - mv libraries to %%{_lib} - add a debug package - add provides and conflicts tags required for backward compatibility * Sat Jan 07 2012 Davide Madrisan 3-2mamba - own %{_sysconfdir}/modprobe.d * Fri Jan 06 2012 Davide Madrisan 3-1mamba - update to version 3 - conflicts module-init-tools * Wed Dec 28 2011 Davide Madrisan 2-1mamba - package created by autospec