From 0bb25b2f2fdfd9bc766ad0cfca40437e49449872 Mon Sep 17 00:00:00 2001 From: wangshuo Date: Wed, 26 Feb 2020 10:00:32 +0800 Subject: [PATCH] kmod: move libs files to libs package --- kmod.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/kmod.spec b/kmod.spec index 03f6fa2..2fc438b 100644 --- a/kmod.spec +++ b/kmod.spec @@ -1,6 +1,6 @@ Name: kmod Version: 25 -Release: 5 +Release: 6 Summary: Kernel module management # GPLv2+ is used by programs, LGPLv2+ is used for libraries. License: GPLv2+ and LGPLv2+ @@ -16,14 +16,20 @@ Patch9002: depmod-prevent-module-dependency-files-corruption-du.patch BuildRequires: gcc chrpath zlib-devel xz-devel libxslt Provides: module-init-tools = 4.0-1 -Provides: %{name} = %{version}-%{release} %{name}-libs Provides: /sbin/modprobe -Obsoletes: %{name}-libs %description The kmod package provides several commands to manage the kernel modules, such as insmod to load and rmmod to unload the modules. +%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. + %package devel Summary: Header files for kmod development Requires: %{name} = %{version}-%{release} @@ -83,6 +89,7 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf %{_datadir}/bash-completion/ %{_sysconfdir}/depmod.d/dist.conf +%files libs %{!?_licensedir:%global license %%doc} %license COPYING %{_libdir}/libkmod.so.* @@ -99,6 +106,12 @@ install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf %doc TODO NEWS README %changelog +* Wed Feb 28 2020 Wang Shuo - 25-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: move libs files to libs package + * Sat Apr 6 2019 luochunsheng - 25-5 - Type:enhancement - ID:NA -- Gitee