2019-09-30 10:54:27 -04:00
|
|
|
Name: kmod
|
2022-07-26 14:32:05 +08:00
|
|
|
Version: 30
|
|
|
|
|
Release: 1
|
2019-09-30 10:54:27 -04:00
|
|
|
Summary: Kernel module management
|
|
|
|
|
# GPLv2+ is used by programs, LGPLv2+ is used for libraries.
|
|
|
|
|
License: GPLv2+ and LGPLv2+
|
|
|
|
|
URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
|
|
|
|
|
Source0: https://www.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: weak-modules
|
|
|
|
|
Source2: depmod.conf.dist
|
|
|
|
|
|
2020-04-24 16:07:43 +08:00
|
|
|
BuildRequires: gcc chrpath zlib-devel xz-devel libxslt openssl-devel
|
2019-09-30 10:54:27 -04:00
|
|
|
|
|
|
|
|
Provides: module-init-tools = 4.0-1
|
|
|
|
|
Provides: /sbin/modprobe
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The kmod package provides several commands to manage the kernel modules,
|
|
|
|
|
such as insmod to load and rmmod to unload the modules.
|
|
|
|
|
|
2020-02-26 10:00:32 +08:00
|
|
|
%package libs
|
|
|
|
|
Summary: Libraries to handle kernel module loading and unloading
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
The kmod-libs package provides runtime libraries for any application that
|
|
|
|
|
wishes to load or unload Linux kernel modules from the running system.
|
|
|
|
|
|
2019-09-30 10:54:27 -04:00
|
|
|
%package devel
|
|
|
|
|
Summary: Header files for kmod development
|
2022-01-07 20:44:13 +08:00
|
|
|
Requires: %{name} = %{version}-%{release} %{name}-libs
|
2019-09-30 10:54:27 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The kmod-devel package provides header files used for loading or unloading
|
|
|
|
|
kernel modules.
|
|
|
|
|
|
2022-02-24 15:53:12 +08:00
|
|
|
%package -n python3-kmod
|
|
|
|
|
Summary: Python3 bindings for kmod/libkmod.
|
|
|
|
|
BuildRequires: python3 python3-devel python3-Cython kmod-devel kmod-libs
|
|
|
|
|
Requires: python3
|
|
|
|
|
|
|
|
|
|
%description -n python3-kmod
|
|
|
|
|
python3-kmod is a Python3 wrapper module for libkmod, exposing common
|
|
|
|
|
module operations: listing installed modules, modprobe, and rmmod.
|
|
|
|
|
|
2019-09-30 10:54:27 -04:00
|
|
|
%package help
|
|
|
|
|
Summary: Documents and man pages for the kmod
|
|
|
|
|
Requires: man info
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
The kmod-help package provides several documents and the man pages to help
|
|
|
|
|
developers to understand the kmod.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2022-02-24 15:53:12 +08:00
|
|
|
%configure --with-openssl --with-zlib --with-xz --enable-python
|
2019-09-30 10:54:27 -04:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2022-02-24 15:53:12 +08:00
|
|
|
rm -f %{buildroot}%{python3_sitearch}/kmod/*.la
|
2019-09-30 10:54:27 -04:00
|
|
|
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
|
ln -s modprobe.d.5.gz modprobe.conf.5.gz
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
|
for i in $RPM_BUILD_ROOT%{_sbindir}/modprobe $RPM_BUILD_ROOT%{_sbindir}/modinfo $RPM_BUILD_ROOT%{_sbindir}/insmod \
|
|
|
|
|
$RPM_BUILD_ROOT%{_sbindir}/rmmod $RPM_BUILD_ROOT%{_sbindir}/depmod $RPM_BUILD_ROOT%{_sbindir}/lsmod
|
|
|
|
|
do
|
|
|
|
|
ln -sf ../bin/kmod $i
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
|
|
|
|
|
|
|
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
|
|
|
|
|
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
%dir %{_sysconfdir}/*.d
|
|
|
|
|
%dir %{_prefix}/lib/modprobe.d
|
|
|
|
|
|
|
|
|
|
%{_bindir}/kmod
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_datadir}/bash-completion/
|
|
|
|
|
%{_sysconfdir}/depmod.d/dist.conf
|
|
|
|
|
|
2020-02-26 10:00:32 +08:00
|
|
|
%files libs
|
2019-09-30 10:54:27 -04:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libkmod.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/libkmod.h
|
|
|
|
|
%{_libdir}/pkgconfig/libkmod.pc
|
|
|
|
|
%{_libdir}/libkmod.so
|
|
|
|
|
|
2022-02-24 15:53:12 +08:00
|
|
|
%files -n python3-kmod
|
|
|
|
|
%{python3_sitearch}/kmod/
|
|
|
|
|
|
2019-09-30 10:54:27 -04:00
|
|
|
%files help
|
|
|
|
|
%attr(0644,root,root) %{_mandir}/man5/*.5*
|
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*.8*
|
|
|
|
|
|
2022-07-26 14:32:05 +08:00
|
|
|
%doc TODO NEWS README.md
|
2019-09-30 10:54:27 -04:00
|
|
|
|
|
|
|
|
%changelog
|
2022-07-26 14:32:05 +08:00
|
|
|
* Tue Jul 26 2022 Qingqing Li <liqingqing3@huawei.com> - 30-1
|
|
|
|
|
- upgrade to kmod-30
|
|
|
|
|
|
2022-06-29 14:37:33 +08:00
|
|
|
* Wed Jun 29 2022 luhuaxin <luhuaxin1@huawei.com> - 29-5
|
|
|
|
|
- support to display sm3 sig_hashalgo
|
|
|
|
|
|
2022-02-24 15:53:12 +08:00
|
|
|
* Thu Feb 24 2022 Yang Yanchao <yangyanchao6@huawei.com> - 29-4
|
|
|
|
|
- add package python3-kmod.
|
|
|
|
|
|
2022-01-07 20:44:13 +08:00
|
|
|
* Fri Jan 7 2022 zhouwenpei <zhouwenpei1@huawei.com> - 29-3
|
|
|
|
|
- kmod-devel: add requires on kmod-libs
|
|
|
|
|
|
2021-12-09 21:36:05 +08:00
|
|
|
* Thu Dec 9 2021 Jiangfeng Xiao <xiaojiangfeng@huawei.com> - 29-2
|
|
|
|
|
- kmod: revert "depmod: Do not unlinkat orig depfile and add fync"
|
|
|
|
|
|
2021-12-03 12:19:10 +08:00
|
|
|
* Fri Dec 3 2021 zhouwenpei <zhouwenpei1@huawei.com> - 29-1
|
|
|
|
|
- update kmod to 29
|
|
|
|
|
|
2021-11-29 21:26:46 +08:00
|
|
|
* Mon Nov 29 2021 Yang Yanchao <yangyanchao6@huawei.com> - 27-8
|
|
|
|
|
- kmod: don't check module's refcnt when rmmod with -r
|
|
|
|
|
Module: replace the module with new module
|
|
|
|
|
Module: suspend the module by rmmod r option
|
|
|
|
|
|
2021-11-24 18:06:43 +08:00
|
|
|
* Wed Nov 24 2021 Yang Yanchao <yangyanchao6@huawei.com> - 27-7
|
|
|
|
|
- Precisely filters ko files in "/lib/modules/$kernel/extra"
|
|
|
|
|
to avoid creating unnecessary symbols.
|
|
|
|
|
|
2021-11-18 09:54:24 +08:00
|
|
|
* Tue Nov 9 2021 Yang Yanchao <yangyanchao6@huawei.com> - 27-6
|
|
|
|
|
- Sync the weak-modules script from the 20.03-LTS-SP1
|
|
|
|
|
- use -V to sort kernel version in weak-modules
|
|
|
|
|
|
2021-06-18 15:22:29 +08:00
|
|
|
* Fri Jun 18 2021 hushiyuan <hushiyuan@huawei.com> - 27-5
|
|
|
|
|
- libkmod-module: check "new_from_name" return value in get_builtin
|
|
|
|
|
- libkmod:fix double free for modinfo in modules.buildin.modinfo
|
|
|
|
|
- libkmod:fix an overflow with wrong modules.builtin.modinfo
|
|
|
|
|
- libkmod-config:fix a memory leak when kmod_list_append failes
|
|
|
|
|
- Fix "modinfo -F always shows name for build-ins"
|
|
|
|
|
|
2021-01-14 14:17:40 +08:00
|
|
|
* Thu Jan 14 2021 xinghe <xinghe1@huawei.com> - 27-4
|
|
|
|
|
- fix memory leak in kmodinfo and build warning
|
|
|
|
|
|
2020-09-04 10:13:00 +08:00
|
|
|
* Fri Sep 04 2020 xinghe <xinghe1@huawei.com> - 27-3
|
|
|
|
|
- backport patch to deal with lspci -v error report
|
|
|
|
|
|
2020-08-21 14:33:13 +08:00
|
|
|
* Fri Aug 21 2020 Wang Shuo<wangshuo_1994@foxmail.com> - 27-2
|
|
|
|
|
- remove unnecessary message
|
|
|
|
|
|
2020-04-24 16:07:43 +08:00
|
|
|
* Fri Apr 17 2020 Wang Shuo<wangshuo47@huawei.com> - 27-1
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: update kmod to 27
|
|
|
|
|
|
2022-06-13 09:14:49 +00:00
|
|
|
* Wed Feb 26 2020 Wang Shuo<wangshuo47@huawei.com> - 25-6
|
2020-02-26 10:00:32 +08:00
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: move libs files to libs package
|
|
|
|
|
|
2019-09-30 10:54:27 -04:00
|
|
|
* Sat Apr 6 2019 luochunsheng<luochunsheng@huawei.com> - 25-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
|
|
|
|
|
* Fri Mar 22 2019 kangenbo<kangenbo@huawei.com> - 25-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: backport patches from communities
|
|
|
|
|
|
|
|
|
|
* Tue Mar 19 2019 hexiaowen<hexiaowen@huawei.com> - 25-3
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: add /etc/depmod.d/dist.conf
|
|
|
|
|
|
|
|
|
|
* Fri Jan 25 2019 Xiaoqi Guo<guoxiaoqi2@huawei.com> - 25-2
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add patches, include
|
|
|
|
|
bugfix-kmod-20-8-depmod-Don-t-unlinkat-orig-depfile-and-add-fsync.patch
|
|
|
|
|
|
|
|
|
|
* Thu Jan 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 25-1
|
|
|
|
|
- Package init
|
|
|
|
|
|