kmod: move libs files to libs package

This commit is contained in:
wangshuo 2020-02-26 10:00:32 +08:00
parent 5e1accdd27
commit 0bb25b2f2f

View File

@ -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<wangshuo47@huawei.com> - 25-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: move libs files to libs package
* Sat Apr 6 2019 luochunsheng<luochunsheng@huawei.com> - 25-5
- Type:enhancement
- ID:NA